buggrep - Bugs: bug #13581, Segmentation fault with -P option

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #13581: Segmentation fault with -P option

Submitted by:  None
Submitted on:  Thu 30 Jun 2005 01:13:08 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 30 Jun 2005 02:43:21 PM UTC, comment #1:

This cannot be reproduced with the current CVS version, probably because of the change introduced in revision 1.32 of "src/search.c" on 2005-02-24.

Thanks for taking the time to report it, though.

Note that with Perl regular expressions, you should probably use '...[\t ]$', not '...\s$', since the '\s' will match the end-of-line character(s) as well. Mixing PCRE with grep is still an experimental feature at this point, as this illustrates.

Charles Levert <charles_levert>
Thu 30 Jun 2005 01:13:08 PM UTC, original submission:

The following command

>grep -P 'RTU.\s+15\s$' test.dat


ends (unexpectedly) with

>ZAS02400 A RTU S/S address 5 0024 R 15

...

>ZDMR2088 A Segmentation fault


>grep --version

grep (GNU grep) 2.5.1

>ldd `which grep`

libpcre.so.0 => /lib/libpcre.so.0 (0x03c2b000)
libc.so.6 => /lib/tls/libc.so.6 (0x0040f000)
/lib/ld-linux.so.2 (0x003f6000)

Anonymous

 

Attached Files
file #3137:  test.dat.bz2 added by None (83KiB - application/x-bzip2 - bzip2 compressed file test.dat)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 30 Jun 2005 02:43:21 PM UTCcharles_levertStatusNone=>Works For Me
  Open/ClosedOpen=>Closed
Thu 30 Jun 2005 01:13:08 PM UTCNoneAttached File-=>Added test.dat.bz2, #2645

Back to the top


Powered by Savane 3.1-cleanup1