[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51589] crash on regexp

From: Rik
Subject: [Octave-bug-tracker] [bug #51589] crash on regexp
Date: Thu, 27 Jul 2017 13:25:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #1, bug #51589 (project octave):

Confirmed, but I used gdb to check and the segfault is coming from libpcre,
rather than Octave.  Is there a better pattern to use to accomplish what you
want?  The pattern


creates a capture-block which may or may not match because of the ending
asterisk.  The capture buffer has to be allocated out of dynamic memory
because it doesn't know in advance what it will find in the text.  In this
case, it looks like there are over 80,000 matches and probably more than 1M of
memory required.  That is exceptionally large.

It seems like this is just a tab-separated data file with the first two lines
being a text header.  If you just want to read the data in to Octave this
would be easier.

x = dlmread ("oc.txt", "\t", 2, 0);


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]