emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19420: closed (intermittent segfault using grep -P)


From: GNU bug Tracking System
Subject: bug#19420: closed (intermittent segfault using grep -P)
Date: Wed, 24 Nov 2021 03:04:02 +0000

Your message dated Tue, 23 Nov 2021 19:03:08 -0800
with message-id <339e3eb7-0593-6279-11cf-1a5c227d55c7@cs.ucla.edu>
and subject line Re: bug#19420: intermittent segfault using grep -P
has caused the debbugs.gnu.org bug report #19420,
regarding intermittent segfault using grep -P
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
19420: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19420
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: intermittent segfault using grep -P Date: Sat, 20 Dec 2014 10:55:24 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 When using the following command, *most* of the time I get a Segmentation fault (10 out of 16 times):

€ cat grepTxt | grep -P 'b(?:(?!tom).)+'
Segmentation fault (core dumped)

This happens with the  grep version that came with my Linux installation:

€ grep -V
grep (GNU grep) 2.16

I am on:

NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"

But also compiled grep from sources (http://ftp.gnu.org/gnu/grep/grep-2.21.tar.xz) with the same problem.

libpcre3:amd64; libpcre3:i386; libpcre3-dev:amd64; libpcrecpp0:amd64 are all 1:8.31-2ubuntu2

I tried to reduce the regex and the text as much as possible to still reproduce the issue most of the time, unfortunately the text is still 16893 bytes long. As I don't know if it is OK to attach such a long file, I put it on pastebin, but will expire in a month.

http://pastebin.com/download.php?i=jsHskMAA

Please advise.

Kind regards,

JP



--- End Message ---
--- Begin Message --- Subject: Re: bug#19420: intermittent segfault using grep -P Date: Tue, 23 Nov 2021 19:03:08 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0
I'm closing this old Grep bug report, on two grounds:

* I can no longer reproduce the the problem on Fedora 35 x86-64, using Norihiro Tanaka's test case <https://bugs.gnu.org/19420#20>. This suggests the PCRE library has been fixed.

* GNU Grep has switched to PCRE2, so PCRE bugs shouldn't matter now. See <https://bugs.gnu.org/47264>.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]