HDFGroup / HDFGroup/hdf5

Double call of H5Eset_auto's callback function when using native-pass-through VOL

Open
#4,137 0 comments 0 reactions 1 assignee Assigned to @mattjala View on GitHub
Component - C Library Component - Testing
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Describe the bug**

When a user-defined callback is registered using H5Eset_auto and H5Fcreate fails (there might be other use cases), the callback function is called twice.

**Expected behavior**
I would not expect the function to be called twice, but if this is expected, then it should be documented.

**Platform (please complete the following information)**
- HDF5 version (if building from a maintenance branch, please include the commit hash) 1.14.x, develop
- Discovered in Fortran's "test_error" when using make check check-passthrough-vol since it increments a value every time the callback is called.

**Additional context**
The callback function is called only once if a fapl is created and passed to H5Fcreate. The Fortran test now does this, so the test passes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.