From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Liang Wang" Newsgroups: gmane.emacs.devel Subject: Re: annoying behavior of emacs --daemon Date: Tue, 4 Nov 2008 21:03:49 +0800 Message-ID: References: <200811040634.mA46YGHE015780@mothra.ics.uci.edu> <200811040855.mA48tmJb020747@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225803918 8353 80.91.229.12 (4 Nov 2008 13:05:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 13:05:18 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: "Miles Bader" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 04 14:06:18 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxLay-0007Qs-D9 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 14:05:48 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxLZp-00022B-Ru for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 14:04:09 +0100 Original-Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KxLZp-000228-QU for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 14:04:09 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx3.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KxLZp-0004NG-3p for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 14:04:09 +0100 Original-Received: from localhost ([127.0.0.1]:34296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxLZh-0004rO-QV for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 08:04:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxLZc-0004pX-3x for emacs-devel@gnu.org; Tue, 04 Nov 2008 08:03:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxLZa-0004mU-F3 for emacs-devel@gnu.org; Tue, 04 Nov 2008 08:03:55 -0500 Original-Received: from [199.232.76.173] (port=50347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxLZa-0004m9-8d for emacs-devel@gnu.org; Tue, 04 Nov 2008 08:03:54 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.246]:57048) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxLZW-0003f8-LN; Tue, 04 Nov 2008 08:03:50 -0500 Original-Received: by an-out-0708.google.com with SMTP id c38so237694ana.21 for ; Tue, 04 Nov 2008 05:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/dZfdgZ9pFZqhK7f4aVbLfIzlpJS5lkR/vKW/cz9tMI=; b=gLuAo1xYFcLcIPXjSm9WqqTvAyPR2pIxS1wucrrJ/NSdk/26R8WKWHUrR1yGDDFugN CoX/OhwgCuM1EZBbRswLciIQ7+BX1MKRe6InQ8MtNzlifViYEb5Ez/xs/atBWvVD7cTY T+dv7S8/MAYZ//54DqvVbhausB5JAZv4IG9mg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZOd5fR4cLaeIWHjYee54RT4i3RimdJqlOxiH0wL/YC5KzjWubl1OXX8H5Kqp2ml+Qg TPHNAxWPc8UjcTgVgjN9o3ApwdGop0NJvT0eBGJNbhdyWIYJQCgHHMTnumbdRGvVPYOs 1o8kAxMeMlxWYEEe/Hf41mG4cTRCJSG/CiD/o= Original-Received: by 10.100.119.17 with SMTP id r17mr622048anc.130.1225803829157; Tue, 04 Nov 2008 05:03:49 -0800 (PST) Original-Received: by 10.100.165.17 with HTTP; Tue, 4 Nov 2008 05:03:49 -0800 (PST) In-Reply-To: Content-Disposition: inline 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 X-UiO-SPF-Received: Received-SPF: pass (mail-mx3.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-3.8, required=5.0, autolearn=disabled, MISSING_SUBJECT=0.001,NO_RECEIVED=-0.001,RCVD_IN_DNSWL_MED=-4,WHOIS_MYPRIVREG=0.156, uiobl=NO, uiouri=NO) X-UiO-Scanned: 67D1D0C0DAE6EB1C358FC7AAEF19C2F11D582938 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -37 maxlevel 200 minaction 2 bait 0 mail/h: 6 total 75830 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.devel:105332 Archived-At: On Tue, Nov 4, 2008 at 5:47 PM, Miles Bader wrote: > > On Tue, Nov 4, 2008 at 5:55 PM, Dan Nicolaescu wrote: > > > > > When using --daemon, you initially have no frames. You can then make > > > > > new frames with emacsclient -c or emacsclient -t, but if they're X > > > > > frames, closing the last such created frame (with C-x # or C-x C-c) > > > > > kills the emacs process! > > > > I still cannot reproduce this, with emacs freshly checked out and after > > a "make maintainer-clean" and /bin/rm -f /tmp/emacs*/server > > > > Can you please try to debug and find out why emacs dies for you? > > Hmm, it seems to segfault in xlib, though I'm not sure why. I'm using > a gtk emacs; are you also? > > 1509 if (terminal->reference_count == 0) > (gdb) n > 1515 Fdelete_terminal (tmp, NILP (force) ? Qt : force); > (gdb) n > > Program received signal SIGSEGV, Segmentation fault. > 0xb780dfc0 in _XSend () from /usr/lib/libX11.so.6 > (gdb) ba > #0 0xb780dfc0 in _XSend () from /usr/lib/libX11.so.6 > #1 0xb780e1b2 in _XFlush () from /usr/lib/libX11.so.6 > #2 0xb77e5d71 in XFlush () from /usr/lib/libX11.so.6 > #3 0xb7839700 in ?? () from /usr/lib/libX11.so.6 > #4 0x0881a940 in ?? () > #5 0xb78b53ec in ?? () from /usr/lib/libX11.so.6 > #6 0xbfffb188 in ?? () > #7 0xb7838de2 in _XimFlush () from /usr/lib/libX11.so.6 > Backtrace stopped: frame did not save the PC > > Lisp Backtrace: > "delete-frame" (0xbfffc374) > "server-delete-client" (0xbfffc4b4) > "server-save-buffers-kill-terminal" (0xbfffc5e4) > "save-buffers-kill-terminal" (0xbfffc764) > "call-interactively" (0xbfffc924) > > -Miles > -- > Do not taunt Happy Fun Ball. > > I got same problem. And I found a patch at http://www.nabble.com/segfault-when-using-XIM-with-multi-tty-on-gnu-linux-td18966793.html. It works for me.