From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alejandro Benitez Newsgroups: gmane.emacs.bugs Subject: bug#11741: 24.1; Daemon Dies When X Exits Date: Fri, 3 Aug 2012 14:28:15 -0300 Message-ID: References: <87wr33igvm.fsf@volunteer.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344014912 14092 80.91.229.3 (3 Aug 2012 17:28:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 17:28:32 +0000 (UTC) To: 11741@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 19:28:33 2012 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 1SxLfr-0007TO-KQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 19:28:31 +0200 Original-Received: from localhost ([::1]:32842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxLfq-0006qa-NB for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 13:28:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxLfn-0006qI-J1 for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 13:28:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxLfl-0008Bx-Mp for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 13:28:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxLfl-0008Bm-FX for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 13:28:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SxLn8-0006f6-4k for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2012 13:36:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87wr33igvm.fsf@volunteer.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Alejandro Benitez Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Aug 2012 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11741-submit@debbugs.gnu.org id=B11741.134401535725598 (code B ref 11741); Fri, 03 Aug 2012 17:36:02 +0000 Original-Received: (at 11741) by debbugs.gnu.org; 3 Aug 2012 17:35:57 +0000 Original-Received: from localhost ([127.0.0.1]:59750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxLn3-0006eo-1r for submit@debbugs.gnu.org; Fri, 03 Aug 2012 13:35:57 -0400 Original-Received: from mail-vb0-f44.google.com ([209.85.212.44]:42013) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxLmz-0006ee-16 for 11741@debbugs.gnu.org; Fri, 03 Aug 2012 13:35:54 -0400 Original-Received: by vbbez10 with SMTP id ez10so1128291vbb.3 for <11741@debbugs.gnu.org>; Fri, 03 Aug 2012 10:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bwmybdBbEP59kTnIZqj7FMcV/bVpFearKjwWyc3+cMw=; b=BisMZVpxucexr3iIuVRwgBUg3imefBQpGk45KqUTacBIfwG7BWgSbH3/mL7LCxrX2i tCCnmHBU9ISsKFv4STmICKPVI+Jip2deHHYoNziX8/CSq72xr1m2zCI3RQSHbHd0FRL1 2pL6jQBwwyOK/YHgj6QnvI8KoFeVvzoq5aqX6jEvy+3dAouHUkpZ2N4KpmrdvNRrCUHg nu7LgZ5Z+0BT47AhlNgKfOabwafhz0X3CXybYoDGh2A4Fe4cRCRE60yg82QXBeA6NV1v dP4nTdmWErUVa/axneyLwuY4OJxzjp6GNaZAg0y093KXSSZ3ijkgkXcMvjeiZl6VxMi0 SHzA== Original-Received: by 10.52.90.130 with SMTP id bw2mr1641071vdb.131.1344014895561; Fri, 03 Aug 2012 10:28:15 -0700 (PDT) Original-Received: by 10.220.110.138 with HTTP; Fri, 3 Aug 2012 10:28:15 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62795 Archived-At: I'm posting this because the original message did not containt a subject. Glenn Morris writes: > woddfellow2 wrote: > >> If I start an Emacs daemon, even outside of X, then open an emacsclient >> frame in X, then C-x 5 0, then exit X, the daemon dies. This happens >> even with emacs -Q. This appears to e a regression, as Emacs 23 did not >> have this problem: >> >> Connection lost to X server `:0' >> When compiled with GTK, Emacs cannot recover from X disconnects. >> This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715 >> For details, see etc/PROBLEMS. > > The above message seems pretty clear to me. > > Here's what the etc/PROBLEMS entry says: > > ** When Emacs is compiled with Gtk+, closing a display kills Emacs. > > There is a long-standing bug in GTK that prevents it from recovering > from disconnects: http://bugzilla.gnome.org/show_bug.cgi?id=85715. > > Thus, for instance, when Emacs is run as a server on a text terminal, > and an X frame is created, and the X server for that frame crashes or > exits unexpectedly, Emacs must exit to prevent a GTK error that would > result in an endless loop. > > If you need Emacs to be able to recover from closing displays, compile > it with the Lucid toolkit instead of GTK. Hi, Looks like this actually is a regression as the steps to reproduce that described the OP are not the the same as the know problem. 1. I start an Emacs daemon, even outside of X 2. then open an emacsclient frame in X 3. then C-x 5 0 4. then exit X 5. the daemon dies Step 3 means that the frame should be deleted before the X server would supposedly crash or exit unexpectedly. The actual problem is that the frame is not successfully deleted before exiting X, although it looks like it does. Emacs 23.4.1 does delete the frame successfully, so when I exit the X server I don't get a "there is currently 1 client connected" message that when I get with Emacs 24.1. I was able to reproduce this in Emacs 24.1 i686-pc-cygwin, GTK+. Emacs 23.4.1 i686-pc-cygwin, GTK+ does not die after performing the 4 steps above.