From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: emacs daemon exits when emacsclient connects to it again Date: Mon, 09 Feb 2009 18:34:05 +0200 Message-ID: <87iqnj1sea.fsf@kobe.laptop> References: <877i40rlfg.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234197284 28968 80.91.229.12 (9 Feb 2009 16:34:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2009 16:34:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Liang Wang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 17:35:59 2009 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 1LWZ6r-0004Pg-I9 for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 17:35:49 +0100 Original-Received: from localhost ([127.0.0.1]:40197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWZ5X-00073n-QZ for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 11:34:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWZ5T-00073U-1Q for emacs-devel@gnu.org; Mon, 09 Feb 2009 11:34:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWZ5Q-00073E-GB for emacs-devel@gnu.org; Mon, 09 Feb 2009 11:34:22 -0500 Original-Received: from [199.232.76.173] (port=45778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWZ5Q-00073B-D9 for emacs-devel@gnu.org; Mon, 09 Feb 2009 11:34:20 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]:38018) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWZ5P-0001Fd-RK for emacs-devel@gnu.org; Mon, 09 Feb 2009 11:34:20 -0500 Original-Received: from kobe.laptop (adsl89-44.kln.forthnet.gr [77.49.56.44]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id n19GY7Mq025004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 9 Feb 2009 18:34:13 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n19GY7x8005504; Mon, 9 Feb 2009 18:34:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n19GY573005503; Mon, 9 Feb 2009 18:34:05 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) In-Reply-To: (Liang Wang's message of "Mon, 9 Feb 2009 18:29:41 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) X-MailScanner-ID: n19GY7Mq025004 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.872, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.53, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:108890 Archived-At: On Mon, 9 Feb 2009 18:29:41 +0800, Liang Wang wrote: > On Mon, Feb 9, 2009 at 5:47 PM, Giorgos Keramidas > wrote: >> On Mon, 9 Feb 2009 17:11:45 +0800, Liang Wang wrote: >>> Emacs daemon exits or crashes when emacsclient connect to it again. >>> Below is my command line operation. >>> >>> [liang@localhost ~]$ emacs --daemon -Q >>> ("emacs" "-Q") >>> Starting Emacs daemon. >>> [liang@localhost ~]$ pgrep -l emacs >>> 2813 emacs >>> [liang@localhost ~]$ emacsclient -c # succeed to connect >>> Waiting for Emacs... >>> [liang@localhost ~]$ pgrep -l emacs >>> 2813 emacs >>> [liang@localhost ~]$ emacsclient -c # fail to connect >>> Waiting for Emacs... >>> [liang@localhost ~]$ pgrep -l emacs >>> [liang@localhost ~]$ >> >> Which version of Emacs are you running? Can you attach to the >> background process using gdb and see where it crashes? > > GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of > 2009-02-09 on localhost.localdomain > > I am not familiar with gdb. Below is the output of gdb session. It > seems that something is wrong when emacsclient connects to daemon > initially. Thanks for looking into this nevertheless :) > (gdb) attach 2970 [...] > (gdb) c > Continuing. > > Program received signal SIGSEGV, Segmentation fault. > 0x00000003 in ?? () > (gdb) bt > #0 0x00000003 in ?? () > #1 0x00000007 in ?? () > #2 0xbfec0490 in ?? () > #3 0x009b025c in freopen64 () from /lib/libglib-2.0.so.0 > #4 0x009b025c in freopen64 () from /lib/libglib-2.0.so.0 > #5 0x00000004 in ?? () > #6 0xbfec0418 in ?? () > #7 0x00928c0a in g_string_append_vprintf () from /lib/libglib-2.0.so.0 > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > (gdb) This part looks like a crash inside the glib library. Looking at its path, the operating system seems to be GNU/Linux. Can you give us a bit more information? * The operating system type. * The branch/release of the OS you are using. * The list of installed packages that are related to GTK+. This may be a bug in glib that has already been resolved upstream. If that is the case, then updating the packages that Emacs depends upon might fix the crash.