From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#6975: Emacs spinning in glib Date: Mon, 30 Aug 2010 23:30:13 -0400 Message-ID: <6D170C68-E232-4644-A479-69F4BE8F1E5C@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283494205 5404 80.91.229.12 (3 Sep 2010 06:10:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 06:10:05 +0000 (UTC) To: 6975@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 03 08:10:03 2010 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.69) (envelope-from ) id 1OrPTO-0004r1-KZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 08:10:03 +0200 Original-Received: from localhost ([127.0.0.1]:46452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrPTN-0000is-JG for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 02:10:01 -0400 Original-Received: from [140.186.70.92] (port=34297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrPTG-0000ib-56 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 02:09:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrPTE-000874-HV for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 02:09:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53304) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrPTE-00086y-Dj for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 02:09:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OrP0N-0002ip-Cy; Fri, 03 Sep 2010 01:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2010 05:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.128349234310446 (code B ref -1); Fri, 03 Sep 2010 05:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2010 05:39:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrOzO-0002iR-Th for submit@debbugs.gnu.org; Fri, 03 Sep 2010 01:39:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrOzM-0002i4-Fa for submit@debbugs.gnu.org; Fri, 03 Sep 2010 01:39:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrP12-0003wP-J0 for submit@debbugs.gnu.org; Fri, 03 Sep 2010 01:40:45 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:35662) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrP12-0003wL-Ga for submit@debbugs.gnu.org; Fri, 03 Sep 2010 01:40:44 -0400 Original-Received: from [140.186.70.92] (port=36928 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrP11-0004s3-4l for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 01:40:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrP0z-0003w0-UF for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 01:40:43 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39]:37941 helo=raeburn.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrP0h-0003uT-M6 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 01:40:41 -0400 Original-Received: from [IPv6:2001:55c:62d8:ef16:21d:4fff:fe4b:648c] ([IPv6:2001:55c:62d8:ef16:21d:4fff:fe4b:648c]) by raeburn.org (8.14.3/8.14.1) with ESMTP id o7V3VM21008555; Mon, 30 Aug 2010 23:31:52 -0400 (EDT) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 03 Sep 2010 01:40:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:39917 Archived-At: I use emacsclient fairly heavily with Emacs 23.2 at work; mostly for = getting additional windows on the local display, but occasionally with a = remote display as well when I log into my work machine from home. I = tried to do the latter today, and a blank window popped up, but then = Emacs was spinning and not responding. strace shows it looping over: write(2, "\n(emacs:29550): GLib-WARNING **: g_main_context_check() = called recursively from within a source's check() or prepare() = member.\n"..., 127) =3D 127 select(27, [4 6 7 11 13 14 15 17 19 22 23 25], NULL, NULL, {27, 232294}) = =3D 1 (in [7], left {27, 232289}) write(2, "\n(emacs:29550): GLib-WARNING **: g_main_context_prepare() = called recursively from within a source's check() or prepare() = member.\n"..., 129) =3D 129 poll([{fd=3D6, events=3DPOLLIN}, {fd=3D7, events=3DPOLLIN}, {fd=3D11, = events=3DPOLLIN|POLLPRI}, {fd=3D13, events=3DPOLLIN|POLLPRI}, {fd=3D14, = events=3DPOLLIN|POLLPRI}, {fd=3D15, events=3DPOLLIN|POLLPRI}, {fd=3D25, = events=3DPOLLIN}], 7, 0) =3D 1 ([{fd=3D7, revents=3DPOLLIN}]) write(2, "\n(emacs:29550): GLib-WARNING **: g_main_context_check() = called recursively from within a source's check() or prepare() = member.\n"..., 127) =3D 127 write(2, "\n(emacs:29550): GLib-WARNING **: g_main_context_prepare() = called recursively from within a source's check() or prepare() = member.\n"..., 129) =3D 129 poll([{fd=3D6, events=3DPOLLIN}, {fd=3D7, events=3DPOLLIN}, {fd=3D11, = events=3DPOLLIN|POLLPRI}, {fd=3D13, events=3DPOLLIN|POLLPRI}, {fd=3D14, = events=3DPOLLIN|POLLPRI}, {fd=3D15, events=3DPOLLIN|POLLPRI}, {fd=3D25, = events=3DPOLLIN}], 7, 0) =3D 1 ([{fd=3D7, revents=3DPOLLIN}]) write(2, "\n(emacs:29550): GLib-WARNING **: g_main_context_check() = called recursively from within a source's check() or prepare() = member.\n"..., 127) =3D 127 I attached it under gdb and got this trace: (gdb) bt #0 0x00007fbb705c81a0 in _int_malloc () from /lib/libc.so.6 #1 0x00007fbb705c9ad8 in malloc () from /lib/libc.so.6 #2 0x00007fbb70570d30 in __gconv_open () from /lib/libc.so.6 #3 0x00007fbb705706be in iconv_open () from /lib/libc.so.6 #4 0x00007fbb72bf2ef9 in ?? () from /usr/lib/libglib-2.0.so.0 #5 0x00007fbb72bf2f42 in g_iconv_open () from /usr/lib/libglib-2.0.so.0 #6 0x00007fbb72bf34db in ?? () from /usr/lib/libglib-2.0.so.0 #7 0x00007fbb72bf392b in g_convert () from /usr/lib/libglib-2.0.so.0 #8 0x00007fbb72bf3e4d in g_convert_with_fallback () from = /usr/lib/libglib-2.0.so.0 #9 0x00007fbb72c12816 in ?? () from /usr/lib/libglib-2.0.so.0 #10 0x00007fbb72c12edd in g_log_default_handler () from = /usr/lib/libglib-2.0.so.0 #11 0x00007fbb72c13191 in g_logv () from /usr/lib/libglib-2.0.so.0 #12 0x00007fbb72c134f3 in g_log () from /usr/lib/libglib-2.0.so.0 #13 0x00007fbb72c0c933 in g_main_context_prepare () from = /usr/lib/libglib-2.0.so.0 #14 0x00007fbb72c0cc7a in ?? () from /usr/lib/libglib-2.0.so.0 #15 0x00007fbb72c0d240 in g_main_context_pending () from = /usr/lib/libglib-2.0.so.0 #16 0x00000000004d09a5 in xg_select (max_fds=3D26, rfds=3D0x7ffff0f6b100, = wfds=3D0x0, efds=3D0x0,=20 timeout=3D0x7ffff0f6b290) at xgselect.c:134 #17 0x000000000059c56f in wait_reading_process_output (time_limit=3D0, = microsecs=3D0, read_kbd=3D-1,=20 do_display=3D1, wait_for_cell=3D11624162, wait_proc=3D0x0, = just_wait_proc=3D0) at process.c:4939 #18 0x00000000004f1d29 in read_char (commandflag=3D1, nmaps=3D2, = maps=3D0x7ffff0f6b670, prev_event=3D11624162,=20 used_mouse_menu=3D0x7ffff0f6b78c, end_time=3D0x0) at keyboard.c:4135 #19 0x00000000004f3f17 in read_key_sequence (keybuf=3D0x7ffff0f6b800, = bufsize=3D30, prompt=3D11624162,=20 dont_downcase_last=3D0, can_return_switch_frame=3D1, = fix_current_buffer=3D1) at keyboard.c:9512 #20 0x00000000004f63a6 in command_loop_1 () at keyboard.c:1643 #21 0x000000000055971f in internal_condition_case (bfun=3D0x4f6190 = , handlers=3D11691346,=20 hfun=3D0x4eff60 ) at eval.c:1490 #22 0x00000000004ef35e in command_loop_2 () at keyboard.c:1360 #23 0x0000000000559837 in internal_catch (tag=3D, = func=3D0x4ef340 ,=20 arg=3D11624162) at eval.c:1226 #24 0x00000000004efd88 in command_loop () at keyboard.c:1339 #25 0x00000000004f017a in recursive_edit_1 () at keyboard.c:954 #26 0x00000000004f02f4 in Frecursive_edit () at keyboard.c:1016 #27 0x00000000004e2ecf in main (argc=3D2, argv=3D0x7ffff0f6c018) at = emacs.c:1833 (gdb) Unfortunately I don't have time to dig into it any more right now.=