buggrep - Bugs: bug #16904, grep -P segfault / error

 
 

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

bug #16904: grep -P segfault / error

Submitter:  None
Submitted:  Wed 21 Jun 2006 04:06:49 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 17 Mar 2010 09:00:08 AM UTC, comment #2: 

Could not reproduce it even before commit a14685c (fix cross-line matching in PCRE backend, 2010-03-04).  However, matching with \n won't work by design after that commit, so it is definitely fixed now.

Paolo Bonzini <bonzini>
Wed 17 Mar 2010 08:33:29 AM UTC, comment #1: 

I think this is fixed in current grep, but I am not sure.  Can anyone help reproducing this?

Paolo Bonzini <bonzini>
Wed 21 Jun 2006 04:06:49 PM UTC, original submission:  

using grep 2.5.1

Have two symptoms that occur when grep encounters a pattern that spans the x8000 byte boundary in a text file.  Either grep will not report a valid match, and proceeds to output the next match(es), or a segfault is produced.

The command was similar to the following:

grep -P "phrase1.*\n.*\n.*\n.*phrase2"

When the first eol characters are before the x8000 boundary, and the last eol in the pattern is after x7FFF, one of the two errors occur.

Anonymous

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  •  

    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
    2010-03-17 bonzini Open/ClosedOpen Closed
    2010-03-17 bonzini StatusNeed Info Fixed
    2010-03-17 bonzini StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code