From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: GTK stack-busting loop Date: Mon, 01 Nov 2010 12:43:07 +0100 Message-ID: <4CCEA7CB.1040608@swipnet.se> References: <8739rn810g.fsf@stupidchicken.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: dough.gmane.org 1288611816 16778 80.91.229.12 (1 Nov 2010 11:43:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2010 11:43:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 01 12:43:21 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCsnJ-0001AZ-7X for ged-emacs-devel@m.gmane.org; Mon, 01 Nov 2010 12:43:21 +0100 Original-Received: from localhost ([127.0.0.1]:36570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCsnI-0004si-PG for ged-emacs-devel@m.gmane.org; Mon, 01 Nov 2010 07:43:20 -0400 Original-Received: from [140.186.70.92] (port=46308 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCsnC-0004sa-I4 for emacs-devel@gnu.org; Mon, 01 Nov 2010 07:43:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCsnB-0003WB-AR for emacs-devel@gnu.org; Mon, 01 Nov 2010 07:43:14 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:34981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCsnB-0003Vw-3b for emacs-devel@gnu.org; Mon, 01 Nov 2010 07:43:13 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 41E17E92D9 for ; Mon, 1 Nov 2010 12:43:09 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0uAN5EzkxV4S1kPGdsb2JhbAChVQwBAQEBNS27SYVFBI1c X-IronPort-AV: E=Sophos;i="4.58,273,1286143200"; d="scan'208";a="1686583242" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 01 Nov 2010 12:43:08 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 3125E7FA05A; Mon, 1 Nov 2010 12:43:08 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: <8739rn810g.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132233 Archived-At: 2010-10-31 05:00, Chong Yidong skrev: > On the trunk, with GTK, the following recipe causes an infloop: > > 1. emacs -Q -nw -f server-start > 2. emacsclient -c > 3. In another terminal, run `xkill' and click on the GTK toolbar > > The backtrace is at the end of this message. It can be obtained by > attaching to the looping Emacs process in another gdb session. > Eventually, the loop overflows the stack. > > This bug does not occur on the emacs-23 branch, nor if you click `xkill' > on other parts of the graphical frame. In those cases, Emacs aborts as > it now ought to. > I get the same behaviour in Emacs-23 and trunk, i.e.: Connection lost to X server `:0.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. (emacs:8582): GLib-WARNING **: g_main_context_prepare() called recursively from within a source's check() or prepare() member. (emacs:8582): GLib-WARNING **: g_main_context_check() called recursively from within a source's check() or prepare() member. Fatal error (6)Avbruten (SIGABRT) Jan D.