GNU bug report logs - #18806
grep -rP getline crashes prematurely (without displaying all results) on invalid UTF-8 input with LC_ALL=en_US.UTF-8

Previous Next

Package: grep;

Reported by: Shlomi Fish <shlomif <at> shlomifish.org>

Date: Thu, 23 Oct 2014 11:16:02 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: Paul Eggert <eggert <at> cs.ucla.edu>
To: Shlomi Fish <shlomif <at> shlomifish.org>, 18806 <at> debbugs.gnu.org
Subject: bug#18806: grep -rP getline crashes prematurely (without displaying all results) on invalid UTF-8 input with LC_ALL=en_US.UTF-8
Date: Thu, 23 Oct 2014 14:06:32 -0700
On 10/23/2014 04:15 AM, Shlomi Fish wrote:
> internal PCRE error: -32
>
> with the latest git grep.

I am not seeing a problem with that test case on my platform.  I am 
running Fedora 20 x86-64, and compiled grep with GCC 4.9.1 (which I 
built myself) and linked with the standard Fedora package 
pcre-8.33-6.fc20.x86_64.  I also tried building with the Fedora GCC in 
32-bit mode, and couldn't reproduce the bug there either.

Possibly it's a libpcre problem?

I tested with grep commit b2490802defe3c3bf7ef0036a4515d006a08a769 and 
grep-bug-big5-utf8-from-IO-All commit 
9469e6e5be97d631c02bcfdbe814f43d1bb2df56.




This bug report was last modified 10 years and 209 days ago.

Previous Next


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