GNU bug report logs - #16093
24.3.50; Crash of emacs --daemon on killing X server

Previous Next

Package: emacs;

Reported by: Nix <nix <at> esperi.org.uk>

Date: Mon, 9 Dec 2013 15:59:02 UTC

Severity: normal

Found in version 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Dmitry Antipov <dmantipov <at> yandex.ru>
To: 16093 <at> debbugs.gnu.org
Cc: Nix <nix <at> esperi.org.uk>, Jan Djärv <jan.h.d <at> swipnet.se>
Subject: Re: bug#16093: 24.3.50; Crash of emacs --daemon on killing X server
Date: Mon, 09 Dec 2013 21:57:59 +0400
[Message part 1 (text/plain, inline)]
On 12/09/2013 07:58 PM, Nix wrote:
>
> Start emacs --daemon (using the lucid toolkit), under X. Shut X down.
> Emacs crashes shortly afterwards.
>
>
> The lack of symbol table info is concerning (obviously my gdb has
> forgotten how to look up separated debug info *yet again*), but I don't
> think that important, since the death site is after a (garbage-collect)
> thus not in Lisp-land anyway. Obviously no xbacktrace is possible: the
> process is dead.
>
> It is fairly clear that we should not be calling xftfont_close() if the
> X server is not there! Why has this started happening?

Hm... IIUC there is no convenient way to check whether X display connection
is alive. But we can do some tricks, for example, try to select() or poll()
ConnectionNumber() - if there is no EBADF, X server is hopefully present...

Dmitry


[bug16093.patch (text/x-patch, attachment)]

This bug report was last modified 11 years and 192 days ago.

Previous Next


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