possible bug in packet tables

We have been using HDF5 packet tables (and the C++ API) for data logging
purposes. I have attached a standalone program to illustrate what looks
like a bug in versions of HDF5 that have come after version 1.8.14. This
standalone program wrtites 5 records consisting of an int, a double and
a float to a packet table, and then reads them back and prints out the
values. The correct output should be

Packet 0: a=0, b=0, c=1
Packet 1: a=1, b=1, c=0.5
Packet 2: a=2, b=4, c=0.333333
Packet 3: a=3, b=9, c=0.25
Packet 4: a=4, b=16, c=0.2

Versions beyond 1.8.14 (including 1.10.0-alpha0) generate the following
incorrect output

Packet 0: a=0, b=0, c=1
Packet 1: a=2, b=1, c=0.5 ---> the 'a' value is incorrect
Packet 2: a=2, b=4, c=0.333333
Packet 3: a=3, b=9, c=0.25
Packet 4: a=4, b=16, c=0.2

Thanks for any help with this issue.

Best regards

Abhi

testPacketTable.cc (3.5 KB)

Hi Abhi,

Thank you for the report! We reproduced the problem and are looking into it. For your reference, JIRA issue number is HDFFV-9648.

Elena

ยทยทยท

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Dec 30, 2015, at 3:36 PM, Abhinandan Jain <Abhi.Jain@jpl.nasa.gov<mailto:Abhi.Jain@jpl.nasa.gov>> wrote:

We have been using HDF5 packet tables (and the C++ API) for data logging
purposes. I have attached a standalone program to illustrate what looks
like a bug in versions of HDF5 that have come after version 1.8.14. This
standalone program wrtites 5 records consisting of an int, a double and
a float to a packet table, and then reads them back and prints out the
values. The correct output should be

Packet 0: a=0, b=0, c=1
Packet 1: a=1, b=1, c=0.5
Packet 2: a=2, b=4, c=0.333333
Packet 3: a=3, b=9, c=0.25
Packet 4: a=4, b=16, c=0.2

Versions beyond 1.8.14 (including 1.10.0-alpha0) generate the following
incorrect output

Packet 0: a=0, b=0, c=1
Packet 1: a=2, b=1, c=0.5 ---> the 'a' value is incorrect
Packet 2: a=2, b=4, c=0.333333
Packet 3: a=3, b=9, c=0.25
Packet 4: a=4, b=16, c=0.2

Thanks for any help with this issue.

Best regards

Abhi
<testPacketTable.cc<http://testPacketTable.cc>>_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5