bugGNU Octave - Bugs: bug #43575, load( fileDat ); reports no error...

 
 

bug #43575: load( fileDat ); reports no error when fileDat is malformed.

Submitted by:  None
Submitted on:  Tue 11 Nov 2014 10:48:25 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: JensOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 06 Dec 2014 03:46:33 PM UTC, comment #2:

I fixed this by issuing an error if the file format cannot be determined. It's not quite the same error message as before, but it will produce an error which will be enough for your try/catch code. I checked the change in on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/616f2b22787b). If there is a 3.8.3 bug fix release it will be a part of that. Otherwise it will be released in the 4.0 version of Octave. If you need the fix immediately you can always build from Mercurial sources.

Rik <rik5>
Project Administrator
Wed 12 Nov 2014 03:53:36 PM UTC, comment #1:

The regression happened between releases 3.6.4 and 3.8.0 and is present in all versions going forward including the development branch. Marking bug as Confirmed.

Rik <rik5>
Project Administrator
Tue 11 Nov 2014 10:48:25 AM UTC, original submission:

In one of our scripts, we were caught by the same bug as discussed here (but I could not find it reported):

http://octave.1599824.n4.nabble.com/loading-matrix-no-error-but-undefined-variable-td4662859.html

We use load in a try-catch construct in a loop, relying on load to report errors properly.

Also for interactive usage, it must be confusing to miss proper error reporting.

Buggy (since error situation not reported):

Known workaround: load( '-ascii', 'testfile' );

Expected (error situation correctly reported):

Anonymous

 

(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 (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 06 Dec 2014 03:58:20 PM UTCrik5Open/ClosedOpen=>Closed
    Sat 06 Dec 2014 03:46:33 PM UTCrik5StatusConfirmed=>Fixed
    Wed 12 Nov 2014 03:53:36 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1