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: Fri, 19 Dec 2008 01:04:29 +0100 Message-ID: <18762.58637.46084.413096@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> <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> 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 1229645096 15608 80.91.229.12 (19 Dec 2008 00:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 00:04:56 +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 Fri Dec 19 01:06:00 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 1LDSsN-0003Wd-VW for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 01:05:56 +0100 Original-Received: from localhost ([127.0.0.1]:57860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDSrB-0003f2-QP for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 19:04:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDSr6-0003b9-Hf for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:04:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDSr4-0003Y9-UP for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:04:35 -0500 Original-Received: from [199.232.76.173] (port=37526 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDSr4-0003Xh-JC for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:04:34 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:58738) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDSr3-0006uW-NL for emacs-devel@gnu.org; Thu, 18 Dec 2008 19:04:34 -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 mBJ04T3n022086; Fri, 19 Dec 2008 01:04:29 +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 mBJ04TM0021561; Fri, 19 Dec 2008 01:04:29 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id mBJ04TcR021556; Fri, 19 Dec 2008 01:04:29 +0100 In-Reply-To: <200812182249.mBIMnYK6014142@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:107045 Archived-At: >>>>> 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? >> #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? > 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 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. Ulrich