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: Thu, 18 Dec 2008 16:46:07 -0800 (PST) Message-ID: <200812190046.mBJ0k7Im014390@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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229647599 22513 80.91.229.12 (19 Dec 2008 00:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 00:46: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 01:47: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 1LDTWn-0007P9-Da for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 01:47:41 +0100 Original-Received: from localhost ([127.0.0.1]:58636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDTVb-0008Fe-0E for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 19:46:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDTVW-0008E9-Kg for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:46:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDTVV-0008CV-Ew for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:46:22 -0500 Original-Received: from [199.232.76.173] (port=43932 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDTVV-0008CF-9C for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:46:21 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:49541) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LDTVU-00034I-Pf for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:46:21 -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 mBJ0k7Xt027622; Thu, 18 Dec 2008 16:46:08 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBJ0k7Im014390; Thu, 18 Dec 2008 16:46:07 -0800 (PST) In-Reply-To: <18762.58637.46084.413096@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 19 Dec 2008 01:04:29 +0100") Original-Lines: 57 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBJ0k7Xt027622 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:107046 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. And indeed, even for you, it happens only for some specific window managers. > > >> #0 Fsignal (error_symbol=0x84863b9, data=0x874d62d) at eval.c:1640 > >> #1 0x0824c780 in xsignal (error_symbol=0x84863b9, data=0x874d62d) at eval.c:1772 > >> #2 0x081f8844 in report_file_error (string=0x82e8afa "make client process failed", data=0x874d675) at fileio.c:277 > >> #3 0x0829a4bd in Fmake_network_process (nargs=0xa, args=0x7f877cd0) at process.c:3632 > > This error has nothing to do with the X connection problem, right? I don't know, you need to find out why we get here sometimes, but not when using other WMs. > > Can you please check why the above function fails? > > server-start gets called from kill-emacs-hook. It first deletes the > server-process, and then calls server-running-p, which unsuccessfully This sounds strange... > tries to connect to the server's socket (server.el, revision 1.177): > > (when server-process > ;; kill it dead! > (ignore-errors (delete-process server-process))) > ;; Delete the socket files made by previous server invocations. > (if (not (eq t (server-running-p server-name))) > > However, please note that make-network-process in server-running-p is > inside a condition-case. (Which doesn't prevent it from hitting my > gdb breakpoint in Fsignal.) > > > Can you also revert server.el to version 1.175 and see if that still > > causes problems? > > With 1.175 it doesn't hit Fsignal. But I'm not sure if there really is > a problem in 1.177.