Failure when using array of array of compound with vlen #3246
Labels
Component - C Library
Core C library issues (usually in the src directory)
Priority - 2. Medium ⏹
It would be nice to have this in the next release
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
UNCONFIRMED
New issues are unconfirmed until a maintainer can duplicate them
Describe the bug
When I try to create a dataset with a an array containing an array containing a compound type with a variable-length field, I get a failure when reading the dataset. I get the same error when using h5dump. The datatype (as formatted by h5dump) is:
It might be that the data is not written correctly and the file is corrupted. Here is some C++ that shows the issue:
On a debug build, the assertion failure on reading is
On a release build, the error stack looks like:
Some other observations:
Expected behavior
We should be able to read and write this kind of data without errors.
Platform (please complete the following information)
The text was updated successfully, but these errors were encountered: