From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34910: 27.0.50; Too much matching reentrancy Date: Sat, 30 Mar 2019 16:37:03 +0300 Message-ID: <83ef6oiiv4.fsf@gnu.org> References: <834l7zuw4x.fsf@gnu.org> <443195D9-DFEB-4E67-AEFE-556C3D900113@acm.org> <8336njuqrd.fsf@gnu.org> <66172e4bc6e70e23d7bf3175a5c83519a43c1a66.camel@acm.org> <83sgv4iu9d.fsf@gnu.org> <1967BB79-8AD9-41F7-B046-0ECC787FDC3C@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="55383"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@IRO.UMontreal.CA, 34910@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 30 14:38:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAEBd-000EFy-EK for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Mar 2019 14:38:17 +0100 Original-Received: from localhost ([127.0.0.1]:33075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAEBc-0002L0-AV for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Mar 2019 09:38:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAEBS-0002Kq-2K for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2019 09:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAEBP-0006vM-Vh for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2019 09:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAEBO-0006uZ-LN for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2019 09:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAEBO-0001Sn-FM for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2019 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2019 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 34910-submit@debbugs.gnu.org id=B34910.15539530475562 (code B ref 34910); Sat, 30 Mar 2019 13:38:02 +0000 Original-Received: (at 34910) by debbugs.gnu.org; 30 Mar 2019 13:37:27 +0000 Original-Received: from localhost ([127.0.0.1]:36339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAEAo-0001Re-N7 for submit@debbugs.gnu.org; Sat, 30 Mar 2019 09:37:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAEAm-0001RO-6B for 34910@debbugs.gnu.org; Sat, 30 Mar 2019 09:37:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAEAQ-0006Tj-TT; Sat, 30 Mar 2019 09:37:08 -0400 Original-Received: from [176.228.60.248] (port=3776 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hAEAN-0006ec-He; Sat, 30 Mar 2019 09:37:00 -0400 In-reply-to: <1967BB79-8AD9-41F7-B046-0ECC787FDC3C@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sat, 30 Mar 2019 14:05:50 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156947 Archived-At: > From: Mattias EngdegÄrd > Date: Sat, 30 Mar 2019 14:05:50 +0100 > Cc: Eli Zaretskii , dancol@dancol.org, 34910@debbugs.gnu.org > > 30 mars 2019 kl. 13.55 skrev Stefan Monnier : > > > > It was probably just an oversight, because whether we're searching > > within strings or within buffers the same problems appear with \{N\} > > repetitions (where the counter is stored directly inside the > > regexp-byte-code) and with on-the-fly strength-reduction (where we > > replace some byte-code with cheaper ones (where applicable) on the first > > pass through the regexp). > > Is the reentrancy just in preparation for future needs, or is it possible to re-enter the regexp code right now? I think the former, since reentrance could only happen if a Lisp thread yields while inside a regexp function, which I think is not possible, since we never call 'select' or any Lisp from there, do we?