bugGNU Octave - Bugs: bug #42429, @ftp/dir crashes Octave


bug #42429: @ftp/dir crashes Octave

Submitted by:  Allan Jacobs <allanjacobs>
Submitted on:  Mon 26 May 2014 03:54:56 PM UTC  
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: ConfirmedAssigned to: Mike Miller <mtmiller>
Originator Name: allanjacobsOpen/Closed: Open
Release: 3.8.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 08 Aug 2016 06:04:51 PM UTC, comment #3:

Downgrading severity to 3, this bug will not gate the 4.2 release.

Rik <rik5>
Project Administrator
Tue 29 Mar 2016 04:47:04 PM UTC, comment #2:

I hit this again recently and traced it a bit. The most obvious problem seems to be that the curl_transfer class does not have any way to recover from errors. When a libcurl error occurs, it simply returns and leaves the class in an inconsistent state. Changing to a nonexistent directory should probably throw an error and restore the state of the connection to the last valid directory. No patch yet, but I'll assign this to me with the intention of working on it soon-ish (but feel free to take it from me if someone wants to work on it).

Mike Miller <mtmiller>
Project AdministratorIn charge of this item.
Thu 29 May 2014 04:17:53 PM UTC, comment #1:

Confirmed. I traced this back through gdb and the segfault is happening in curl library code. It's possible that Octave is not using the library correctly, but it appears to be the case that the library itself is fragile.

Rik <rik5>
Project Administrator
Mon 26 May 2014 03:54:56 PM UTC, original submission:

@ftp/dir applied to a directory that does not exist crashes Octave.

Allan Jacobs <allanjacobs>


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

Attach File(s):

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 mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by allanjacobs (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Aug 2016 06:04:51 PM UTCrik5Severity4 - Important=>3 - Normal
    Fri 01 Jul 2016 05:28:20 PM UTCrik5Severity3 - Normal=>4 - Important
    Tue 29 Mar 2016 04:47:04 PM UTCmtmillerAssigned toNone=>mtmiller
    Thu 29 May 2014 04:17:53 PM UTCrik5StatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1