From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#70423: 29.3; cc-mode hang at 100% cpu and consuming all available memory Date: Sat, 20 Apr 2024 11:52:49 -0400 Message-ID: References: Reply-To: rswgnu@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cf260406168933ac" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pillowtrucker@proton.me, Eli Zaretskii , 70423@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 20 17:54:12 2024 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 1ryD2a-0006id-8N for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Apr 2024 17:54:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryD2E-00035r-Og; Sat, 20 Apr 2024 11:53:50 -0400 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 1ryD2C-00035S-JQ for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 11:53:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryD2C-0005Yq-As for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 11:53:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryD2Q-0006gn-N5 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2024 11:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Apr 2024 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70423 X-GNU-PR-Package: emacs Original-Received: via spool by 70423-submit@debbugs.gnu.org id=B70423.171362842325574 (code B ref 70423); Sat, 20 Apr 2024 15:54:02 +0000 Original-Received: (at 70423) by debbugs.gnu.org; 20 Apr 2024 15:53:43 +0000 Original-Received: from localhost ([127.0.0.1]:36942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryD26-0006eQ-MR for submit@debbugs.gnu.org; Sat, 20 Apr 2024 11:53:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryD23-0006dk-B8 for 70423@debbugs.gnu.org; Sat, 20 Apr 2024 11:53:40 -0400 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 1ryD1i-0005VQ-71 for 70423@debbugs.gnu.org; Sat, 20 Apr 2024 11:53:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=To:Subject:Date:From:In-Reply-To:References: MIME-Version; bh=Msvg3CsdP4RVNGqF5NJPGVwasbjwMphV3nEDArd9tg0=; b=h56yFwjDJkTg eJJk3JJAL3ZIe9132Pmc1yW1mEHjWmsvAbxh10gUT93QALw/b/eMTMny0s5KLkBdWq26Lg6FniUAO E1oasq/eDqYXJjP0sJukdSRTAK+G3Pr6/bDphCTpV76WmdJDKUiOtrd6rEcYVGlvE51q4HAHdrf41 8Uzgo6VyoQhMo0qQZ/Gh0DJMMjFOKRaIFvXZvd8Z7L48acnBU1Cek1dWYwk1lhmRNCRySc32xn4XO gHtcuKZwEvj8SgVfSfLiEbsSPXQRxYW2ovx79nmP5wUH78UCTUoWMlWo024d0I1IxDv3XB4VB8Ots MGQMWo+J8tNQiud9wX/Ldg==; X-Forwarded-Encrypted: i=1; AJvYcCWJF6bktbStxOXMXfFHXxdSHm+S3yYteggeI0IrdXPLA25bel4HZjoh6Eve8womYsnjOS4WG+gC4esKW7QrN8HEM51u5fw= X-Gm-Message-State: AOJu0YxbfkJsJD6En2RQ70lVZ49rlm7cewfBTFBCwWbIMXzOs+Lkzfb8 OQedR+DOrrt/j8oYdtP8RNKtX7nWUUc9KqcTYvuWjjq3GKmQp29nFDNBec0LiU0Ma/01iUH4RS0 AJYCXrZymyeyADMJh39hLQcMaOfY= X-Google-Smtp-Source: AGHT+IHgM9n4vcjkm5DECDkyCakU03l7bdfxSYkaHmni4tdxmsrXB4bSKykrhQOYDeEn7Qi40w25XlMIUT2mp8qclY4= X-Received: by 2002:a05:6102:3134:b0:47b:b3f7:bdb8 with SMTP id f20-20020a056102313400b0047bb3f7bdb8mr4868100vsh.3.1713628395804; Sat, 20 Apr 2024 08:53:15 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283741 Archived-At: --000000000000cf260406168933ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all: I have now read through the recent messages more carefully, duplicated the hang in c++-mode using pillowtrucker's init.el and his drm_formats.cpp file simply by invoking M->. I then added both Alan's cc-defs.el fix and his new c++-defun-prompt-regexp and that resolved the hang. If I add the new c++ regexp without the cc-defs.el fix, that also seems to solve the hang. So I retract my prior message and acknowledge one source of the problem has been the existing Hyperbole regexps. We'll update Hyperbole to use Allen's new regexps and hopefully this will close this issue after pillowtrucker does some testing. (I think Allen's other fixes should be applied to and that they will help performance). Regards, Bob On Sat, Apr 20, 2024 at 9:14=E2=80=AFAM Robert Weiner wr= ote: > > > On Apr 20, 2024, at 5:22=E2=80=AFAM, Alan Mackenzie wrote: > > > > =EF=BB=BFHello, M. > > > > Yes, I can understand that. As I said, I'll fix c-beginning-of-defun-1 > > so that that can't possibly happen again, regardless of what happens to > > these regexps. > > I think this is the crux of the fix needed, not a change in Hyperbole > regexps. Alan, Hyperbole had your new defun regexp for Java and Emacs > still would hang until we applied your recent fix to cc-defs.el. With th= at > in place and no change to the c++ defun regex in Hyperbole, I have not be= en > able to trigger a hang. So let=E2=80=99s just add your additional fix de= scribed > above, skip the c++ defun rewrite and see if any other issues appear. > > Cheers, > > Bob --000000000000cf260406168933ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all:

I have now read through the recent messages mor= e carefully, duplicated the hang in c++-mode using pillowtrucker's=C2= =A0init.el and his drm_formats.cpp file simply by invoking M->.=C2=A0 I = then added both Alan's cc-defs.el fix and his new c++-defun-prompt-rege= xp and that resolved the hang.=C2=A0 If I add the new c++ regexp=C2=A0witho= ut the cc-defs.el fix, that also seems to solve the hang.=C2=A0 So I retrac= t my prior message and acknowledge one source of the problem has been the e= xisting Hyperbole regexps.=C2=A0 We'll update Hyperbole to use Allen= 9;s new regexps and hopefully this will close this issue after pillowtrucke= r does some testing.=C2=A0 (I think Allen's other fixes should be appli= ed to and that they will help performance).

Regards,

Bob

On Sat, Apr 20, 2024 at 9:14=E2=80=AFAM Robert Weiner <rswgnu@gmail.com> wrote:

> On Apr 20, 2024, at 5:22=E2=80=AFAM, Alan Mackenzie <acm@muc.de> wrote:
>
> =EF=BB=BFHello, M.
>
> Yes, I can understand that.=C2=A0 As I said, I'll fix c-beginning-= of-defun-1
> so that that can't possibly happen again, regardless of what happe= ns to
> these regexps.

I think this is the crux of the fix needed, not a change in Hyperbole regex= ps.=C2=A0 Alan, Hyperbole had your new defun regexp for Java and Emacs stil= l would hang until we applied your recent fix to cc-defs.el.=C2=A0 With tha= t in place and no change to the c++ defun regex in Hyperbole, I have not be= en able to trigger a hang.=C2=A0 So let=E2=80=99s just add your additional = fix described above, skip the c++ defun rewrite and see if any other issues= appear.

Cheers,

Bob
--000000000000cf260406168933ac--