From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#14828: 24.3.50; crash on exit from ediff Date: Tue, 9 Jul 2013 10:15:08 +0200 Message-ID: References: <87d2qskec2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373359056 23378 80.91.229.3 (9 Jul 2013 08:37:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 08:37:36 +0000 (UTC) Cc: 14828@debbugs.gnu.org To: sds@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 10:37:36 2013 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 1UwTQV-0008L9-ST for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 10:37:36 +0200 Original-Received: from localhost ([::1]:52778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwTQV-0007n5-Fr for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 04:37:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwTQO-0007ka-Sj for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwTKo-0007lL-8D for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:31:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwT5e-0003LQ-Pt for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwT5e-0005bm-8B for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2013 04:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14828 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14828-submit@debbugs.gnu.org id=B14828.137335772421417 (code B ref 14828); Tue, 09 Jul 2013 08:16:02 +0000 Original-Received: (at 14828) by debbugs.gnu.org; 9 Jul 2013 08:15:24 +0000 Original-Received: from localhost ([127.0.0.1]:41146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwT50-0005ZM-Ng for submit@debbugs.gnu.org; Tue, 09 Jul 2013 04:15:23 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:58055) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwT4w-0005Z3-QA for 14828@debbugs.gnu.org; Tue, 09 Jul 2013 04:15:20 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 3174C965F for <14828@debbugs.gnu.org>; Tue, 9 Jul 2013 10:15:11 +0200 (CEST) Original-Received: (qmail 7881 invoked by uid 89); 9 Jul 2013 08:15:10 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 9 Jul 2013 08:15:10 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id A834D1A0325; Tue, 9 Jul 2013 08:15:10 +0000 (UTC) In-Reply-To: <87d2qskec2.fsf@gnu.org> X-Mailer: Apple Mail (2.1508) 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:76120 Archived-At: Hello. 8 jul 2013 kl. 22:05 skrev Sam Steingold : > I ran ediff, hit q in the tiny "command" frame and both it and the = main > emacs frame disappeared. I.e., there are no emacs frames (windows) on = my > desktop. However, emacs is still running (at 100% CPU!): >=20 > 13425 sds 20 0 639m 179m 12m R 99.7 2.3 30:48.11 emacs >=20 > (gdb) xbacktrace=20 >=20 This is the root cause: > #22 0x00000000004b1441 in x_connection_closed (dpy=3Ddpy@entry=3D0xc35d4= 0, error_message=3D,=20 > error_message@entry=3D0x7fffffffb720 "X protocol error: BadWindow = (invalid Window parameter) on protocol request 42") > at /home/sds/src/emacs/trunk/src/xterm.c:7756 > dpyinfo =3D 0xd35e40 > tail =3D 15780134 > #23 0x00000000004b37f2 in x_error_quitter (display=3D0xc35d40, = event=3D, event=3D) > at /home/sds/src/emacs/trunk/src/xterm.c:7869 > buf =3D "BadWindow (invalid Window parameter)", '\000' > buf1 =3D "X protocol error: BadWindow (invalid Window = parameter) on protocol request = 42\000\000\000\320\t\375\367\377\177\000\000}9\362\364\377\177\000\000X*\3= 62\364\377\177\000\000@\353\361\364\377\177\000\000\000\000\000\000\005\00= 0\000\000\276\002\000\000\001", '\000' , = "H\271\377\377\377\177\000\000 = \271\377\377\377\177\000\000\000\000\000\000\000\000\000\000(\r\375\367\37= 7\177\000\000\320\t\375\367\377\177\000\000\005\000\000\000\000\000\000\00= 0\311A\336\367\377\177", '\000' ... > #24 0x00000000004b3845 in x_error_handler (event=3D, = display=3D) at /home/sds/src/emacs/trunk/src/xterm.c:7839 > No locals. > #25 x_error_handler (display=3D, event=3D) at /home/sds/src/emacs/trunk/src/xterm.c:7825 > No locals. > #26 0x00007ffff4f5d516 in _XError () from = /usr/lib/x86_64-linux-gnu/libX11.so.6 > No symbol table info available. > #27 0x00007ffff4f5a791 in ?? () from = /usr/lib/x86_64-linux-gnu/libX11.so.6 > No symbol table info available. > #28 0x00007ffff4f5a7d5 in ?? () from = /usr/lib/x86_64-linux-gnu/libX11.so.6 > No symbol table info available. > #29 0x00007ffff4f5b3c8 in _XReply () from = /usr/lib/x86_64-linux-gnu/libX11.so.6 > No symbol table info available. > #30 0x00007ffff4f56d5d in XSync () from = /usr/lib/x86_64-linux-gnu/libX11.so.6 > No symbol table info available. > #31 0x00007ffff66c3499 in gdk_window_process_all_updates () from = /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 > No symbol table info available. > #32 0x00000000004b6173 in x_catch_errors (dpy=3D0xc35d40) at = /home/sds/src/emacs/trunk/src/xterm.c:7611 > data =3D 0x56cdbd0 > #33 0x00000000004b666c in frame_highlight (f=3D0x1134950) at = /home/sds/src/emacs/trunk/src/xterm.c:3363 > No locals. > #34 x_frame_rehighlight (dpyinfo=3D, dpyinfo=3D) at /home/sds/src/emacs/trunk/src/xterm.c:3572 > old_highlight =3D 0x0 > #35 0x00000000004b689b in x_focus_changed (frame=3D0x1134950, = dpyinfo=3D, state=3D2, type=3D, = bufp=3D) > at /home/sds/src/emacs/trunk/src/xterm.c:3430 > No locals. > #36 x_focus_changed (type=3D, state=3D2, = dpyinfo=3D, frame=3D0x1134950, bufp=3D, = bufp=3D) > at /home/sds/src/emacs/trunk/src/xterm.c:3424 > No locals. > #37 0x00000000004b6a42 in x_detect_focus_change (dpyinfo=3D, event=3D, bufp=3D) > at /home/sds/src/emacs/trunk/src/xterm.c:3515 > msg =3D > frame =3D 42 is SetInputFocus. So Emacs tries to set focus to an X window that = has been deleted. That fails, and Emacs tries to close the display. = The loop you see is just the old Gtk+ bug, it can't close a display = properly. Does it happen all the time? My guess is that it is some sort of timing = involved, like an X window has been deleted on the server, but Emacs has = not updated its state yet. Jan D.