[Top][All Lists]

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

[Octave-bug-tracker] [bug #62704] Regexpi() fatal error triggers core du

From: anonymous
Subject: [Octave-bug-tracker] [bug #62704] Regexpi() fatal error triggers core dump
Date: Mon, 4 Jul 2022 08:22:14 -0400 (EDT)


                 Summary: Regexpi() fatal error triggers core dump
                 Project: GNU Octave
               Submitter: None
               Submitted: Mon 04 Jul 2022 12:22:11 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: jasmin.zimmer@batop.de
             Open/Closed: Open
                 Release: 6.3.0
         Discussion Lock: Any
        Operating System: Any


Follow-up Comments:

Date: Mon 04 Jul 2022 12:22:11 PM UTC By: Anonymous
we noticed that a certain pattern string in regexpi() leads to Octave stopping
and closing itself. When started via terminal (i.e. not as GUI), the last
output is

terminate called after throwing an instance of ‘std::out_of_range’
what(): basic_string::at: __n (which is 3) >= this->size() (which is 3)
fatal: caught signal Aborted – stopping myself…
Aborted (core dumped)

The faulty expression is *regexpi('(','\(?')*. A possible workaround is adding
parentheses like *regexpi('(','(\()?')*, but we aren’t quite sure why - is
'\(?' (=search for an optional opening parenthesis) not a valid pattern?

Happens on both Win10 + Octave 6.3 & 7.1, and Ubuntu 20.04 + Octave 6.3

Thanks in advance!


Reply to this item at:


Message sent via Savannah

reply via email to

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