GNU bug report logs - #15025
emacs --daemon stuck in infinite loop

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> gnu.org>

Date: Mon, 5 Aug 2013 12:37:01 UTC

Severity: important

Fixed in version 24.4

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 15025 <at> debbugs.gnu.org, Dmitry Antipov <dmantipov <at> yandex.ru>
Cc: Dan Nicolaescu <dann <at> gnu.org>
Subject: bug#15025: emacs --daemon stuck in infinite loop
Date: Tue, 06 Aug 2013 19:55:41 -0400
Dan Nicolaescu wrote:

> This seems to be reproducible. 
>
> emacs compiled with Lucid toolkit
>
> The recipe here uses Xnest because it easy to kill/restart, probably the same
> happens if the X session is killed.
>
> Xnest :1&
> xterm -display :1&
>
> Now type in the xterm above:
> emacs --daemon
>
> In a different xterm type:
> emacsclient -t Makefile 
> (or any file that exists).
> C-z
>
> now while emacsclient is suspended kill Xnest (using the window manager
> close button)
>
> Emacs daemon should still survive, but 
> emacsclient -t 
> cannot connect to it. 
>
> Looking in the debugger, emacs is stuck in an infinite loop in: 
>
> frame.c: next_frame
>
> while (passed < 2)
>
> passed never gets set to more than 1, so the loop never ends.
>
> What is the intention of that code? 

It seems this was introduced in
http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00093.html

Dmitry, please could you take a look?




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

Previous Next


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