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

Submitter:  None
Submitted:  Thu 30 Jun 2005 01:13:08 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-06-30 charles_levert StatusNone Works For Me
    Open/ClosedOpen Closed
2005-06-30 None Attached File- Added test.dat.bz2, #2645

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code