bugGNU Octave - Bugs: bug #52274, Segfault when calling previously...


bug #52274: Segfault when calling previously used oct-file from deleted directory

Submitted by:  Piotr Held <jsoh425>
Submitted on:  Tue 24 Oct 2017 04:52:25 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Piotr Held Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 31 Dec 2018 12:56:10 AM UTC, comment #4:

I tested as well and this throws a lot of error messages, but no longer segfaults. Given that the directory really is missing, I think the warnings are legitamate and there is nothing else we need to do. Marking bug as fixed and closing report.

Rik <rik5>
Project Administrator
Sun 30 Dec 2018 08:29:47 PM UTC, comment #3:

With a current build of stable (74368b4f9d8c) I get

Andreas Weber <andy1978>
Project Member
Tue 24 Oct 2017 08:34:53 PM UTC, comment #2:

The cause seems to be an infinite loop until eventually there is an overflow in memory. I ran with gdb and the stack trace was over 30,000 deep. The beginning of the infinite loop is shown below.

The first block that starts to repeat begins with this

Rik <rik5>
Project Administrator
Tue 24 Oct 2017 08:28:03 PM UTC, comment #1:

Confirmed. It is not enough to delete the file helloworld.oct, it has to be the directory.

Also, it seems to be a general problem with the path not necessarily related to trying to execute the .oct file. After deleting the temporary directory I tried

and that also caused a segfault.

Rik <rik5>
Project Administrator
Tue 24 Oct 2017 04:52:25 PM UTC, original submission:

The scenario is as follows:

1. Open Octave in a directory (let's call it 'test').
2. Put an oct-file (e.g. helloworld.oct from the documentation) in a subdir (let's call it 'oct_test', so the path to it is 'test/oct_test')
3. From octave do:

This problem also is true when working with .mex files.

Piotr Held <jsoh425>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-31 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2017-10-24 rik5 Carbon-Copy- => Added jwe
    2017-10-24 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.4