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

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

[Octave-bug-tracker] [bug #43575] load( fileDat ); reports no error when


From: anonymous
Subject: [Octave-bug-tracker] [bug #43575] load( fileDat ); reports no error when fileDat is malformed.
Date: Tue, 11 Nov 2014 10:48:26 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

URL:
  <http://savannah.gnu.org/bugs/?43575>

                 Summary: load( fileDat ); reports no error when fileDat is
malformed.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 11 Nov 2014 10:48:25 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Jens
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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):


# echo 1 2 > testfile
# echo 3 >> testfile
# octave-3.8.2 --silent
octave:1> load( 'testfile' );
octave:2>


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

Expected (error situation correctly reported):


# echo 1 2 > testfile
# echo 3 >> testfile
# octave-3.2.4 --silent
octave:1> load( 'testfile' );
error: load: testfile: inconsistent number of columns near line 2
error: load: unable to extract matrix size from file `testfile'
octave:1>






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43575>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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