octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55540] crash or recursion error in mkdir() wh


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55540] crash or recursion error in mkdir() when parent is non-absolute path
Date: Mon, 21 Jan 2019 19:43:53 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55540>

                 Summary: crash or recursion error in mkdir() when parent is
non-absolute path
                 Project: GNU Octave
            Submitted by: apjanke
            Submitted on: Tue 22 Jan 2019 12:43:51 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Mac OS

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 22 Jan 2019 12:43:52 AM UTC  Name:
octave-gui_2019-01-21-194050_angharad.crash  Size: 125KiB   By: apjanke

<http://savannah.gnu.org/bugs/download.php?file_id=46066>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55540>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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