GNU bug report logs -
#76970
31.0.50; master emacs crash with stack overflow
Previous Next
Reported by: Eval Exec <execvy <at> gmail.com>
Date: Wed, 12 Mar 2025 02:45:02 UTC
Severity: normal
Found in version 31.0.50
Done: Pip Cet <pipcet <at> protonmail.com>
Full log
View this message in rfc822 format
> From: Aaron Zeng <azeng <at> janestreet.com>
> Date: Tue, 1 Jul 2025 12:17:45 -0400
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 76970 <at> debbugs.gnu.org, app-emacs-dev <at> janestreet.com
>
> On Tue, Jun 24, 2025 at 1:46 AM Pip Cet <pipcet <at> protonmail.com> wrote:
> > The original fix was incomplete, please try applying this one, too:
> >
> > diff --git a/src/eval.c b/src/eval.c
> > index 46705dc4543..20782639990 100644
> > --- a/src/eval.c
> > +++ b/src/eval.c
> > @@ -159,7 +159,11 @@ set_backtrace_debug_on_exit (union specbinding *pdl, bool doe)
> >
> > bool
> > backtrace_p (union specbinding *pdl)
> > -{ return specpdl ? pdl >= specpdl : false; }
> > +{
> > + if (current_thread && specpdl && pdl)
> > + return pdl >= specpdl;
> > + return false;
> > +}
> >
> > static bool
> > backtrace_thread_p (struct thread_state *tstate, union specbinding *pdl)
>
> After installing that patch as well, it does seem to have helped a
> lot. I was seeing segfaults every couple of hours and I haven't seen
> one in several days.
>
> Thanks, Pip!
Thanks for testing.
Pip, please install your patch and close the bug.
This bug report was last modified 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.