GNU bug report logs - #47439
27.2; In daemon mode, if after-init-hook errors out, the server does not start

Previous Next

Package: emacs;

Reported by: Gilles <gilles.usenet <at> gmail.com>

Date: Sun, 28 Mar 2021 01:02:02 UTC

Severity: normal

Found in version 27.2

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: gilles.usenet <at> gmail.com, 47439 <at> debbugs.gnu.org
Subject: Re: bug#47439: 27.2;
 In daemon mode, if after-init-hook errors out, the server does not
 start
Date: Sun, 28 Mar 2021 17:05:12 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sun, 28 Mar 2021 15:56:01 +0200
> Cc: 47439 <at> debbugs.gnu.org
> 
> There is no `condition-case' around the running of this hook;
> therefore, if `debug-on-error' is non-nil, an error in one of
> these functions will invoke the debugger.
> ---
> 
> So I think this is expected behaviour?  Anybody got an opinion?

The problem here is that if the daemon signals an error any place
during startup before it starts the server, there's no way at all to
communicate with the daemon, so you cannot know what happened and why.

So I think we should provide one of the following, in case of such
errors:

 . exit the daemon and leave the description of the problem on some
   disk file, or display it on the screen
 . start the server and allow clients to connect and see the error
   message, with or without the backtrace




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

Previous Next


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