GNU bug report logs - #6640
23.2; Why is this regexp search taking so long? (and will it end?)

Previous Next

Package: emacs;

Reported by: michael <at> cadilhac.name (Michaël Cadilhac)

Date: Thu, 15 Jul 2010 15:44:02 UTC

Severity: normal

Merged with 20230, 31817, 34823

Found in versions 23.2, 24.4.91, 27.0.50

Full log


Message #8 received at 6640 <at> debbugs.gnu.org (full text, mbox):

From: Ryan Rix <ryan <at> whatthefuck.computer>
To: 6640 <at> debbugs.gnu.org
Cc: michael <at> cadilhac.name
Subject: Re: bug#6640: 23.2;
 Why is this regexp search taking so long? (and will it end?)
Date: Sun, 06 Mar 2016 04:12:59 +0000
michael <at> cadilhac.name "(Michaël" Cadilhac) writes:
> - emacs -Q
> - Clear the scratch buffer, and paste:
>
[redact]
>
> (a small input would give quite the same result).
> - M-< C-- C-s ^\([^:]*:[^:]*\)\{9\}
>
>   (everything works fine till now)
>
> add an $ to the regexp.
>
> - FEAR the possible endless loop (and the actual unexpected result of
>   taking long time).
>
> With an 8 in place of the 9, it takes a long time, but not possibly
> endless.
>
> Thanks!

Hi Michael,

Thanks for reporting this. I can confirm this is still an issue in the
latest emacs-25, commit e51b27ec2ce214ef3d8377a27ee9d857bcc66afc

I will leave it to smarter minds than my own to debug the regex engine,
though.




This bug report was last modified 6 years and 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.