mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 02:31:03 -08:00
Avoid segfault when profiling Lisp programs with threads
* src/eval.c (backtrace_top): Don't segfault if current_thread is NULL. (Bug#76970)
This commit is contained in:
parent
075ebed98f
commit
dd95447b05
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ backtrace_top (void)
|
||||||
/* This is so "xbacktrace" doesn't crash in pdumped Emacs if they
|
/* This is so "xbacktrace" doesn't crash in pdumped Emacs if they
|
||||||
invoke the command before init_eval_once_for_pdumper initializes
|
invoke the command before init_eval_once_for_pdumper initializes
|
||||||
specpdl machinery. See also backtrace_p above. */
|
specpdl machinery. See also backtrace_p above. */
|
||||||
if (!specpdl)
|
if (!current_thread || !specpdl)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
union specbinding *pdl = specpdl_ptr - 1;
|
union specbinding *pdl = specpdl_ptr - 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue