From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24692: 25.1; simple, reproducible Emacs 25.1 crash on MS Windows Date: Fri, 14 Oct 2016 10:51:15 -0700 (PDT) Message-ID: <9fc2c8e1-8cc0-499d-a871-949e7871635e@default> References: <5801121F.8090404@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1476467542 19544 195.159.176.226 (14 Oct 2016 17:52:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2016 17:52:22 +0000 (UTC) To: martin rudalics , 24692@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 19:52:17 2016 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 1bv6eV-0004N7-NS for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Oct 2016 19:52:15 +0200 Original-Received: from localhost ([::1]:48721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv6eU-0003qq-AC for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Oct 2016 13:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv6eL-0003p0-6L for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2016 13:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv6eI-0004kq-0e for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2016 13:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bv6eH-0004kk-TG for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2016 13:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bv6eH-0007Ph-MZ for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2016 13:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2016 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24692-submit@debbugs.gnu.org id=B24692.147646748828452 (code B ref 24692); Fri, 14 Oct 2016 17:52:01 +0000 Original-Received: (at 24692) by debbugs.gnu.org; 14 Oct 2016 17:51:28 +0000 Original-Received: from localhost ([127.0.0.1]:55491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv6dj-0007Oq-WC for submit@debbugs.gnu.org; Fri, 14 Oct 2016 13:51:28 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:21556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv6di-0007Od-In for 24692@debbugs.gnu.org; Fri, 14 Oct 2016 13:51:27 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u9EHpJlV023790 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Oct 2016 17:51:19 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u9EHpI7A012012 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Oct 2016 17:51:19 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u9EHpHwo001561; Fri, 14 Oct 2016 17:51:17 GMT In-Reply-To: <5801121F.8090404@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] 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:124467 Archived-At: > No crash here, just takes some time to execute. Tested with release and > master. The recipe seems contrived. =E2=80=98fit-frame-same-row-windows= =E2=80=99 and > =E2=80=98fit-frame-same-column-windows=E2=80=99 are nowhere used, IIUC. = All you do is > find the number of lines and the maximum number of columns of any line > of simple.el. Why on earth should that crash? The recipe seems "contrived"? Of course it is contrived. I narrowed down tons of code to this simple recipe. And yes, I forgot to finally remove those two functions, when I had it narrowed down. As you noted, you can completely remove them. This is thus sufficient to crash Emacs 100% of the time (on my system): (defun fit-frame (frame) (save-window-excursion (select-frame frame) (let ((win-cons (fit-frame-max-window-size (selected-window)))) (cons (car win-cons) (cdr win-cons))))) (defun fit-frame-max-window-size (window) (select-window window) (let ((max-win-width 0) (max-win-height 1)) (save-excursion (set-buffer (window-buffer)) (goto-char (point-min)) (while (not (eobp)) (end-of-line) (setq max-win-width (max (current-column) max-win-width)) (when (zerop (forward-line 1)) (setq max-win-height (1+ max-win-height))))) (cons max-win-width max-win-height))) (setq pop-up-frames t) (let ((after-make-frame-functions ())) (make-frame '((minibuffer . only)))= ) (add-hook 'after-make-frame-functions 'fit-frame) As for "Why on earth should that crash?" Why indeed? The answer seems to be "Because Emacs 25" - it does not crash in Emacs 20 through 24.5. You can use a different command, such as `digit-argument', for `C-h f', since `prefix-command-preserve-state' does not exist in previous releases. (`digit-argument' will also crash Emacs 25.) Note, BTW, that even though Emacs 24.5 does not crash, it does take a long time to show `simple.el'. Note too that the time it takes Emacs 25 to crash, after clicking `simple.el', seems variable - but it always crashes. There is always a period when you see a blank `simple.el' frame, before the crash, but sometimes the crash comes more quickly than other times. This makes me think that the actual crash occurs elsewhere from where the bug is manifested - e.g. eventually trying to access an improper memory location. (Just a hunch, and likely not very helpful.)