bugGNU Octave - Bugs: bug #45225, HDF5 I/O broken for integer...

 
 

bug #45225: HDF5 I/O broken for integer variables

Submitter:  None
Submitted:  Mon 01 Jun 2015 10:45:32 AM UTC
   
 
Category:  Libraries Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Markus Grabner Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jun 2015 01:30:31 PM UTC, comment #5: 

Fixed this regression on the stable branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/d54aa96abadf

This fix will be part of the 4.0.1 bug fix release.

Mike Miller <mtmiller>
Group Member
Tue 02 Jun 2015 04:09:38 PM UTC, comment #4: 

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Group administrator
Mon 01 Jun 2015 11:58:12 AM UTC, comment #3: 

And I'm pretty sure this is due to

http://hg.savannah.gnu.org/hgweb/octave/rev/09ed6f7538dd

in which HDF5_SAVE_TYPE used to be overridden for each of the integer types but was lost in this change.

Mike Miller <mtmiller>
Group Member
Mon 01 Jun 2015 11:44:15 AM UTC, comment #2: 

This bug applies to all integer types above one byte: int16, uint16, int32, uint32, int64, uint64.

Mike Miller <mtmiller>
Group Member
Mon 01 Jun 2015 11:38:38 AM UTC, comment #1: 

Thanks for your bug report, confirmed here on GNU/Linux, marking as a regression.

Mike Miller <mtmiller>
Group Member
Mon 01 Jun 2015 10:45:32 AM UTC, original submission:  

Writing/reading integer variables to/from HDF5 files worked in octave-3.8.2, but is broken in octave-4.0.0 (tested with the final release and not rc4, but 4.0.0 is not yet in the bug report combo box). The issue appears both under Linux and Windows.

This is demonstrated by the attached scripts. Running one in octave-3.8 and the other one in octave-4.0 gives incorrect results:

[octave-3.8]

>> test_hdf5_save

x = 123456789

[octave-4.0]

>> test_hdf5_load

x = 255

The other way round is also incorrect:

[octave-4.0]

>> test_hdf5_save

x = 123456789

[octave-3.8]

>> test_hdf5_load

x = 21

(note that 123456789 == 0x75BCD15, and that its last two hex digits 0x15 == 21, which is the value read by octave-3.8)

Only when both scripts are run in octave-3.8, we get correct results:

[octave-3.8]

>> test_hdf5_save

x = 123456789

>> test_hdf5_load

x = 123456789

The HDF viewer provided by the HDF group (https://www.hdfgroup.org/products/java/hdfview) confirms that the values read and written by octave-3.8 are correct in the above example.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34137:  test_hdf5_save.m added by None (61B - application/octet-stream - scripts to demonstrate broken HDF5 I/O for integer variables in octave-4.0.0)
file #34138:  test_hdf5_load.m added by None (36B - application/octet-stream - scripts to demonstrate broken HDF5 I/O for integer variables in octave-4.0.0)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-10 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-06-02 jwe Release4.0.0-rc4 4.0.0
    2015-06-01 mtmiller SummaryHDF5 I/O broken for int32 variables HDF5 I/O broken for integer variables
    2015-06-01 mtmiller CategoryInterpreter Libraries
        Severity3 - Normal 4 - Important
        Item GroupIncorrect Result Regression
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any
    2015-06-01 None Attached File- Added test_hdf5_save.m, #34137
        Attached File- Added test_hdf5_load.m, #34138

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code