From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Tue, 11 Oct 2011 21:49:30 +0200 Message-ID: <87mxd72trp.fsf@thinkpad.tsdh.de> References: <87d3flnxoo.fsf@thinkpad.tsdh.de> <83fwkhdld0.fsf@gnu.org> <871uw04lr9.fsf@thinkpad.tsdh.de> <87sjog35jj.fsf@thinkpad.tsdh.de> <4E5F7ECD.9060601@swipnet.se> <838vq8e0x5.fsf@gnu.org> <87sjn03tzx.fsf@thinkpad.tsdh.de> <87sjmzbmvv.fsf@thinkpad.tsdh.de> <877h4bs5h9.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318362587 8132 80.91.229.12 (11 Oct 2011 19:49:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 19:49:47 +0000 (UTC) Cc: Ulrich Mueller , emacs-devel@gnu.org, schwab@linux-m68k.org, Stefan Monnier , Eli Zaretskii , "Jan D." To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 11 21:49:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RDiKb-0000Ah-5c for ged-emacs-devel@m.gmane.org; Tue, 11 Oct 2011 21:49:41 +0200 Original-Received: from localhost ([::1]:54057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDiKa-00036r-Mu for ged-emacs-devel@m.gmane.org; Tue, 11 Oct 2011 15:49:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDiKY-00036m-2v for emacs-devel@gnu.org; Tue, 11 Oct 2011 15:49:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDiKX-0001Wh-1Y for emacs-devel@gnu.org; Tue, 11 Oct 2011 15:49:38 -0400 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:47134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDiKV-0001WP-Lc; Tue, 11 Oct 2011 15:49:35 -0400 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D3A552232F; Tue, 11 Oct 2011 15:49:34 -0400 (EDT) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 11 Oct 2011 15:49:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=rPG6X6NpIAXZWBsrUQ8g9+VhQlY=; b=LaU23nC3F/W4tNZOyT+g/q8aPef/ nqR3jDFLsBmI+ZClLWveOXyCSagscSqXqEdecg7D/WOjDQjHD2Ic2un12yllBtFz T+GO8epsPZXzPcxYFoHl4OdzIGUex1C6gtPaVe70UJejXcuDDckQUznkKCRpwdMs rnBVmjEfNactICc= X-Sasl-enc: 1Z9kn+IA9bKoZijDNANpfBsm+d3sKUIfujyM4UoRmY6l 1318362574 Original-Received: from thinkpad.tsdh.de (91-67-169-145-dynip.superkabel.de [91.67.169.145]) by mail.messagingengine.com (Postfix) with ESMTPSA id A6C2A40346A; Tue, 11 Oct 2011 15:49:32 -0400 (EDT) In-Reply-To: <877h4bs5h9.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Tue, 11 Oct 2011 21:17:22 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144912 Archived-At: Tassilo Horn writes: > Oh, checking the backtrace I've posted at the beginning of this thread, > I've found this code in gtkutil.c: > > #if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 10 > /* GTK 2.2-2.8 has a bug that makes gdk_display_close crash (bug > http://bugzilla.gnome.org/show_bug.cgi?id=85715). This way we > can continue running, but there will be memory leaks. */ > g_object_run_dispose (G_OBJECT (gdpy)); > #else > /* This seems to be fixed in GTK 2.10. */ > gdk_display_close (gdpy); > #endif > } > > That's already the right workaround, isn't it? The only thing is that > this bug is *not* fixed in GTK 2.10 but instead still exists (or > exists again) in GTK 3.2.0. I've just commented the line in the #else and recompiled emacs and reproduced the issue, i.e., started emacs using the application menu (resulting in a frame on display :0) and then opened another frame using emacsclient -c in a gnome terminal, so that in the end (x-display-list) returned (":0" ":0.0"). Then I deleted the frame created by emacsclient -c using C-x 5 0. The result is that the frame is still there but not functional. I can't even see the mouse pointer when hovering over it. From my perspective, that's an improvement. :-) (x-display-list) returns (":0") again. Bye, Tassilo