bugGNU Octave - Bugs: bug #45031, segfault with regexprep (large...

 
 

bug #45031: segfault with regexprep (large text, many capturing groups)

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Tue 05 May 2015 06:54:51 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 02 Jun 2015 04:53:33 PM UTC, comment #6:

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Tue 05 May 2015 08:27:38 PM UTC, comment #5:

It segfault with 8.37-1 too, blame me. I'll create a bugreport at libpcre.

Markus Bergholz <markuman>
Tue 05 May 2015 08:06:32 PM UTC, comment #4:

No segfault with the new libpcre 8.37-1 version too. So no octave bug.

Markus Bergholz <markuman>
Tue 05 May 2015 07:30:47 PM UTC, comment #3:

On Arch Linux it's 8.36-2 and crashing. On one Ubuntu machine here it's 8.31-2 and not crashing. So I agree, it's an upstream bug.

Markus Bergholz <markuman>
Tue 05 May 2015 07:21:49 PM UTC, comment #2:

This is probably important, I am using libpcre version 2:8.35-3.3 (latest on Debian Jessie). So maybe a bug upstream?

Carnë Draug <carandraug>
Project Member
Tue 05 May 2015 07:11:27 PM UTC, comment #1:

octave rc4 ubuntu

I tried your test code and it did not segfault.

Doug Stewart <dastew>
Tue 05 May 2015 06:54:51 PM UTC, original submission:

The following was discovered by markuman on IRC. It causes Octave to segfault but it's not exactly clear why. The attached file can be used for testing:

One way to prevent this is by turning the 4th group, into a non-capturing, i.e,:

but I think it should be possible to capture all groups. Trying with many other files, the issue seems to be a function of both character number and regexp complexity.

Carnë Draug <carandraug>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #33929:  xlsread.m added by carandraug (11KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by markuman (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by carandraug (Submitted the item)
  •  

    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 project members can vote.

     

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Jun 2015 04:53:33 PM UTCjweRelease4.0.0-rc4=>4.0.0
    Wed 06 May 2015 07:13:53 PM UTCrik5StatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 05 May 2015 06:54:51 PM UTCcarandraugAttached File-=>Added xlsread.m, #33929

    Back to the top


    Powered by Savane 3.1-cleanup1