From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29726: 25.1; SIGSEGV in find-file Date: Sat, 23 Dec 2017 14:07:56 +0200 Message-ID: <831sjllk9v.fsf@gnu.org> References: <1513374498.13815.28.camel@bloodnok.com> <83lgi3rp5x.fsf@gnu.org> <1513453388.13815.31.camel@bloodnok.com> <83o9myqvwd.fsf@gnu.org> <1513456260.13815.35.camel@bloodnok.com> <83mv2iqu0q.fsf@gnu.org> <1513457838.13815.40.camel@bloodnok.com> <837etlqne3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514030838 26384 195.159.176.226 (23 Dec 2017 12:07:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Dec 2017 12:07:18 +0000 (UTC) Cc: 29726@debbugs.gnu.org To: marc@bloodnok.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 23 13: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 1eSia7-0006GS-E8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Dec 2017 13:07:11 +0100 Original-Received: from localhost ([::1]:41628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSic4-0004XY-66 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Dec 2017 07:09:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSibx-0004XQ-BK for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 07:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSibu-0002qM-5s for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 07:09:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eSibu-0002qC-27 for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 07:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eSibt-0005An-QI for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2017 07:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Dec 2017 12:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29726-submit@debbugs.gnu.org id=B29726.151403088819824 (code B ref 29726); Sat, 23 Dec 2017 12:09:01 +0000 Original-Received: (at 29726) by debbugs.gnu.org; 23 Dec 2017 12:08:08 +0000 Original-Received: from localhost ([127.0.0.1]:48776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSib2-00059g-HE for submit@debbugs.gnu.org; Sat, 23 Dec 2017 07:08:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSib0-00059B-Ak for 29726@debbugs.gnu.org; Sat, 23 Dec 2017 07:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eSiar-0002LX-Uv for 29726@debbugs.gnu.org; Sat, 23 Dec 2017 07:08:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eSiar-0002LT-Q1; Sat, 23 Dec 2017 07:07:57 -0500 Original-Received: from [176.228.60.248] (port=3728 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eSiaq-0000gR-C4; Sat, 23 Dec 2017 07:07:57 -0500 In-reply-to: <837etlqne3.fsf@gnu.org> (message from Eli Zaretskii on Sun, 17 Dec 2017 19:23:32 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:141421 Archived-At: > Date: Sun, 17 Dec 2017 19:23:32 +0200 > From: Eli Zaretskii > Cc: 29726@debbugs.gnu.org > > OK, I've succeeded in reproducing the crash. The immediate reason is > clear, but I need to look a bit deeper to understand how did that > reason come into existence. Stay tuned. The reason for the crash is that the ':eval' form which you have on the header-line can delete the frame whose header-line Emacs is redrawing! The Lisp-level backtrace below shows how delete-frame is called from your code; hopefully, this backtrace will allow you to fix your code so it doesn't do such nonsensical things. I installed a protection against such calamities in the emacs-26 branch, which displays a backtrace with an error message instead of crashing. If you can build the Emacs's emacs-26 release branch, please do and see that the crashes are gone. Here's the backtrace I promised: "delete-frame" (0x824d00) "if" (0x824f28) 0x6ecf880 Lisp type 6 "mapc" (0x825280) "progn" (0x825468) "if" (0x825608) "save-current-buffer" (0x8257e8) "let" (0x825a68) "k-frame::kill-buffer" (0x825cc0) "kill-buffer" (0x825e40) "and" (0x826028) "unwind-protect" (0x826308) "save-current-buffer" (0x8264e8) "let" (0x826758) "k-tabbar::element-to-wrap" (0x8268c0) "let" (0x826cb8) "k-tabbar::tabbar-add-scroll" (0x826e20) "let" (0x827238) "k-tabbar::tabbar-line" (0x8274c8) "apply" (0x8274c0) "set-window-parameter" (0x827708) "or" (0x8278a8) "k-tabbar::window-cache-get" (0x827b38) "apply" (0x827b30) "k-tabbar::cache-get" (0x827d80) "k-tabbar::generate-tabbar-line" (0x828090) "eval" (0x828478) "redisplay_internal (C function)" (0x0) "read-from-minibuffer" (0x82c8b0) "completing-read-default" (0x82cdc0) 0x1386fc0 PVEC_SUBR "apply" (0x82d070) "k::completing-read-adv-fn" (0x82d318) "apply" (0x82d558) "completing-read" (0x82da30) "read-file-name-default" (0x82e0b0) "read-file-name" (0x82e550) "find-file-read-args" (0x82e9c0) "byte-code" (0x82edf0) "call-interactively" (0x82f230) "command-execute" (0x82f748)