GNU bug report logs - #14958
24.2; emacs --daemon crashing when X-frames are removed ungracefully

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: lee <lee@HIDDEN>; merged with #11676, #22174, #35003; dated Fri, 26 Jul 2013 15:30:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 11676 14958 22174 35003. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 11676 14958 22174. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14958 <at> debbugs.gnu.org:


Received: (at 14958) by debbugs.gnu.org; 27 Jul 2013 10:30:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 27 06:30:07 2013
Received: from localhost ([127.0.0.1]:52450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V31lG-0003hU-DN
	for submit <at> debbugs.gnu.org; Sat, 27 Jul 2013 06:30:07 -0400
Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:44108
 helo=yun.yagibdah.de) by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lee@HIDDEN>) id 1V31lB-0003gT-RW
 for 14958 <at> debbugs.gnu.org; Sat, 27 Jul 2013 06:30:03 -0400
Received: from lee by yun.yagibdah.de with local (Exim 4.80.1)
 (envelope-from <lee@HIDDEN>)
 id 1V31l9-0003YR-QT; Sat, 27 Jul 2013 12:29:59 +0200
From: lee <lee@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#14958: 24.2;
 emacs --daemon crashing when X-frames are removed ungracefully
Date: Sat, 27 Jul 2013 12:29:56 +0200
Message-ID: <87ehakgusb.fsf@HIDDEN>
References: <87a9l9iei0.fsf@HIDDEN> <ttehalb9lc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: 14958
Cc: 14958 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.4 (/)

Glenn Morris <rgm@HIDDEN> writes:

> lee wrote:
>
>> In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2)
>>  of 2013-07-15 on buildvm-18.phx2.fedoraproject.org
>
> It might help to use the lucid toolkit rather than GTK+.
> ./configure --with-x-toolkit=lucid
>
> Not sure if Fedora offers that as an alternative (like emacs-nox).

At least I don't find it in the packages.  They are strongly orientated
towards gnome, so I'm not surprised.

I pulled from bzr, compiled with lucid and made a test:  Started emacs
in daemon mode, left two frames open and exited fvwm which closes the X
session.

After that, the emacs daemon is unresponsive, i. e. 'emacsclient -nw'
doesn't do anything, and I can only kill the emacs process.


-- 
Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at
this location")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14958; Package emacs. Full text available.

Message received at 14958 <at> debbugs.gnu.org:


Received: (at 14958) by debbugs.gnu.org; 26 Jul 2013 15:54:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 11:54:33 2013
Received: from localhost ([127.0.0.1]:51391 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V2kLe-0007N9-6z
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:54:30 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:46937 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1V2kLZ-0007Mj-MD
 for 14958 <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:54:26 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rgm@HIDDEN>)
 id 1V2kLX-0003PR-UU; Fri, 26 Jul 2013 11:54:24 -0400
From: Glenn Morris <rgm@HIDDEN>
To: lee <lee@HIDDEN>
Subject: Re: bug#14958: 24.2;
 emacs --daemon crashing when X-frames are removed ungracefully
References: <87a9l9iei0.fsf@HIDDEN>
X-Spook: Ft. Meade Al Jazeera Qaddafi FBI target kilderkin SWAT SP4
X-Ran: -*G)W5zST=*l$Z?EjWKd|m~!pXrM<Qq'Eo?rM6##Tm!>Cver\z89P4eGpbQ.o+$aa[L_CP
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 26 Jul 2013 11:54:23 -0400
In-Reply-To: <87a9l9iei0.fsf@HIDDEN> (lee@HIDDEN's message
 of "Fri, 26 Jul 2013 16:26:31 +0200")
Message-ID: <ttehalb9lc.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.5 (------)
X-Debbugs-Envelope-To: 14958
Cc: 14958 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.5 (------)

lee wrote:

> In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2)
>  of 2013-07-15 on buildvm-18.phx2.fedoraproject.org

It might help to use the lucid toolkit rather than GTK+.
./configure --with-x-toolkit=lucid

Not sure if Fedora offers that as an alternative (like emacs-nox).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14958; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Jul 2013 15:29:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 11:29:58 2013
Received: from localhost ([127.0.0.1]:51286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1V2jxs-0005jF-Sy
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:29:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55296)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lee@HIDDEN>) id 1V2jxp-0005ij-US
 for submit <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:29:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lee@HIDDEN>) id 1V2jxi-0002c9-KT
 for submit <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:29:48 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52628)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lee@HIDDEN>) id 1V2jxi-0002c4-Hd
 for submit <at> debbugs.gnu.org; Fri, 26 Jul 2013 11:29:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56993)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lee@HIDDEN>) id 1V2jxg-0006dT-1k
 for bug-gnu-emacs@HIDDEN; Fri, 26 Jul 2013 11:29:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <lee@HIDDEN>) id 1V2jxe-0002Vu-FD
 for bug-gnu-emacs@HIDDEN; Fri, 26 Jul 2013 11:29:43 -0400
Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:58613
 helo=yun.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <lee@HIDDEN>) id 1V2jxe-0002VU-4w
 for bug-gnu-emacs@HIDDEN; Fri, 26 Jul 2013 11:29:42 -0400
Received: from lee by yun.yagibdah.de with local (Exim 4.80.1)
 (envelope-from <lee@HIDDEN>) id 1V2iyV-0002qe-Vx
 for bug-gnu-emacs@HIDDEN; Fri, 26 Jul 2013 16:26:31 +0200
From: lee <lee@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.2; emacs --daemon crashing when X-frames are removed ungracefully
Date: Fri, 26 Jul 2013 16:26:31 +0200
Message-ID: <87a9l9iei0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.4 (---)

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':


Running "emacs --daemon" from the console to get a persistent emacs
session and then using frames in the X session crashes emacs when the X
session is terminated before all the frames were closed.

This defeats the purpose of the daemon mode for me.  Is it possible to
make it so that the emacs daemon survives the ungraceful removal of
frames?


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.2/etc/DEBUG.


In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2)
 of 2013-07-15 on buildvm-18.phx2.fedoraproject.org
Configured using:
 `configure '--build=x86_64-redhat-linux-gnu'
 '--host=x86_64-redhat-linux-gnu' '--program-prefix='
 '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr'
 '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
 '--datadir=/usr/share' '--includedir=/usr/include'
 '--libdir=/usr/lib64' '--libexecdir=/usr/libexec'
 '--localstatedir=/var' '--sharedstatedir=/var/lib'
 '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus'
 '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff'
 '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no'
 '--with-wide-int' 'build_alias=x86_64-redhat-linux-gnu'
 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
 'LDFLAGS=-Wl,-z,relro ''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fvwm

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
O A ESC O B ESC O B ESC O B ESC O B ESC O B ESC O B 
ESC O B ESC O B ESC O B C-x b RET DEL C-x C-s ESC O 
B ESC [ 3 ~ ESC O B ESC [ 3 ~ ESC O B ESC [ 3 ~ ESC 
O B ESC [ 3 ~ C-x C-s ESC O C ESC O C ESC O C ESC O 
C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC 
O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C 
ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC 
O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C 
ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC 
O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C 
ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC 
O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C 
ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC 
O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C 
ESC O C DEL ESC O D ESC O C 4 C-x C-s ESC x m a n C-g 
ESC x r e p o r TAB RET

Recent messages:
Desktop: 233 buffers restored.
Loading term/xterm...done
For information about GNU Emacs and the GNU system, type C-h C-a.
byte-code: Beginning of buffer [13 times]
Saving file /home/lee/.fvwm/fvwm-icon-man.fvwm...
Wrote /home/lee/.fvwm/fvwm-icon-man.fvwm
Saving file /home/lee/.fvwm/fvwm-icon-man.fvwm...
Wrote /home/lee/.fvwm/fvwm-icon-man.fvwm
Saving file /home/lee/.fvwm/fvwm-icon-man.fvwm...
Wrote /home/lee/.fvwm/fvwm-icon-man.fvwm
Quit

Load-path shadows:

-- 
Debugger entered--Lisp error: (error "C-c C-c can do nothing useful at
this location")




Acknowledgement sent to lee <lee@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14958; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 22 Jan 2022 15:45:01 UTC

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