GNU bug report logs - #40477
Segfault with grep-3.4 and pcre-8.44

Previous Next

Package: grep;

Reported by: Bruce Dubbs <bruce.dubbs <at> gmail.com>

Date: Mon, 6 Apr 2020 20:55:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#40477: closed (Segfault with grep-3.4 and pcre-8.44)
Date: Mon, 21 Sep 2020 19:21:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 21 Sep 2020 12:19:57 -0700
with message-id <44ca5390-4a45-5aa2-249b-3ec10d2e24ad <at> cs.ucla.edu>
and subject line Re: bug#40477: Segfault with grep-3.4 and pcre-8.44
has caused the debbugs.gnu.org bug report #40477,
regarding Segfault with grep-3.4 and pcre-8.44
to be marked as done.

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


-- 
40477: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40477
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Bruce Dubbs <bruce.dubbs <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Segfault with grep-3.4 and pcre-8.44
Date: Mon, 6 Apr 2020 15:54:47 -0500
In linuxfromscratch we normally build grep without pcre using:

./configure --prefix=/usr --bindir=/bin
make

It works fine.

Later after pcre is installed users can rebuild grep with exactly the 
same instructions, but with grep-3.4, I get a segfault with

grep --help

and all other command line entries.  Adding --disable-perl-regexp 
restores grep but of course removes pcre regex capabilities.

I went back and built grep-3.3 with pcre and everything worked with the 
same pcre library as above.

I did some preliminary gdb testing and got:

Reading symbols from src/grep...
(gdb) run --help
Starting program: /build/grep/grep-3.4/src/grep --help

Program received signal SIGSEGV, Segmentation fault.
0x000000000041cc03 in __libc_start_main ()
(gdb) bt
#0  0x000000000041cc03 in __libc_start_main ()
#1  0x000000000040715a in _start () at ../sysdeps/x86_64/start.S:120

We are using glibc-2.31 and gcc-9.2.0 if that makes a difference.

  -- Bruce Dubbs
     linuxfromscratch.org


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruce Dubbs <bruce.dubbs <at> gmail.com>
Cc: 40477-done <at> debbugs.gnu.org
Subject: Re: bug#40477: Segfault with grep-3.4 and pcre-8.44
Date: Mon, 21 Sep 2020 12:19:57 -0700
On 4/6/20 8:31 PM, Bruce Dubbs wrote:

> Upon more investigation my problem may be to be due to libsigsegv-2.12. If I 
> keep that from being linked into grep it is fine.

This appears to be the Gnulib/libsigsegv problem that Bruno Haible fixed yesterday:

https://lists.gnu.org/r/bug-gnulib/2020-09/msg00101.html

so I'm closing the grep bug report.


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

Previous Next


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