H5Ovisit2 change of behavior between 1.10.11 and v1.14.4.3 #4941
Labels
Component - C Library
Core C library issues (usually in the src directory)
Confirmed
Priority - 1. High 🔼
These are important issues that should be resolved in the next release
Type - Bug / Bugfix
Please report security issues to [email protected] instead of creating an issue on GitHub
Milestone
Platform (please complete the following information)
I noticed that there is a change of behavior in H5Ovisit2 between HDF5 versions 1.10.11 and 1.14.4.3.
I wanted to check if this is intended behavior, or a bug introduced in any of the versions after 1.10.11.
I also see the same behavior with H5Ovisit_by_name2.
We are also compiling the application with the compatibility flag “-DH5_USE_18_API” to preserve 1.8 function mapping.
I have created a simplified reproduction of the tests on our end and am attaching it. The h5 file I used for the repro can be found here.
Output from 1.10.11:
H5Ovisit_func
.
144115188075855873
H5Ovisit_func
g1
144115188075855873
H5Ovisit_func
g1/g2
144115188075855873
H5Ovisit_func
g1/g2/myDataset
144115188075855873
Status: 0
Output from 1.14.4.3
H5Ovisit_func
.
144115188075855873
Status: 0
Even though the H5Ovisit2 documentation mentions it is “a recursive iteration function to visit the object obj_id and, if obj_id is a group, all objects in and below it in an HDF5 file,…”, for 1.14.4.3, it seems like the function visits only the root group and not all the nested groups.
The text was updated successfully, but these errors were encountered: