bug-grep
[Top][All Lists]
Advanced

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

[bug #12368] Segfault with grep -P


From: Torsten Will
Subject: [bug #12368] Segfault with grep -P
Date: Thu, 05 Jun 2008 08:02:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5

Follow-up Comment #3, bug #12368 (project grep):

Yep, I had the same. I have not tried CVS version (my ssh refuses to connect
to the server, maybe ssh-key-bug?), so for the sake of completeness...
Here is a test case, I hope it helps:

$ cat xx | pgrep -P -o "(\S+) \| ((\d+\.\d+)) \| \s+(\d+\.\d+) \| ([^.
=]+)\.([^ =]+) ?= ?"?([^"]*)"?"
xmwc-stgt-de02 | 1212589022.737232 |   0.373311 | ifDescr.67 =
"GigabitEthernet3/15"
Segmentation fault


$ cat xx
--- should match ---
xmwc-stgt-de02 | 1212589022.737232 |   0.373311 | ifDescr.67 =
"GigabitEthernet3/15"
l3shr-gts2-de02 | 1208524225.403611 |   0.129490 |
ltmVirtualAddrStatClientBytesOut.1.4.195.71.128.36 = 12810964
rslv-mnch-de01 | 1212589021.659283 |   0.033502 | ifOutOctets.1249 = 947353
rslv-mnch-de01 | 1212589021.659283 |   0.033502 | ifOutOctets.1250 = 1250573

--- do not have to match ---
ro2e-mnch-de02 | 1212589045.270488 |  22.789715 | ifDescr = Timed out
ro2e-mnch-de02 | 1212589045.270755 |  22.779856 | ifOutOctets = Timed out
[[[EOF]]]



(I installed this version as "pgrep")

$ pgrep --version
grep (GNU grep) 2.5



machine: ubuntu hardy, intel 64bit.
$ uname -a
Linux havaloc 2.6.24-17-generic #1 SMP Thu May 1 13:57:17 UTC 2008 x86_64
GNU/Linux


$ grep -3 MAJ /usr/include/pcre.h 

/* The current PCRE version information. */

#define PCRE_MAJOR          7
#define PCRE_MINOR          4
#define PCRE_PRERELEASE     
#define PCRE_DATE           2007-09-21





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?12368>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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