bugGNU Octave - Bugs: bug #55540, crash or recursion error in...

 
 

bug #55540: crash or recursion error in mkdir() when parent is non-absolute path

Submitter:  Andrew Janke <apjanke>
Submitted:  Tue 22 Jan 2019 12:43:51 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.0.1 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Jan 2019 06:09:18 AM UTC, comment #2: 

I stopped the recursion and issue an error in this cset (https://hg.savannah.gnu.org/hgweb/octave/rev/7f58079955b3).  I also added a BIST test for it.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 22 Jan 2019 12:53:42 AM UTC, comment #1: 

No crash in 4.4.1 on Windows 10. I get the "max_recursion_depth exceeded" error instead there.

Andrew Janke <apjanke>
Tue 22 Jan 2019 12:43:51 AM UTC, original submission:  

Hi folks,

I have a reproducible crash/error when mkdir() is called with an unexpected argument.


mkdir ("hello", "world")


Where "hello" is a non-absolute path, and "hello" does not exist as a directory in the current directory.

In a Qt-compiled Octave, this results in a crash.


octave:1> ver
----------------------------------------------------------------------
GNU Octave Version: 5.0.1 (hg id: d673b506f382 + patches)
[...]
octave:2> mkdir('hello', 'world')
[1]    21122 illegal hardware instruction (core dumped)  octave-stable


In a non-Qt-enabled Octave, it results in a recursion error.


octave:1> mkdir('hello', 'world')
error: max_recursion_depth exceeded
error: called from
    mkdir>mkdir_recur at line 76 column 23
    mkdir at line 65 column 21


Crash dump from Octave stable on macOS 10.13.6 attached.

Andrew Janke <apjanke>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46066:  octave-gui_2019-01-21-194050_angharad.crash added by apjanke (125KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by apjanke (Submitted the item)
  •  

    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.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-22 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.4.1 5.0.1
        Operating SystemMac OS Any
    2019-01-22 apjanke Attached File- Added octave-gui_2019-01-21-194050_angharad.crash, #46066

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code