@BIF public static ESeq get_stacktrace(EProc proc) { ErlangException ex = proc.getLastException(); return ex != null ? ex.getTrace() : ERT.NIL; }