From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Marshall Newsgroups: gmane.emacs.bugs Subject: bug#29661: 27.0.50; emacs crashing on exchange-point-and-mark Date: Wed, 13 Dec 2017 10:06:00 +0000 Message-ID: <87d13j6iyf.fsf@ctlt579.codethink.co.uk> References: <87o9n5s30t.fsf@ctlt579.codethink.co.uk> <5A2F99D5.7010709@gmx.at> <87lgi88edt.fsf@ctlt579.codethink.co.uk> <5A2FAF4E.7050904@gmx.at> <878te88bcf.fsf@ctlt579.codethink.co.uk> <5A30E978.80708@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513159640 6764 195.159.176.226 (13 Dec 2017 10:07:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 10:07:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 29661@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 13 11:07:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP3wX-0001SM-P7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 11:07:13 +0100 Original-Received: from localhost ([::1]:34619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP3we-0005j0-RQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 05:07:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP3wQ-0005Re-Dd for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2017 05:07:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP3wM-0001OE-7V for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2017 05:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP3wM-0001Nu-2r for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2017 05:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eP3wL-0008Ue-IL for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2017 05:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Dec 2017 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29661 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29661-submit@debbugs.gnu.org id=B29661.151315956432570 (code B ref 29661); Wed, 13 Dec 2017 10:07:01 +0000 Original-Received: (at 29661) by debbugs.gnu.org; 13 Dec 2017 10:06:04 +0000 Original-Received: from localhost ([127.0.0.1]:59433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP3vP-0008TG-V0 for submit@debbugs.gnu.org; Wed, 13 Dec 2017 05:06:04 -0500 Original-Received: from imap1.codethink.co.uk ([176.9.8.82]:50594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP3vO-0008T7-EH for 29661@debbugs.gnu.org; Wed, 13 Dec 2017 05:06:03 -0500 Original-Received: from [167.98.27.229] (helo=ct-lt-579.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1eP3vO-0001ha-MK; Wed, 13 Dec 2017 10:06:03 +0000 In-Reply-To: <5A30E978.80708@gmx.at> (martin rudalics's message of "Wed, 13 Dec 2017 09:48:56 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141026 Archived-At: martin rudalics writes: >> Breakpoint 3, delete_frame (frame=, force=force@entry=XIL(0x98a0)) at frame.c:2062 >> 2062 FOR_EACH_FRAME (frames, frame1) >> (gdb) p Vframe_list >> $1 = XIL(0) >> (gdb) c >> Continuing. >> >> Program received signal SIGSEGV, Segmentation fault. >> delete_frame (frame=, force=force@entry=XIL(0x98a0)) at frame.c:2064 >> 2064 struct frame *f1 = XFRAME (frame1); > > Thanks. The attached patch should fix that. Please check. > > But I have no idea how to proceed with the x_reply_selection_request > failure. > > martin > > diff --git a/src/frame.c b/src/frame.c > index 5bafbed..66d1b5c 100644 > --- a/src/frame.c > +++ b/src/frame.c > @@ -2058,7 +2058,7 @@ of them (the selected terminal frame) is actually displayed. > > /* If we've deleted the last_nonminibuf_frame, then try to find > another one. */ > - if (f == last_nonminibuf_frame) > + if (f == last_nonminibuf_frame && !NILP (Vframe_list)) > { > last_nonminibuf_frame = 0; > > @@ -2076,7 +2076,7 @@ of them (the selected terminal frame) is actually displayed. > > /* If there's no other frame on the same kboard, get out of > single-kboard state if we're in it for this kboard. */ > - if (kb != NULL) > + if (kb != NULL && !NILP (Vframe_list)) > { > /* Some frame we found on the same kboard, or nil if there are none. */ > Lisp_Object frame_on_same_kboard = Qnil; > @@ -2093,7 +2093,9 @@ of them (the selected terminal frame) is actually displayed. > /* If we've deleted this keyboard's default_minibuffer_frame, try to > find another one. Prefer minibuffer-only frames, but also notice > frames with other windows. */ > - if (kb != NULL && EQ (frame, KVAR (kb, Vdefault_minibuffer_frame))) > + if (kb != NULL > + && EQ (frame, KVAR (kb, Vdefault_minibuffer_frame)) > + && !NILP (Vframe_list)) > { > /* The last frame we saw with a minibuffer, minibuffer-only or not. */ > Lisp_Object frame_with_minibuf = Qnil; Thanks, it now no longer crashes there, but crashes elsewhere but looks to about to terminate in a more controlled manner? #1 check_glyph_memory () at dispnew.c:2264 tail = XIL(0) #2 0x00000000004ecead in shut_down_emacs (sig=sig@entry=0, stuff=stuff@entry=XIL(0)) at emacs.c:2107 No locals. #3 0x00000000004bbdeb in x_connection_closed (dpy=dpy@entry=0x15e5800, error_message=, error_message@entry=0x7fffffffcda0 "Connection lost to X server ':0'", ioerror=ioerror@entry=true) at xterm.c:9806 tail = #4 0x00000000004bbe96 in x_io_error_quitter (display=0x15e5800) at xterm.c:9915 buf = "Connection lost to X server ':0'\000\315\377\377\377\177\000\000 \316\377\377\377\177\000\000\000X^\001\000\000\000\000\276-q\364\377\177\000\000Pj^\001\000\000\000\000\001\000\000\000\000\000\000\000\360\274^\001\000\000\000\000\240\330\240\364\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\300{\355\000\000\000\000\000\363\000@\005\000\000\000\000\000X^\001\000\000\000\000\367\237\336\367\377\177\000\000\005", '\000' , "\340\177\373\000\000\000\000\000\000}m\364\377\177\000\000\000X^\001\000\000\000\000\000X^\001\000\000\000\000t\031@\002\000\000\000\000\025"... #5 0x00007ffff47154fe in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 No symbol table info available. #6 0x00007ffff4712e5d in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6 No symbol table info available. #7 0x00007ffff46f465a in XFlush () from /usr/lib/x86_64-linux-gnu/libX11.so.6 No symbol table info available. #8 0x00000000004d734c in x_reply_selection_request (dpyinfo=, event=) at xselect.c:694 reply_base = { type = 31, xany = { type = 31, serial = 16882611, send_event = 2, display = 0x15e5800, window = 88080627 }, xkey = { type = 31, serial = 16882611, send_event = 2, display = 0x15e5800, window = 88080627, root = 1, subwindow = 324, time = 401, x = 162228637, y = 0, x_root = 0, y_root = 500000, state = 0, etc I can reliably replicate this error by opening this large file, searching for a string that only appears on the last line and exchange-point-and-mark'ing Robert