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: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: ConfirmedAssigned to: None
Originator Name: Piotr HeldOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 Oct 2017 08:34:53 PM UTCrik5Carbon-Copy-=>Added jwe
    Tue 24 Oct 2017 08:28:03 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1