[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35961] regexp causes Crash
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #35961] regexp causes Crash |
Date: |
Fri, 23 Mar 2012 11:50:08 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0 |
URL:
<http://savannah.gnu.org/bugs/?35961>
Summary: regexp causes Crash
Project: GNU Octave
Submitted by: None
Submitted on: Fri 23 Mar 2012 11:50:06 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Crash
Status: None
Assigned to: None
Originator Name: Mech Mon
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
I am parsing a text file and when I try this line:
line="X[65.989*#101+#103+#525+#127] C1089.517 Z8.34 F[990.574*#143*1.275]";
[s_P, e_P, te_P, m_P, t_P, nm_P] = regexp
(line,"[XCZF(?<=\[|\d].*?(\]|\s)");#match Position formula
06:45:13 Octave 1:> line="X[65.989*#101+#103+#525+#127] C1089.517 Z8.34
F[990.574*#143*1.275]"
line = X[65.989*#101+#103+#525+#127] C1089.517 Z8.34 F[990.574*#143*1.275]
06:45:19 Octave 2:> [s_P, e_P, te_P, m_P, t_P, nm_P] = regexp
(line,"[XCZF(?<=\[|\d].*?(\]|\s)");
warning: unrecognized escape sequence `\[' -- converting to `['
warning: unrecognized escape sequence `\d' -- converting to `d'
warning: unrecognized escape sequence `\]' -- converting to `]'
warning: unrecognized escape sequence `\s' -- converting to `s'
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
It crashed 3.6.1 and 3.4.3 and 3.2.4
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35961>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35961] regexp causes Crash,
anonymous <=