From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59038: loading this base64 file makes emacs -Q 28.2 peg a core infinitely Date: Sun, 06 Nov 2022 15:52:33 +0200 Message-ID: <83iljs197i.fsf@gnu.org> References: <83h6zd51h0.fsf@gnu.org> <62a776a86318abee7349@heytings.org> <62a776a8636ebc0aad56@heytings.org> <83a7ad518e21593e8888@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26931"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, gerd.moellmann@gmail.com, 59038@debbugs.gnu.org, checker@d6.com To: Gregory Heytings , acm@muc.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 06 14:54:32 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 1org6Z-0006pG-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Nov 2022 14:54:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1org69-0004sR-MY; Sun, 06 Nov 2022 08:54:05 -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 1org66-0004oT-FO for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:54:02 -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 1org66-0003D5-4F for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1org65-0004ho-VT for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2022 08:54: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: Sun, 06 Nov 2022 13:54:01 +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.166774278318018 (code B ref 59038); Sun, 06 Nov 2022 13:54:01 +0000 Original-Received: (at 59038) by debbugs.gnu.org; 6 Nov 2022 13:53:03 +0000 Original-Received: from localhost ([127.0.0.1]:58952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1org59-0004gX-24 for submit@debbugs.gnu.org; Sun, 06 Nov 2022 08:53:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1org56-0004g2-1Y for 59038@debbugs.gnu.org; Sun, 06 Nov 2022 08:53:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1org4y-00038O-7D; Sun, 06 Nov 2022 08:52:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4+kumeKMeZPTF+i/IbyMbMSBJ+JkaUtqCoMxEePr+4E=; b=mPigBV4NIWX6JF2UFRCT ZBodyQ2cZ5ssdqARNLMUcw/AmXCvaFBEqpkOe9EOKvNLhEf/H0gxwfeOVN/hUuGkHuerKiolncKSn T3SWMQq0W1laqYv1aJEGykL2VLj51LEavC7r6Avr/J27bavYXbRgNH0d5yjR8CgH3oiY/bvslWdF8 d9ccpNm+5w2SU9sEOxIozn7B0ZywDptv8846pYbDmDVKsAcT5/g7tsyiUrTCLXwLIbO3wKNASQxNt gKu62JIMfw8lNv/hS8TeDNvLFU6Q5c1cCj2kqMMovh1dxiyrRFWUMCz6KnUdjJ0tHb0cblcLazkp0 js6f5/9tViwXlQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1org4x-0003gU-Ef; Sun, 06 Nov 2022 08:52:51 -0500 In-Reply-To: <83a7ad518e21593e8888@heytings.org> (message from Gregory Heytings on Sun, 06 Nov 2022 09:18:23 +0000) 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:247208 Archived-At: > Date: Sun, 06 Nov 2022 09:18:23 +0000 > From: Gregory Heytings > cc: Eli Zaretskii , > Gerd Möllmann , > 59038@debbugs.gnu.org, checker@d6.com, acm@muc.de > > > >> That file opens just fine in other modes > > > > It also opens fine in c-mode, with global-font-lock-mode disabled. > > > > Indeed, obviously it's a c-mode font-locking related bug. > > >> 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). > > > > Interesting, thanks for the bisection! It's an infloop in c-brace-stack-at. What happens is that c-brace-stack-at calls c-update-brace-stack with arguments: (nil 1) 8160 13160. c-update-brace-stack then calls c-syntactic-re-search-forward, which finds nothing interesting and returns with point at 13160, but then c-update-brace-stack calls c-beginning-of-current-token, which returns point back to 8160. And it goes on and on and on... Alan, what can be done with this?