From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: Emacs daemon dies at Xorg crash Date: Wed, 17 Dec 2008 20:25:16 +0100 Message-ID: <18761.21020.890676.865384@a1ihome1.kph.uni-mainz.de> References: <1229454957.21129.0.camel@localhost> <18760.56870.137654.853165@a1ihome1.kph.uni-mainz.de> <87k59yssad.fsf@cyd.mit.edu> <200812171708.mBHH8hPO008789@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229541939 23649 80.91.229.12 (17 Dec 2008 19:25:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 19:25:39 +0000 (UTC) Cc: Chong Yidong , Diego Petteno , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 17 20:26:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LD22a-0004g2-AP for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 20:26:40 +0100 Original-Received: from localhost ([127.0.0.1]:47400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LD21O-0007eb-2U for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 14:25:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LD21J-0007eF-NX for emacs-devel@gnu.org; Wed, 17 Dec 2008 14:25:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LD21I-0007dz-5w for emacs-devel@gnu.org; Wed, 17 Dec 2008 14:25:21 -0500 Original-Received: from [199.232.76.173] (port=36558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LD21H-0007dw-UT for emacs-devel@gnu.org; Wed, 17 Dec 2008 14:25:19 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:56996) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LD21H-0000pz-F8 for emacs-devel@gnu.org; Wed, 17 Dec 2008 14:25:19 -0500 Original-Received: from a1ihome1.kph.uni-mainz.de (a1ihome1.kph.uni-mainz.de [134.93.134.75]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id mBHJPHNk000680; Wed, 17 Dec 2008 20:25:17 +0100 Original-Received: from a1ihome1.kph.uni-mainz.de (localhost [127.0.0.1]) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.1) with ESMTP id mBHJPHuB032547; Wed, 17 Dec 2008 20:25:17 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id mBHJPGaM032542; Wed, 17 Dec 2008 20:25:16 +0100 In-Reply-To: <200812171708.mBHH8hPO008789@mothra.ics.uci.edu> X-Mailer: VM 8.0.2-487 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107012 Archived-At: >>>>> On Wed, 17 Dec 2008, Dan Nicolaescu wrote: > Chong Yidong writes: >> I'm not sure this is the problem. The two tests you mention are >> >> if (terminal_list->next_terminal == NULL) >> >> where terminal_list points to the X terminal about to be deleted, and >> >> if (terminal_list == 0) >> >> after the deletion of the terminal. Unless the code has changed since >> the last time I looked at it, Emacs uses an initial terminal, which >> neither sends nor receives anything, when it is run as a daemon; the >> existence of this initial terminal should prevent shut_down_emacs from >> being called. Right. Further debugging shows that neither of the two tests is true, but "error" is called at the very end of x_connection_closed. > Agreed. > There wasn't enough context in the initial mail, but I suspect this is > an emacs compiled with Gtk+. It works (and it has always done so) > perfectly well for me when using Lucid. I could reproduce the issue with the following configuration. No GTK+. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit) of 2008-12-17 on a1iulm2 Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=athena' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium-m -O2 -pipe' 'LDFLAGS=-Wl,-O1'' Ulrich