GNU bug report logs - #22793
grep -E assertion failure with back references

Previous Next

Package: grep;

Reported by: santiagorr <at> riseup.net

Date: Wed, 24 Feb 2016 16:20:02 UTC

Severity: normal

Merged with 32806, 34238, 42946

Full log


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

From: arnold <at> skeeve.com
To: santiagorr <at> riseup.net, jim <at> meyering.net, eggert <at> cs.ucla.edu
Cc: 22793 <at> debbugs.gnu.org, 186568 <at> bugs.debian.org
Subject: Re: bug#22793: grep -E assertion failure with back references
Date: Wed, 24 Feb 2016 23:12:10 -0700
Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> With recent 'grep' you can work around the problem by configuring 
> --with-included-regex.

Not so. I did a fresh

	./boostrap
	./configure --with-included-regex
	make

and it still core dumps:

$ echo abc | ./src/grep -E  '(.*)(.*)(.*)\3\2\1'
grep: regexec.c:1413: pop_fail_stack: Assertion `((Idx) (num) < ((Idx) -2))' failed.
Aborted (core dumped)

I looked at it in a debugger fs->num before the --fs->num executes looks to
be -1.

Thanks,

Arnold




This bug report was last modified 4 years and 267 days ago.

Previous Next


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