bugGNU Octave - Bugs: bug #32431, save command error on 3.3.90-3.4.0...

 
 

bug #32431: save command error on 3.3.90-3.4.0 (on MinGW)

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Fri 11 Feb 2011 09:35:15 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Feb 2012 01:39:03 PM UTC, comment #3: 

Seems to work properly in 3.6.0 on MinGW.

Closing this report

Philip Nienhuis <philipnienhuis>
Group Member
Sat 12 Feb 2011 06:27:46 AM UTC, comment #2: 

You write:

"Something might be wrong when splitting 3.4 branch source from the development source."

I recommmend that you do a diff to see what is different.

The release-3-4-x branch contains nearly every patch that has been applied to the default branch.  So there should not be much difference between the two.

I don't see any test failures on my Debian system with 3.4.0 or the current development sources.



John W. Eaton <jwe>
Group administrator
Fri 11 Feb 2011 09:41:37 PM UTC, comment #1: 

error: load: file `matrix.ascii' seems to be empty!
error: load: unable to extract matrix size from file `matrix.ascii'

I have confirmed that matrix.ascii is really empty.

Tatsuro MATSUOKA <tmacchant>
Fri 11 Feb 2011 09:35:15 PM UTC, original submission:  

Hello

Octave 3.3.90 to 3.4.0 give much number of errors than Octave-dev source.

One of the example,


>>>>> processing d:\usr\Tatsu\mingwhome\octaves\octavesrc\octave-3.4.0\src\ov-fcn-handle.cc
  ***** test
 a = 2;
 f = @(x) a + x;
 g = @(x) 2 * x;
 hm = @version;
 hdld = @svd;
 hbi = @log2;
 f2 = f;
 g2 = g;
 hm2 = hm;
 hdld2 = hdld;
 hbi2 = hbi;
 modes = {"-text", "-binary"};
 if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_HDF5")))
   modes(end+1) = "-hdf5";
 endif
 for i = 1:numel (modes)
   mode = modes{i};
   nm = tmpnam();
   unwind_protect
     save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
     clear f2 g2 hm2 hdld2 hbi2
     load (nm);
     assert (f(2),f2(2));
     assert (g(2),g2(2));
     assert (g(3),g2(3));
     unlink (nm);
     save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
   unwind_protect_cleanup
     unlink (nm);
   end_unwind_protect
 endfor
!!!!! test failed
load: file `C:/Users/TMACCH~1/AppData/Local/Temp\oct-22' seems to be empty!


On 3.3.90-3.4.0 (on MinGW) , save command does not work correctly.


 matrix1 = rand(100, 2);
 save -ascii matrix.ascii matrix1
 matrix2 = load ("matrix.ascii");


On octave-3.4.0 (MinGW),
error: load: file `matrix.ascii' seems to be empty!
error: load: unable to extract matrix size from file `matrix.ascii'

While for octave-devlopment,
This gives no error.

I do not figure out why 3.3.9x-3.4.0 fails in save command.
Something might be wrong when splitting 3.4 branch source from the development source.

Is this phenomenon MinGW specific?
  
Any suggestions?

Regards

Tatsuro

Tatsuro MATSUOKA <tmacchant>

 

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

Attach Files:
   
   
Comment:
   

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 philipnienhuis (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by tmacchant (Submitted the item)
  • -email is unavailable- added by tmacchant
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-03 philipnienhuis Open/ClosedOpen Closed
    2011-02-11 tmacchant Carbon-Copy- Added "benjamin lindner" <bjmldn@gmail.com>

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code