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#61514: 30.0.50; sadistically long xml line hangs emacs Date: Mon, 20 Feb 2023 22:01:24 +0200 Message-ID: <83wn4ct8bv.fsf@gnu.org> References: <87lel0c65v.fsf@everybody.org> <838rgvymcd.fsf@gnu.org> <831qmkwmux.fsf@gnu.org> <83cz64v3v7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2858"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 61514@debbugs.gnu.org, mah@everybody.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 20 21:02:25 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 1pUCMh-0000Zp-GT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Feb 2023 21:02:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUCMc-0003iG-BK; Mon, 20 Feb 2023 15:02:18 -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 1pUCMP-0003eX-KW for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 15:02:09 -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 1pUCMM-0002kx-6R for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 15:02:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUCMM-0004Kv-2Q for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 15:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61514 X-GNU-PR-Package: emacs Original-Received: via spool by 61514-submit@debbugs.gnu.org id=B61514.167692328816628 (code B ref 61514); Mon, 20 Feb 2023 20:02:02 +0000 Original-Received: (at 61514) by debbugs.gnu.org; 20 Feb 2023 20:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:53712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUCLo-0004K7-FP for submit@debbugs.gnu.org; Mon, 20 Feb 2023 15:01:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUCLj-0004Jt-HB for 61514@debbugs.gnu.org; Mon, 20 Feb 2023 15:01:26 -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 1pUCLd-0002ee-K5; Mon, 20 Feb 2023 15:01:17 -0500 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=C6jBqZ9RpDH9ycVvE30oAc3fpcSOqpY4ahncStWFCx4=; b=NvGdSXpEyaXG 3GEKwBTDOVkHpGwjjYuthd1sY+qe8JkAluFO3VXGHBcXQnS7RndZ9UJqhqK02PoWKmFMxv9pq+z9Y lgaOHgAwrjEacOpnCgPiujpCX6cJQJaatKET+wrqCTpYyDzyzV9ASDknPrGcvnsrHMk9jIYcSWYEi dwWOqUcne/SH1iuZMNc3dDJqHG9tHyGw/ZBwOjxTh4pqk2rb5iy+0PdWOxXDBCupr3LToaGH4bKy6 0aWZceUTtwd11OJ6sx5egA6PdGYP5yB6dnik1E3mhanvlYXYWNlcoS6sLh1KIo1yrqvbzn5qkomvQ y1jSEbspb/XCvqsg4627Rw==; 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 1pUCLb-0007MS-MN; Mon, 20 Feb 2023 15:01:17 -0500 In-Reply-To: (message from Stefan Monnier on Mon, 20 Feb 2023 13:49:49 -0500) 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:256217 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , mah@everybody.org, 61514@debbugs.gnu.org > Date: Mon, 20 Feb 2023 13:49:49 -0500 > > > where I can even reduce the regexp down to "[-._[:alnum:]]*\t*=". > > Looks like we're missing a case in our backtracking-elimination code. > > The patch below fixes the stack overflow. > [ And thanks Gregory for the yet simpler test cases. ] > > I don't think we want that for `emacs-29`, but unless there's some > objection I'll push this to `master`, Assuming all the regex-emacs-tests and search-tests pass after this change, please install on emacs-29, and thanks.