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#65726: 29.1.50; Crash in regexp engine Date: Mon, 04 Sep 2023 18:57:41 +0300 Message-ID: <831qfe53t6.fsf@gnu.org> References: <8e1b4e50-0430-3eb3-e486-60def1e4821f@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="534"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, 65726@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 04 17:59:27 2023 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 1qdBz4-000AS4-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Sep 2023 17:59:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdByr-0003BH-43; Mon, 04 Sep 2023 11:59:13 -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 1qdByn-0003AW-Lf for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2023 11:59:09 -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 1qdByg-0003j0-0r for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2023 11:59:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdByf-0006W3-Ua for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2023 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Sep 2023 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65726 X-GNU-PR-Package: emacs Original-Received: via spool by 65726-submit@debbugs.gnu.org id=B65726.169384308724961 (code B ref 65726); Mon, 04 Sep 2023 15:59:01 +0000 Original-Received: (at 65726) by debbugs.gnu.org; 4 Sep 2023 15:58:07 +0000 Original-Received: from localhost ([127.0.0.1]:52359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdBxn-0006UX-94 for submit@debbugs.gnu.org; Mon, 04 Sep 2023 11:58:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdBxk-0006Tw-PB for 65726@debbugs.gnu.org; Mon, 04 Sep 2023 11:58:05 -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 1qdBxf-0003bo-9C; Mon, 04 Sep 2023 11:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XvoZvIKDqnZGI09yRqe8IIQUf+NvTXsGegDY7fEYNkk=; b=oKRMYSIH2mW5 oX1cQL8mnWLXfnKk9oPhps/o/gbMH8Msz9ZVGtH1SNNVuZ5Zotpxfd6OONR8xI4XYvUG8fMGPlf8w g7j9YKELHHUuNJxIW8QYsVAMCCFME+K/AkfTqPEHqaEcz36i05fNjtOa7Ur8dDQnIB9kDvcYpNCtQ IL49eidhbCGtMmJBX7TSkjuc3uDjN6+m6a3WGDnRQD7pOLNcro03Ak6U0wQ2u6PJQcJofXzp/4el4 oqdUTGKqNVYvnRqugWqSZMOi6hupMhbfR/In6H6/ZVOrKtNLGFT9QxtLkU2mmczZfWkXF9A3759im hJ5Vb5pB0M2pIji2way0tQ==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:269256 Archived-At: > Cc: 65726@debbugs.gnu.org > Date: Mon, 04 Sep 2023 10:32:38 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Re-reading the code I see that `skip_noops` can return a position > smaller than its argument, which makes it possible for `p2` to > be smaller (or equal) to `p2_orig` and hence explain that inf-loop > (that's the only path I can see that explains the inf-loop you're > seeing). > > So, the patch below should hopefully fix your problem. Yes, with this patch the problem is gone. Please install on the release branch, when you are satisfied with the solution, and thanks.