From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16676: 24.3.50; Repeated but random hang Date: Fri, 07 Feb 2014 09:39:20 +0200 Message-ID: <83txcbxtg7.fsf@gnu.org> References: <8738jv68vr.fsf@building.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391758818 12248 80.91.229.3 (7 Feb 2014 07:40:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 07:40:18 +0000 (UTC) Cc: 16676@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 08:40:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBg2x-0003Wp-Lk for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 08:40:23 +0100 Original-Received: from localhost ([::1]:40056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBg2x-0006Mk-9u for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 02:40:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBg2o-0006BI-Hx for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 02:40:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBg2i-0004WS-Bi for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 02:40:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBg2g-0004V7-4S for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 02:40:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WBg2e-0005v7-Pj for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2014 02:40:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2014 07:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16676-submit@debbugs.gnu.org id=B16676.139175877722715 (code B ref 16676); Fri, 07 Feb 2014 07:40:03 +0000 Original-Received: (at 16676) by debbugs.gnu.org; 7 Feb 2014 07:39:37 +0000 Original-Received: from localhost ([127.0.0.1]:54176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBg28-0005uD-Ax for submit@debbugs.gnu.org; Fri, 07 Feb 2014 02:39:36 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42433) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBg1x-0005tv-Rt for 16676@debbugs.gnu.org; Fri, 07 Feb 2014 02:39:26 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N0M00E007TQT800@a-mtaout20.012.net.il> for 16676@debbugs.gnu.org; Fri, 07 Feb 2014 09:39:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0M00E1Y7XJLV30@a-mtaout20.012.net.il>; Fri, 07 Feb 2014 09:39:20 +0200 (IST) In-reply-to: <8738jv68vr.fsf@building.gnus.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84799 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 06 Feb 2014 16:53:28 -0800 > > This has happened to me a handful of times now. I'm reading news, and > then Emacs will suddenly halt. > > Connecting to Emacs with gdb gives me the backtrace below. Emacs will > consume 100% CPU at this point. Doesn't the following part of the backtrace (in particular, frame #10) explain what happened? > #9 0x0000000000422fda in delete_frame (frame=, force=12207810) > at frame.c:1378 > #10 0x00000000004b4450 in x_connection_closed (dpy=dpy@entry=0x1378070, > error_message=, > error_message@entry=0x7fffbe39c450 "Connection lost to X server `:0'") > at xterm.c:7569 > #11 0x00000000004b44fc in x_io_error_quitter (display=0x1378070) > at xterm.c:7696 > #12 0x0000003f4de43cce in _XIOError () from /lib64/libX11.so.6 > #13 0x0000003f4de417ba in _XReadEvents () from /lib64/libX11.so.6 > #14 0x0000003f4de29e51 in XIfEvent () from /lib64/libX11.so.6 > #15 0x0000003f4de706e4 in _XimXRead () from /lib64/libX11.so.6 > #16 0x0000003f4de71330 in _XimReadData () from /lib64/libX11.so.6 > #17 0x0000003f4de71621 in _XimRead () from /lib64/libX11.so.6 > #18 0x0000003f4de600d6 in _XimProtoSetICValues () from /lib64/libX11.so.6 > #19 0x0000003f4de4e2ad in XSetICValues () from /lib64/libX11.so.6 > #20 0x00000000004c59b3 in xic_set_preeditarea (w=w@entry=0x479df28, > x=x@entry=55, y=y@entry=528) at xfns.c:2061 > #21 0x00000000004b4ce5 in x_draw_window_cursor (w=0x479df28, > glyph_row=, x=55, y=528, cursor_type=, > cursor_width=, on_p=, > active_p=) at xterm.c:7265 > #22 0x0000000000454fd3 in display_and_set_cursor (w=w@entry=0x479df28, > on=on@entry=true, hpos=5, vpos=24, x=55, y=528) at xdisp.c:26983 My reading of this is: Emacs was at the end of a redisplay cycle, when a call to an X function signaled an error because "Connection lost to X server `:0'". Then Emacs tried to delete the frame on that display, which again involves calls to X. Do you know why the connection was lost in the first place? Or is the complaint that when the connection is lost, Emacs hangs?