GNU bug report logs - #56528
29.0.50; Emacs lucid segfaults when X dies

Previous Next

Package: emacs;

Reported by: visuweshm <at> gmail.com

Date: Wed, 13 Jul 2022 04:33:02 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


Message #88 received at 56528 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 56528 <at> debbugs.gnu.org, visuweshm <at> gmail.com
Subject: Re: bug#56528: 29.0.50; Emacs lucid segfaults when X dies
Date: Thu, 14 Jul 2022 08:39:54 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Visuwesh <visuweshm <at> gmail.com>,  56528 <at> debbugs.gnu.org
> Date: Thu, 14 Jul 2022 09:04:49 +0800
> 
> Not exactly.  When the connection to the X server is lost, any attempt
> to communicate with it will result in the IO error handler being called.
> 
> We install an error handler that performs the following:
> 
>   - Bind `inhibit-redisplay' to t.
>   - Delete each frame on the display that went down.
>   - Free the display data and delete the terminal.
>   - Kill Emacs if no terminals are left.
>   - Throw an error to get Emacs out of the error handler.
> 
> Unfortunately, that doesn't always work reliably, such as here.  And
> we're trying to find out why.

The reason seems to be that the selected-frame wasn't changed to be a
valid usable frame.

But I wonder how the above is different from simply crashing.




This bug report was last modified 3 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.