Package: grep;
Reported by: JIang Yuancheng <0599jiangyc <at> gmail.com>
Date: Mon, 9 Nov 2020 17:45:02 UTC
Severity: wishlist
Message #8 received at 44538 <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: JIang Yuancheng <0599jiangyc <at> gmail.com> Cc: 44538 <at> debbugs.gnu.org, Kaihang Ji <kaihang <at> comp.nus.edu.sg> Subject: Re: bug#44538: grep -E might exhaust stack space Date: 2021年8月27日 18:25:44 -0700
[Message part 1 (text/plain, inline)]
On 11/9/20 9:34 AM, JIang Yuancheng wrote:
> grep -E ".*{10,}{10,}{10,}{10,}{10,}" can exhaust stack space then stack overflow comes out. (Tested on latest version 3.6)
This is a longstanding issue with the regex matcher. I installed the
attached patch to document the issue better. Fortunately, the problem is
mostly limited to contrived examples.
[0001-doc-document-interval-expression-limitations.patch (text/x-patch, attachment)]
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.