From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: peder@klingenberg.no (Peder O. Klingenberg) Newsgroups: gmane.emacs.bugs Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Date: Thu, 27 Mar 2014 23:47:40 +0100 Organization: Persons in a Position to Know, inc. Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395961458 12416 80.91.229.3 (27 Mar 2014 23:04:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2014 23:04:18 +0000 (UTC) To: 17125@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 00:04:25 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTJLQ-0000Uh-Nv for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 00:04:20 +0100 Original-Received: from localhost ([::1]:56354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJLQ-0006Lk-8w for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 19:04:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJLF-0006La-Jy for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 19:04:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTJL8-0006bm-D3 for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 19:04:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJL8-0006bi-9E for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 19:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTJL7-0001In-U8 for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Mar 2014 23:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13959614234976 (code B ref -1); Thu, 27 Mar 2014 23:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Mar 2014 23:03:43 +0000 Original-Received: from localhost ([127.0.0.1]:53294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTJKn-0001IB-Uy for submit@debbugs.gnu.org; Thu, 27 Mar 2014 19:03:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37336) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTJ5y-0000s3-Hs for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTJ5r-0002FT-0B for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5q-0002FO-Sx for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5k-0006s4-If for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTJ5e-0002EM-8I for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:08 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:52469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5d-0002DT-TU for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:02 -0400 Original-Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WTJ5I-0005Re-Gi; Thu, 27 Mar 2014 23:47:40 +0100 Original-Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WTJ5I-0000FR-E6; Thu, 27 Mar 2014 23:47:40 +0100 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) X-MailScanner-ID: 1WTJ5I-0005Re-Gi MailScanner-NULL-Check: 1396565260.87158@bMO5ReoaTm82scSJJfiYPg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 27 Mar 2014 19:03:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87466 Archived-At: Emacs compiled from git sources pulled 2014-03-26. I have a tiny local patch to startup.el that loads debian-startup in addition to the normal site-run-file (as long as site-run-file is non-nil), otherwise the sources are clean. I ran autoreconf and configure, then built with "make bootstrap". This triggers the behaviour: $ emacs -no-site-file -no-init-file --daemon=test $ emacsclient -nc -s test In emacs frame: C-x 5 0 The minibuffer flashes "No files need saving", the frame closes, and the emacs process is gone. Subsequent emacsclient invocations naturally fail with the messages emacsclient: connect: Connection refused emacsclient: error accessing socket "test" This does _not_ trigger the behaviour: $ emacs -no-site-file -no-init-file --daemon=test $ emacsclient -t -s test In emacs frame: C-x 5 0 The terminal frame exits, but I can reconnect again with another emacsclient call. Another way of _not_ triggering it: $ emacs -Q --daemon=test $ emacsclient -nc -s test Again I can exit the frame with C-x 5 0 and immediately reconnect, as expected. The only difference I could find between "-Q" and "-no-site-file -no-init-file" was that "-Q" sets inhibit-x-resources to t in startup.el. This sort of ties in to the problem only showing up when I start X frames, but I am at a loss as to how to dig deeper. I have some ancient X resources influencing emacs, but I fail to see how they can have an impact. Here's the output of "xrdb -query | grep -i emacs": Emacs*background: black Emacs*cursorColor: SeaGreen Emacs*font: 7x13 Emacs*foreground: DarkSeaGreen Emacs*menubar.background: Black Emacs*menubar.bottomShadowColor: DimGray Emacs*menubar.font: -*-fixed-bold-r-normal--13-*-*-*-*-70-iso8859-1 Emacs*menubar.foreground: DarkSeaGreen Emacs*menubar.margin: 0 Emacs*menubar.topShadowColor: DarkGray Emacs*pointerColor: SlateGrey Emacs*popup.font: -*-fixed-bold-r-normal--13-*-*-*-*-70-iso8859-1 Emacs*shadowThickness: 1 Emacs*verticalScrollBars.background: Black Emacs*verticalScrollBars.foreground: DarkSeaGreen Emacs.geometry: 85x75+0+0 Does any of this ring a bell for someone? Any ideas for where I should be looking? Any more relevant info I should provide? In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-03-26 on luna Windowing system distributor `The X.Org Foundation', version 11.0.10402000 System Description: Ubuntu 10.04.4 LTS Configured using: `configure --prefix=/usr/local/emacs-git --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp/:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --with-pop=yes' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r SPC e m Recent messages: Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils server time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 77836 8053) (symbols 48 17986 0) (miscs 40 45 113) (strings 32 11943 4704) (string-bytes 1 319662) (vectors 16 10109) (vector-slots 8 382979 8265) (floats 8 71 60) (intervals 56 202 0) (buffers 960 12) (heap 1024 23942 627))