GNU bug report logs - #23939
Segfault in daemon mode Emacs when detaching an X session

Previous Next

Package: emacs;

Reported by: Doug Gilmore <dougjgilmore <at> gmail.com>

Date: Mon, 11 Jul 2016 06:08:01 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Doug Gilmore <dougjgilmore <at> gmail.com>, 23939 <at> debbugs.gnu.org
Subject: Re: bug#23939: Segfault in daemon mode Emacs when detaching an X
 session
Date: Wed, 19 Aug 2020 14:06:29 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

>> +  /* In rare situations when running Emacs run in daemon mode,
>> +     shutting down an emacsclient via delete-frame can cause
>> +     x_uncatch_errors to be called when x_error_message is set to
>> +     NULL.  */
>> +  
>> +  if (x_error_message == NULL)
>> +    return;
>
> If this really is possible, I guess a NULL check wouldn't be a bad
> thing...

I've applied the patch to Emacs 28, as it seemed to fix the bug for
Doug, and it should probably not have any adverse affects otherwise.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 326 days ago.

Previous Next


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