unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acm@muc.de, schwab@linux-m68k.org, monnier@iro.umontreal.ca,
	18577@debbugs.gnu.org
Subject: bug#18577: Regexp I-search: [(error Stack overflow in regexp matcher)]
Date: Sat, 23 Oct 2021 01:30:07 -0700	[thread overview]
Message-ID: <CADwFkm=13XMNB3gRkAp0D_TE0d1Wa4OGN2y_QPkMKGVLtXiORw@mail.gmail.com> (raw)
In-Reply-To: <83mtn05h7b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Oct 2021 10:32:56 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stefan Kangas <stefan@marxist.se>
>> Date: Fri, 22 Oct 2021 19:47:53 -0700
>> Cc: Alan Mackenzie <acm@muc.de>, Andreas Schwab <schwab@linux-m68k.org>,
>>  18577@debbugs.gnu.org
>>
>> Should we do anything about this, like document it in etc/PROBLEMS, or
>> should this bug just be closed?
>
> If we can give useful advice in PROBLEMS, adding that can never hurt.

Perhaps we could just say this (which makes it easy to search for as the
headline matches the error message):

diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index ede83a6e7c..1b10e20272 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -742,6 +742,15 @@ completed" message that tls.el relies upon,
causing affected Emacs
 functions to hang.  To work around the problem, use older or newer
 versions of gnutls-cli, or use Emacs's built-in gnutls support.

+*** Stack overflow in regexp matcher.
+Due to fundamental limitations in the way Emacs' regular expression
+engine is designed, you might run into combinatorial explosions in
+backtracking with certain regexps.
+
+See Emacs Bug#18577 for a discussion and ideas for how to solve it:
+
+    https://debbugs.gnu.org/18557
+
 * Runtime problems related to font handling

 ** Characters are displayed as empty boxes or with wrong font under X.





  reply	other threads:[~2021-10-23  8:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-28  8:55 bug#18577: Regexp I-search: [(error Stack overflow in regexp matcher)] Alan Mackenzie
2014-09-28 10:56 ` Andreas Schwab
2014-09-28 12:37   ` Alan Mackenzie
2014-09-28 12:48     ` Andreas Schwab
2014-09-28 17:35       ` Stefan Monnier
2014-11-27  8:44         ` Tassilo Horn
2021-10-23  2:47         ` Stefan Kangas
2021-10-23  7:32           ` Eli Zaretskii
2021-10-23  8:30             ` Stefan Kangas [this message]
2021-10-23  8:39               ` Eli Zaretskii
2021-10-23  9:32                 ` Stefan Kangas
2021-10-23 11:27                   ` Eli Zaretskii
2021-10-24 22:08                     ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=13XMNB3gRkAp0D_TE0d1Wa4OGN2y_QPkMKGVLtXiORw@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=18577@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).