GNU bug report logs - #1708
23.0.60; g_main_context_prepare() called recursively

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Markus Triska <markus.triska <at> gmx.at>; Keywords: unreproducible moreinfo; dated Fri, 26 Dec 2008 12:10:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.
Added tag(s) unreproducible and moreinfo. Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. Full text available.

Message received at 1708 <at> emacsbugs.donarmstrong.com:


Received: (at 1708) by emacsbugs.donarmstrong.com; 31 Dec 2008 16:38:48 +0000
From dann <at> mothra.ics.uci.edu Wed Dec 31 08:38:48 2008
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-6.0 required=4.0 tests=HAS_BUG_NUMBER,
	X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBVGcf7i020655
	for <1708 <at> emacsbugs.donarmstrong.com>; Wed, 31 Dec 2008 08:38:42 -0800
Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93])
	by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBVGcSb6025223;
	Wed, 31 Dec 2008 08:38:28 -0800 (PST)
Received: (from dann <at> localhost)
	by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBVGcS8s004795;
	Wed, 31 Dec 2008 08:38:28 -0800 (PST)
Date: Wed, 31 Dec 2008 08:38:28 -0800 (PST)
Message-Id: <200812311638.mBVGcS8s004795 <at> mothra.ics.uci.edu>
From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 1708 <at> debbugs.gnu.org
Subject: Re: bug#1708: 23.0.60; g_main_context_prepare() called recursively
References: <20081226120017.8977DC17597 <at> mt-computer.local>
	<200812271718.mBRHI9ju019208 <at> mothra.ics.uci.edu>
	<m1r63o1fbh.fsf <at> gmx.at>
X-Debbugs-No-Ack: yes
In-Reply-To: <m1r63o1fbh.fsf <at> gmx.at> (Markus Triska's message of "Wed, 31 Dec
	2008 17:26:26 +0100")
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-ICS-MailScanner-Information: Please contact the ISP for more information
X-ICS-MailScanner-ID: mBVGcSb6025223
X-ICS-MailScanner: Found to be clean
X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5,
	autolearn=disabled, ALL_TRUSTED -1.44)
X-ICS-MailScanner-From: dann <at> mothra.ics.uci.edu

Markus Triska <markus.triska <at> gmx.at> writes:

  > Dan Nicolaescu <dann <at> ics.uci.edu> writes:
  > 
  > > Can you reproduce this when configuring without GTK+?
  > 
  > With --with-x-toolkit=lucid, the second "emacsclient -c" shows:
  > 
  >    Waiting for Emacs...
  >    *ERROR*: X protocol error: BadLength (poly request too large or internal
  >    Xlib length error) on protocol request 19
  > 
  > After a few further $ emacsclient -c, the server always crashes with:

I can't reproduce this on an Fedora 10 machine...




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1708; Package emacs. Full text available.

Message received at 1708 <at> emacsbugs.donarmstrong.com:


Received: (at 1708) by emacsbugs.donarmstrong.com; 31 Dec 2008 16:26:42 +0000
From markus.triska <at> gmx.at Wed Dec 31 08:26:42 2008
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-0.8 required=4.0 tests=HAS_BUG_NUMBER,
	IMPRONONCABLE_1,IMPRONONCABLE_2,MURPHY_WRONG_WORD2 autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mBVGQbYv018189
	for <1708 <at> emacsbugs.donarmstrong.com>; Wed, 31 Dec 2008 08:26:39 -0800
Received: (qmail invoked by alias); 31 Dec 2008 16:26:31 -0000
Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212]
  by mail.gmx.net (mp043) with SMTP; 31 Dec 2008 17:26:31 +0100
X-Authenticated: #4064391
X-Provags-ID: V01U2FsdGVkX18ZQCdXwrMZEEXWqWtR65PrlAziNNSBnghC8Q90J1
	FAXvvL6ykO7Y81
Received: by mt-computer.local (Postfix, from userid 502)
	id 66BE2C2008F; Wed, 31 Dec 2008 17:26:26 +0100 (CET)
From: Markus Triska <markus.triska <at> gmx.at>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 1708 <at> debbugs.gnu.org
Subject: Re: bug#1708: 23.0.60; g_main_context_prepare() called recursively
References: <20081226120017.8977DC17597 <at> mt-computer.local>
	<200812271718.mBRHI9ju019208 <at> mothra.ics.uci.edu>
Date: Wed, 31 Dec 2008 17:26:26 +0100
In-Reply-To: <200812271718.mBRHI9ju019208 <at> mothra.ics.uci.edu> (Dan
	Nicolaescu's message of "Sat, 27 Dec 2008 09:18:09 -0800 (PST)")
Message-ID: <m1r63o1fbh.fsf <at> gmx.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.53

Dan Nicolaescu <dann <at> ics.uci.edu> writes:

> Can you reproduce this when configuring without GTK+?

With --with-x-toolkit=lucid, the second "emacsclient -c" shows:

   Waiting for Emacs...
   *ERROR*: X protocol error: BadLength (poly request too large or internal
   Xlib length error) on protocol request 19

After a few further $ emacsclient -c, the server always crashes with:

#0 0x0003392d in redisplay_internal (preserve_echo_area=0) at
 xdisp.c:11800#1 0x000342f6 in redisplay_preserve_echo_area
 (from_where=12) at xdisp.c:12040#2 0x001920a7 in
 wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1,
 do_display=1, wait_for_cell=50332681, wait_proc=0x0, just_wait_proc=0)
 at process.c:4997#3 0x0000c01e in sit_for (timeout=240, reading=1,
 do_display=1) at dispnew.c:6637#4 0x000e8c9a in read_char
 (commandflag=1, nmaps=2, maps=0xbffff3d0, prev_event=50332681,
 used_mouse_menu=0xbffff4c8, end_time=0x0) at keyboard.c:2903#5
 0x000eaa0a in read_key_sequence (keybuf=0xbffff588, bufsize=30,
 prompt=50332681, dont_downcase_last=0, can_return_switch_frame=1,
 fix_current_buffer=1) at keyboard.c:9354#6 0x000ece2b in command_loop_1
 () at keyboard.c:1632#7 0x0014c94c in internal_condition_case
 (bfun=0xecc0d <command_loop_1>, handlers=50372345, hfun=0xe59a8
 <cmd_error>) at eval.c:1511#8 0x000ded84 in command_loop_2 () at
 keyboard.c:1349#9 0x0014c59e in internal_catch (tag=50368417,
 func=0xded40 <command_loop_2>, arg=50332681) at eval.c:1247#10
 0x000deb26 in command_loop () at keyboard.c:1328#11 0x000debdf in
 recursive_edit_1 () at keyboard.c:942#12 0x000ded27 in Frecursive_edit
 () at keyboard.c:1004#13 0x000ddb3c in main (argc=5, argv=0xbffff9c0)
 at emacs.c:1786




Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1708; Package emacs. Full text available.

Message received at 1708 <at> emacsbugs.donarmstrong.com:


Received: (at 1708) by emacsbugs.donarmstrong.com; 27 Dec 2008 17:18:24 +0000
From dann <at> mothra.ics.uci.edu Sat Dec 27 09:18:23 2008
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-6.0 required=4.0 tests=HAS_BUG_NUMBER,
	X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02
Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBRHIKrR006095
	for <1708 <at> emacsbugs.donarmstrong.com>; Sat, 27 Dec 2008 09:18:22 -0800
Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93])
	by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBRHIAmM012956;
	Sat, 27 Dec 2008 09:18:10 -0800 (PST)
Received: (from dann <at> localhost)
	by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBRHI9ju019208;
	Sat, 27 Dec 2008 09:18:09 -0800 (PST)
Date: Sat, 27 Dec 2008 09:18:09 -0800 (PST)
Message-Id: <200812271718.mBRHI9ju019208 <at> mothra.ics.uci.edu>
From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Markus Triska <markus.triska <at> gmx.at>
Cc: 1708 <at> debbugs.gnu.org
Subject: Re: bug#1708: 23.0.60; g_main_context_prepare() called recursively
References: <20081226120017.8977DC17597 <at> mt-computer.local>
X-Debbugs-No-Ack: yes
In-Reply-To: <20081226120017.8977DC17597 <at> mt-computer.local> (Markus Triska's
	message of "Fri, 26 Dec 2008 13:00:17 +0100 (CET)")
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-ICS-MailScanner-Information: Please contact the ISP for more information
X-ICS-MailScanner-ID: mBRHIAmM012956
X-ICS-MailScanner: Found to be clean
X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5,
	autolearn=disabled, ALL_TRUSTED -1.44)
X-ICS-MailScanner-From: dann <at> mothra.ics.uci.edu

Markus Triska <markus.triska <at> gmx.at> writes:

  > From OSX 10.4, I log in via ssh to a remote machine R running Ubuntu
  > jaunty, and there do:
  > 
  >    $ emacs -nw -Q -f server-start
  > 
  > In another terminal in OSX, I again ssh to R, and there do:
  > 
  >    $ emacsclient -c
  > 
  > As expected, I get an X frame on the local machine (OSX). Now I close
  > the terminal in which I started the remote emacsclient, thus killing
  > the client. The remote server at this point shows the message:
  > 
  >    server: Connection lost to X server `localhost:11.0'
  > 
  > Now I again ssh to R, and again do there:
  > 
  >    $ emacsclient -c
  > 
  > Now, only a blank frame shows up, and the remote server repeatedly
  > shows the following message:
  > 
  >  (emacs:11624): GLib-WARNING **: g_main_context_prepare() called
  >    recursively from within a source's check() or prepare() member.
  > 
  > Information about Emacs on the remote machine R:
  > 
  >    In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.5)
  >     of 2008-12-24 on R

Can you reproduce this when configuring without GTK+?
If not, this and your other disconnect bug are probably just instances
of the same very old Gtk+ bug: http://bugzilla.gnome.org/show_bug.cgi?id=85715.
Gtk+ does deal well with disconnecting... 




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1708; Package emacs. Full text available.

Message received at submit <at> emacsbugs.donarmstrong.com:


Received: (at submit) by emacsbugs.donarmstrong.com; 26 Dec 2008 12:00:33 +0000
From triska <at> gmx.at Fri Dec 26 04:00:32 2008
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBQC0PRV007309
	for <submit <at> emacsbugs.donarmstrong.com>; Fri, 26 Dec 2008 04:00:26 -0800
Received: from mx10.gnu.org ([199.232.76.166]:43245)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <triska <at> gmx.at>)
	id 1LGBLj-0003cK-CJ
	for emacs-pretest-bug <at> gnu.org; Fri, 26 Dec 2008 06:59:27 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <triska <at> gmx.at>)
	id 1LGBMd-0003xh-Ck
	for emacs-pretest-bug <at> gnu.org; Fri, 26 Dec 2008 07:00:23 -0500
Received: from mail.gmx.net ([213.165.64.20]:33292)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <triska <at> gmx.at>)
	id 1LGBMc-0003xX-TC
	for emacs-pretest-bug <at> gnu.org; Fri, 26 Dec 2008 07:00:23 -0500
Received: (qmail invoked by alias); 26 Dec 2008 12:00:21 -0000
Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212]
  by mail.gmx.net (mp064) with SMTP; 26 Dec 2008 13:00:21 +0100
X-Authenticated: #4064391
X-Provags-ID: V01U2FsdGVkX1/YUiVp+ILYltZH4snqbRdlb40Gs3EumE/BlCZLlJ
	z1ZlvZI6432UhJ
Received: by mt-computer.local (Postfix, from userid 502)
	id 8977DC17597; Fri, 26 Dec 2008 13:00:17 +0100 (CET)
From: Markus Triska <markus.triska <at> gmx.at>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; g_main_context_prepare() called recursively
Message-Id: <20081226120017.8977DC17597 <at> mt-computer.local>
Date: Fri, 26 Dec 2008 13:00:17 +0100 (CET)
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.51
X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized.


From OSX 10.4, I log in via ssh to a remote machine R running Ubuntu
jaunty, and there do:

   $ emacs -nw -Q -f server-start

In another terminal in OSX, I again ssh to R, and there do:

   $ emacsclient -c

As expected, I get an X frame on the local machine (OSX). Now I close
the terminal in which I started the remote emacsclient, thus killing
the client. The remote server at this point shows the message:

   server: Connection lost to X server `localhost:11.0'

Now I again ssh to R, and again do there:

   $ emacsclient -c

Now, only a blank frame shows up, and the remote server repeatedly
shows the following message:

 (emacs:11624): GLib-WARNING **: g_main_context_prepare() called
   recursively from within a source's check() or prepare() member.

Information about Emacs on the remote machine R:

   In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.5)
    of 2008-12-24 on R
   Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
   Important settings:
     value of $LC_ALL: nil
     value of $LC_COLLATE: nil
     value of $LC_CTYPE: nil
     value of $LC_MESSAGES: nil
     value of $LC_MONETARY: nil
     value of $LC_NUMERIC: nil
     value of $LC_TIME: nil
     value of $LANG: en_US.UTF-8
     value of $XMODIFIERS: nil
     locale-coding-system: utf-8-unix
     default-enable-multibyte-characters: t

This also works when I ssh from R to R itself, i.e., I can reproduce
the problem in Ubuntu jaunty alone as well.

In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-12-25 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t




Acknowledgement sent to Markus Triska <markus.triska <at> gmx.at>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1708; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.