From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon Date: Sat, 02 May 2009 18:51:14 +0200 Message-ID: <49FC7A02.5030208@swipnet.se> References: <87hc07gdd2.fsf@cyd.mit.edu> <49F959F7.6030002@swipnet.se> Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 3145@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241284337 17227 80.91.229.12 (2 May 2009 17:12:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 May 2009 17:12:17 +0000 (UTC) Cc: 3145@emacsbugs.donarmstrong.com, Stephen Berman To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 02 19:12:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M0Ikw-0000Iw-9m for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 May 2009 19:12:06 +0200 Original-Received: from localhost ([127.0.0.1]:47987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0Ikv-00038u-KY for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 May 2009 13:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0Ikr-00037f-G4 for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 13:12:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0Ikm-00032E-Bf for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 13:12:01 -0400 Original-Received: from [199.232.76.173] (port=36500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0Ikm-00031y-5Z for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 13:11:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52642) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0Ikl-00036v-CO for bug-gnu-emacs@gnu.org; Sat, 02 May 2009 13:11:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n42HBqpe003389; Sat, 2 May 2009 10:11:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n42H06XJ031067; Sat, 2 May 2009 10:00:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 02 May 2009 17:00:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3145 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3145-submit@emacsbugs.donarmstrong.com id=B3145.124128308829318 (code B ref 3145); Sat, 02 May 2009 17:00:06 +0000 Original-Received: (at 3145) by emacsbugs.donarmstrong.com; 2 May 2009 16:51:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from proxy3.bredband.net (proxy3.bredband.net [195.54.101.73]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n42GpLNm029309 for <3145@emacsbugs.donarmstrong.com>; Sat, 2 May 2009 09:51:23 -0700 Original-Received: from ironport2.bredband.com (195.54.101.122) by proxy3.bredband.net (7.3.140.3) id 49F597CD001C9007 for 3145@emacsbugs.donarmstrong.com; Sat, 2 May 2009 18:51:15 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8FAEsX/ElV4S1uPGdsb2JhbACBUJUMAQEBAbZgg30F X-IronPort-AV: E=Sophos;i="4.40,283,1238968800"; d="scan'208";a="478074308" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ironport2.bredband.com with ESMTP; 02 May 2009 18:51:15 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id A82D17FA07B; Sat, 2 May 2009 18:51:14 +0200 (CEST) User-Agent: Thunderbird 2.0.0.21 (X11/20090409) In-Reply-To: <49F959F7.6030002@swipnet.se> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 02 May 2009 13:12:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27626 Archived-At: Sorry, no workaround is possible. The part in Gtk+ that handles detaching uses a hidden window which it stores in a static variable. So it get created on the first display, but is still used on the second, but that is not a valid window anymore: static GtkWidget * gtk_handle_box_get_invisible (void) { static GtkWidget *handle_box_invisible = NULL; if (!handle_box_invisible) { handle_box_invisible = gtk_invisible_new (); gtk_widget_show (handle_box_invisible); } return handle_box_invisible; } This is another instance of the "there is just one display and it is always open"-mindset of Gtk+. I have filed a Gtk+ bug on this (http://bugzilla.gnome.org/show_bug.cgi?id=581110). Not sure what we should do about this bug though. Keep it until Gtk+ fixes/rejects the bug report or close it? Jan D. > > > Chong Yidong skrev: >> Stephen Berman wrote: >> >>> Carrying out the following steps reliably crashes Emacs: >>> >>> 1. emacs -Q --daemon >>> 2. emacsclient -c >>> 3. Detach the tool bar (only possible with GTK+ build). >>> 4. Close the client frame with C-x 5 0 >>> 5. emacsclient -c >>> 6. Detach the tool bar >>> => SIGSEGV >> >> Actually, daemon mode is not needed. You can also do this: >> >> 1. emacs -Q -nw >> 2. M-x make-frame-on-display RET :0.0 RET >> 3. Detach the tool bar >> 4. Close the client frame with C-x 5 0 >> 5. M-x make-frame-on-display RET :0.0 RET >> 6. Detach the tool bar >> => SIGSEGV >> >> Jan, could you try to debug this? It may be another manifestation of >> the problems we've been having with GTK and closing X connections. > > It looks like it. The window for the detached tool bar is created and > managed by Gtk+ and is not deleted when the display is removed it seems. > > I'll see if we can work around it. > > Jan D. > >