From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Emacs daemon dies at Xorg crash Date: Fri, 19 Dec 2008 09:00:02 -0800 (PST) Message-ID: <200812191700.mBJH02YT016405@mothra.ics.uci.edu> 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> <18761.21020.890676.865384@a1ihome1.kph.uni-mainz.de> <200812172251.mBHMp3ce010724@mothra.ics.uci.edu> <18762.15396.428952.119630@a1i15.kph.uni-mainz.de> <200812181914.mBIJE7qb013842@mothra.ics.uci.edu> <18762.51405.911216.76307@a1ihome1.kph.uni-mainz.de> <200812182249.mBIMnYK6014142@mothra.ics.uci.edu> <18762.58637.46084.413096@a1ihome1.kph.uni-mainz.de> <200812190046.mBJ0k7Im014390@mothra.ics.uci.edu> <18763.21652.870274.903036@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229706039 25808 80.91.229.12 (19 Dec 2008 17:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 17:00:39 +0000 (UTC) Cc: Chong Yidong , Diego Petteno , emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 19 18:01:42 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 1LDijH-0004nw-Ah for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 18:01:35 +0100 Original-Received: from localhost ([127.0.0.1]:37436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDii4-0006S6-WE for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 12:00:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDihw-0006S0-RA for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:00:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDihv-0006Rn-Nx for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:00:11 -0500 Original-Received: from [199.232.76.173] (port=34182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDihv-0006Rk-Eh for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:00:11 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:49032) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LDihu-00074y-Tb for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:00:11 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBJH02ml005162; Fri, 19 Dec 2008 09:00:02 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBJH02YT016405; Fri, 19 Dec 2008 09:00:02 -0800 (PST) In-Reply-To: <18763.21652.870274.903036@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 19 Dec 2008 09:00:20 +0100") Original-Lines: 40 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBJH02ml005162 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:107067 Archived-At: Ulrich Mueller writes: > >>>>> On Thu, 18 Dec 2008, Dan Nicolaescu wrote: > > >> >> > Can you try the patch at: > >> >> > http://permalink.gmane.org/gmane.emacs.bugs/22201 > >> >> > >> >> Tested and Emacs doesn't die anymore. I find the "Connection lost ..." > >> >> message in the *Messages* buffer after reconnecting. > >> > >> > IMO that patch is good, but it fixes the effect in this case, not the > >> > cause. > >> > >> Hm, could you please elaborate what you mean by "effect" and "cause" > >> here? > > > Emacs dies because something tries to call message while no frame is > > open. This is the "effect". The "cause" is whatever causes that > > message to be written, it probably should not happen. > > But "X connection lost" is precisely what happens. What could Emacs do > to prevent this, if there is suddenly no X server anymore? Kill the frames on the display that was closed and continue running? Your backtrace seems to show that the problem happens because of Fmake_network_process... > > And indeed, even for you, it happens only for some specific window > > managers. > > Looks like IceWM sends a WM_DELETE_WINDOW message to the X clients > before it exits, while Xfce4 doesn't do this. > > What happens if you kill -9 your X server? Does Emacs die? I won't try kill -9 X because I've seen that lock the machine in the past. But C-A-backspace does not kill emacs, and I doubt it gives the WM a chance to send any message.