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: Date: Mon, 23 Jul 2012 01:08:21 -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 1343016516 29105 80.91.229.3 (23 Jul 2012 04:08:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 04:08:36 +0000 (UTC) Cc: woddfellow2@gmail.com To: 11741@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 23 06:08:36 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 1St9wh-0007ws-TC for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 06:08:36 +0200 Original-Received: from localhost ([::1]:50171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St9wg-0004HT-IZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 00:08:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St9wd-0004HB-Kl for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 00:08:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1St9wc-0001hs-BQ for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 00:08:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1St9wc-0001ho-7s for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 00:08:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1StA2v-0004Hq-O1 for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 00:15:01 -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: Mon, 23 Jul 2012 04:15:01 +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.134301689516457 (code B ref 11741); Mon, 23 Jul 2012 04:15:01 +0000 Original-Received: (at 11741) by debbugs.gnu.org; 23 Jul 2012 04:14:55 +0000 Original-Received: from localhost ([127.0.0.1]:58259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StA2p-0004HO-5K for submit@debbugs.gnu.org; Mon, 23 Jul 2012 00:14:55 -0400 Original-Received: from mail-vc0-f172.google.com ([209.85.220.172]:42881) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StA2n-0004HH-9o for 11741@debbugs.gnu.org; Mon, 23 Jul 2012 00:14:54 -0400 Original-Received: by vcbfo14 with SMTP id fo14so5953433vcb.3 for <11741@debbugs.gnu.org>; Sun, 22 Jul 2012 21:08:21 -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:cc:content-type; bh=sKppW1Qkvj0k6qnSFC4UsaQNWuDL6K0SQqWDCc1HO/8=; b=bEiFcEWkG84tY5c4HRiCD80c7xsw8I9h8Hh3WXX26IycasLncx8H+VNo7HmVJlHqOE Dx9X+LSWBZiyN/6y18uGsPPLmWdPQQbtQj7iOrK3QtSm1cxb3kfm9X5XsAqsuZvXNEEZ viO7ZE7ofJY/2N/0Il1L79C4xl3y5zL+aBDYiBpvPCsjIN718mv4qxayYmxqkxntKHmj +4TMihlu+gK8u0uLpXPVa/EmVLZ71XdjPBZvFARF7HMc0V6NgRWqI1/cz8yRcBA3A119 M7z1wUaOBFZync13LeRETzKBUuBH5m/2lsgdTzZdj9WXvC3liL5NXezfztmB9Q9SG9ze XODA== Original-Received: by 10.220.115.12 with SMTP id g12mr11094135vcq.44.1343016501071; Sun, 22 Jul 2012 21:08:21 -0700 (PDT) Original-Received: by 10.220.110.138 with HTTP; Sun, 22 Jul 2012 21:08:21 -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:62298 Archived-At: 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 for that frame 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.