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

 
 

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

Submitted by:  None
Submitted on:  Mon 01 Jun 2015 10:45:32 AM UTC  
 
Category: LibrariesSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Markus GrabnerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project Administrator
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>
Project 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>
Project Administrator
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>
Project Administrator
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>
Project Administrator
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 File(s):
   
   
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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (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 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Jun 2015 01:30:31 PM UTCmtmillerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 02 Jun 2015 04:09:38 PM UTCjweRelease4.0.0-rc4=>4.0.0
    Mon 01 Jun 2015 11:44:15 AM UTCmtmillerSummaryHDF5 I/O broken for int32 variables=>HDF5 I/O broken for integer variables
    Mon 01 Jun 2015 11:38:38 AM UTCmtmillerCategoryInterpreter=>Libraries
      Severity3 - Normal=>4 - Important
      Item GroupIncorrect Result=>Regression
      StatusNone=>Confirmed
      Operating SystemMicrosoft Windows=>Any
    Mon 01 Jun 2015 10:45:32 AM UTCNoneAttached File-=>Added test_hdf5_save.m, #34137
      Attached File-=>Added test_hdf5_load.m, #34138

    Back to the top


    Powered by Savane 3.1-cleanup1