GNU bug report logs -
#75629
30.0.93; restart-emacs does not reliably restart Emacs
Previous Next
Full log
View this message in rfc822 format
> From: Daniel Mendler <mail <at> daniel-mendler.de>
> Cc: 75629 <at> debbugs.gnu.org
> Date: Thu, 30 Jan 2025 14:53:01 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Date: Fri, 17 Jan 2025 12:15:22 +0100
> >> From: Daniel Mendler via "Bug reports for GNU Emacs,
> >> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >>
> >> I've found the following backtrace in my .xsession-errors file. It seems
> >> that Emacs is somehow crashing during shutdown. So maybe the problem is
> >> not really about restart, but about some redisplay problem happening
> >> during shutdown.
> >>
> >> X protocol error: BadDrawable (invalid Pixmap or Window parameter) on protocol request 62
> >> Serial no: 6422
> >> Failing resource ID (if any): 0x60014c
> >> Minor code: 0
> >> This is a bug! Please report this to bug-gnu-emacs <at> gnu.org!
> >
> > So please run Emacs under GDB, and in X synchronous mode (see
> > etc/DEBUG for details), and when it crashes during shutdown, show the
> > full backtrace produced by GDB (the "thread apply all bt" command when
> > GDB kicks in).
> >
> > I think I understand what causes this problem, but more detailed
> > backtrace is needed to make sure my understanding is correct and the
> > solution is right.
>
> I am sorry, but I failed to obtain a more detailed backtrace. The
> problem does not seem to occur at all with (x-synchronize t). Also I
> have difficulties running gdb from the .xsession. In my case, Emacs is
> started by X, since it acts as window manager. When Emacs crashes after
> M-x restart-emacs (without x-synchronize), I cannot access the gdb repl.
Can you use the recipe in the node "Crashing" of the Emacs manual to
produce a readable backtrace from what you have in .xsession-errors?
If thyat succeeds, please post the backtreace.
And maybe Po Lu (CC'ed) has some advice how to debug this further? Or
why redisplay_preserve_echo_area signals a BadDrawable error in this
case? Can we do something (like set some C variable or bind some Lisp
variable) to prevent fatal X errors in redisplay when we are shutting
down Emacs?
This bug report was last modified 136 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.