From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#59038: loading this base64 file makes emacs -Q 28.2 peg a core infinitely Date: Sun, 6 Nov 2022 13:54:47 +0000 Message-ID: References: <83h6zd51h0.fsf@gnu.org> <62a776a86318abee7349@heytings.org> <62a776a8636ebc0aad56@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59038@debbugs.gnu.org, Gregory Heytings , Eli Zaretskii , checker@d6.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 06 14:55:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1org7N-0007xd-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Nov 2022 14:55:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1org7A-0005ZQ-QJ; Sun, 06 Nov 2022 08:55:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1org74-0005YN-U7 for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1org74-0003Jd-IH for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1org74-0004jp-E8 for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Nov 2022 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59038 X-GNU-PR-Package: emacs Original-Received: via spool by 59038-submit@debbugs.gnu.org id=B59038.166774289818195 (code B ref 59038); Sun, 06 Nov 2022 13:55:02 +0000 Original-Received: (at 59038) by debbugs.gnu.org; 6 Nov 2022 13:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:58962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1org6z-0004jO-Mw for submit@debbugs.gnu.org; Sun, 06 Nov 2022 08:54:57 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]:17610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1org6x-0004jA-6j for 59038@debbugs.gnu.org; Sun, 06 Nov 2022 08:54:56 -0500 Original-Received: (qmail 83890 invoked by uid 3782); 6 Nov 2022 14:54:48 +0100 Original-Received: from acm.muc.de (p2e5d5417.dip0.t-ipconnect.de [46.93.84.23]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Nov 2022 14:54:48 +0100 Original-Received: (qmail 21311 invoked by uid 1000); 6 Nov 2022 13:54:47 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247209 Archived-At: Hello, Gerd and Phil. On Sun, Nov 06, 2022 at 06:20:17 +0100, Gerd Möllmann wrote: > Phil Sainty writes: > > On 2022-11-06 12:41, Gregory Heytings wrote: > >> That file opens just fine in other modes > > It also opens fine in c-mode, with global-font-lock-mode disabled. > >> Note that this bug has nothing to do with long lines. > > I imagine that the font-lock issue is related to the line being > > in excess of 21,000 chars (but general redisplay obviously doesn't > > have problems with lines this 'small'). > > Reduced to 10,208 chars that file opens instantly under emacs -Q > > in c-mode with font-lock enabled; but at 10,209 chars it hangs > > Emacs (I killed it after waiting 4 minutes). > It could also be that this is not something with the position of size, > but with what's there at or around that position. Just an idea. I've identified the place in the code where it's looping, namely in the defun c-brace-stack-at. Gerd's Lisp backtraces earlier on in the thread were extremely helpful, as was Phil's identification of the minimum size of buffer needed to trigger the infinite loop. I don't yet know why that function is looping, or why it does so only from a certain length of buffer, but I'm working on it. -- Alan Mackenzie (Nuremberg, Germany).