Thu 05 Jun 2008 08:02:28 AM UTC, comment #3:
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
|