Print a C backtrace in ecl_thread_internal_error

After the recent changes to the C backtrace interface,
    _ecl_dump_c_backtrace() no longer needs a working lisp
    environment, so we can safely call it here.
This commit is contained in:
Marius Gerbershagen 2018-05-27 18:21:30 +02:00
parent 861e798cd3
commit fd1affa7d0

View file

@ -71,6 +71,7 @@ ecl_thread_internal_error(const char *s)
fprintf(stderr, " [%d: %s]\n", saved_errno,
strerror(saved_errno));
}
_ecl_dump_c_backtrace();
fprintf(stderr,
"\nDid you forget to call `ecl_import_current_thread'?\n"
"Exitting thread.\n");