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: Thu, 18 Dec 2008 13:03:48 +0100 Message-ID: <18762.15396.428952.119630@a1i15.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> 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 1229601914 26116 80.91.229.12 (18 Dec 2008 12:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2008 12:05:14 +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 Thu Dec 18 13:06:18 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 1LDHd3-0000Le-L8 for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 13:05:50 +0100 Original-Received: from localhost ([127.0.0.1]:37390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDHbr-0003eK-MH for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2008 07:04:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDHbm-0003e0-5O for emacs-devel@gnu.org; Thu, 18 Dec 2008 07:04:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDHbk-0003dg-Hk for emacs-devel@gnu.org; Thu, 18 Dec 2008 07:04:01 -0500 Original-Received: from [199.232.76.173] (port=34152 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDHbk-0003dd-Bc for emacs-devel@gnu.org; Thu, 18 Dec 2008 07:04:00 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:55676) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDHbj-0003hW-Ky for emacs-devel@gnu.org; Thu, 18 Dec 2008 07:03:59 -0500 Original-Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id mBIC3of8031940; Thu, 18 Dec 2008 13:03:50 +0100 Original-Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.2/8.13.4) with ESMTP id mBIC3oPV016574; Thu, 18 Dec 2008 13:03:50 +0100 Original-Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.2/8.14.2/Submit) id mBIC3nJO016568; Thu, 18 Dec 2008 13:03:49 +0100 In-Reply-To: <200812172251.mBHMp3ce010724@mothra.ics.uci.edu> X-Mailer: VM 8.0.9 under Emacs 22.3.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:107031 Archived-At: >>>>> On Wed, 17 Dec 2008, Dan Nicolaescu wrote: > It works fine for me on a Fedora 10 machine when configuring with > --with-x-toolkit=athena. Killing X does not kill the daemon when > either no frames are open, tty frames are open, X11 frames or tty > and X11 frames are open. I also depends on the desktop / window manager. Here it dies when Gnome or Xfce4 are terminated (only in the "no frames" case). No problem with IceWM though. Below I include a gdb backtrace. I can provide further information if necessary. cmd_error_internal in frame #25 is called with the first argument: (error "Connection lost to X server `:0.0'") Since FRAME_INITIAL_P (sf) is true at that point, it then calls kill-emacs: /* If the window system or terminal frame hasn't been initialized yet, or we're not interactive, write the message to stderr and exit. */ else if (!sf->glyphs_initialized_p || FRAME_INITIAL_P (sf) || noninteractive) { print_error_message (data, Qexternal_debugging_output, context, Vsignaling_function); Fterpri (Qexternal_debugging_output); Fkill_emacs (make_number (-1)); } #0 Fsignal (error_symbol=0x84863b9, data=0x874fcfd) at eval.c:1640 #1 0x0824c780 in xsignal (error_symbol=0x84863b9, data=0x874fcfd) at eval.c:1772 #2 0x081f8844 in report_file_error (string=0x82e8afa "make client process failed", data=0x874fd45) at fileio.c:277 #3 0x0829a4bd in Fmake_network_process (nargs=0xa, args=0x7fdb5f58) at process.c:3632 #4 0x0824e5b7 in Ffuncall (nargs=0xb, args=0x7fdb5f54) at eval.c:3050 #5 0x0829201e in Fbyte_code (bytestr=0x84c8f5b, vector=0x9b5bea4, maxdepth=0x70) at bytecode.c:678 #6 0x0824d885 in Feval (form=0x8731c55) at eval.c:2406 #7 0x0824be4b in internal_lisp_condition_case (var=0x84778c9, bodyform=0x8731c55, handlers=0x8731f9d) at eval.c:1456 #8 0x08292cf0 in Fbyte_code (bytestr=0x84c8fdb, vector=0x9b5bf44, maxdepth=0x18) at bytecode.c:868 #9 0x0824ee8a in funcall_lambda (fun=0x9b5bfcc, nargs=0x1, arg_vector=0x7fdb66b4) at eval.c:3256 #10 0x0824e93b in Ffuncall (nargs=0x2, args=0x7fdb66b0) at eval.c:3115 #11 0x0829201e in Fbyte_code (bytestr=0x84f7f63, vector=0x9b5baa4, maxdepth=0xb8) at bytecode.c:678 #12 0x0824ee8a in funcall_lambda (fun=0x9b5bc9c, nargs=0x1, arg_vector=0x7fdb6a04) at eval.c:3256 #13 0x0824e93b in Ffuncall (nargs=0x2, args=0x7fdb6a00) at eval.c:3115 #14 0x0829201e in Fbyte_code (bytestr=0x84cd9f3, vector=0x9b5c034, maxdepth=0x18) at bytecode.c:678 #15 0x0824ee8a in funcall_lambda (fun=0x9b5c104, nargs=0x1, arg_vector=0x7fdb6d04) at eval.c:3256 #16 0x0824e93b in Ffuncall (nargs=0x2, args=0x7fdb6d00) at eval.c:3115 #17 0x0829201e in Fbyte_code (bytestr=0x84f6b03, vector=0x9b5b9b4, maxdepth=0x10) at bytecode.c:678 #18 0x0824ee8a in funcall_lambda (fun=0x9b5ba2c, nargs=0x0, arg_vector=0x7fdb7078) at eval.c:3256 #19 0x0824e93b in Ffuncall (nargs=0x1, args=0x7fdb7074) at eval.c:3115 #20 0x0824e0a0 in run_hook_with_args (nargs=0x1, args=0x7fdb7074, cond=to_completion) at eval.c:2728 #21 0x0824debd in Frun_hooks (nargs=0x1, args=0x7fdb7134) at eval.c:2591 #22 0x0824e5b7 in Ffuncall (nargs=0x2, args=0x7fdb7130) at eval.c:3050 #23 0x0824e280 in call1 (fn=0x8499a61, arg1=0x84a5729) at eval.c:2854 #24 0x081c1a14 in Fkill_emacs (arg=0xfffffff8) at emacs.c:2087 #25 0x081c3219 in cmd_error_internal (data=0x874fe4d, context=0x7fdb71ae "") at keyboard.c:1274 #26 0x081c30b4 in cmd_error (data=0x874fe4d) at keyboard.c:1222 #27 0x0824bf18 in internal_condition_case (bfun=0x81c35ee , handlers=0x84821b1, hfun=0x81c2fc9 ) at eval.c:1501 #28 0x081c3340 in command_loop_2 () at keyboard.c:1338 #29 0x0824ba31 in internal_catch (tag=0x84811f9, func=0x81c331b , arg=0x84778c9) at eval.c:1247 #30 0x081c32f9 in command_loop () at keyboard.c:1317 #31 0x081c2bd9 in recursive_edit_1 () at keyboard.c:942 #32 0x081c2d46 in Frecursive_edit () at keyboard.c:1004 #33 0x081c14c6 in main (argc=0x3, argv=0x7fdb78b4) at emacs.c:1788 Lisp Backtrace: "make-network-process" (0x7fdb5f58) "byte-code" (0x7fdb6200) "server-running-p" (0x7fdb66b4) "server-start" (0x7fdb6a04) "server-mode" (0x7fdb6d04) 0x9b5ba2c PVEC_COMPILED "run-hooks" (0x7fdb7134) Ulrich