-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Segmentation fault: H5Pget_vol_cap_flags when using the Passthru VOL #2417
Comments
To use the pass-through VOL correctly, you need to specify the underneath VOL as the following example. Otherwise, you'll run into problems. The library should do better than having a seg fault, e.g. returning an error message. But that's another issue. If you ran into the similar problem with another VOL, please send it to us for debugging.
|
…cted places, make sure the underneath VOL ID is specified.
@raylu-hdf Thank you for the answer! I'd like to confirm my understanding is correct that 1.as HDF5 users, we should (always?) avoid passing I also have another question regarding the provided fix: as long as I use |
The error message for
|
1.as HDF5 users, we should (always?) avoid passing NULL to the third argument of H5Pset_vol. If this is the case, then I'll create an issue about vol-tests' initialization in its repo.
I also have another question regarding the provided fix: as long as I use H5VL_NATIVE, the program fails directly. I am using HDF5 1.14.0.
|
…ces, make sure the underneath VOL ID is specified. (#2475) * GitHub #2417: to avoid the pass-through VOL failing in unexpected places, make sure the underneath VOL ID is specified. * Committing clang-format changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
My PR (#2475) was merged into the develop branch: to avoid the pass-through VOL failing in unexpected places, make sure the underneath VOL ID is specified. This issue can be closed if the user has no further question or issue. |
…cted places, make sure the underneath VOL ID is specified. (HDFGroup#2475) * GitHub HDFGroup#2417: to avoid the pass-through VOL failing in unexpected places, make sure the underneath VOL ID is specified. * Committing clang-format changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Describe the bug
We came across a segmentation fault when running the vol-tests using the Passthru VOL provided in HDF5 1.14.0. The same segmentation fault will also occur if other VOLs are used. (However, using the native VOL won't give any issue.)
The test program provided below (test.c) mimics the behavior of the vol-tests and can reproduce the problem.
Click here to see test.c:
Click here to see a Makefile:
make
to compile.make run
to run the test program using Passthru VOL.Click here to see gdb output:
Expected behavior
No segmentation fault is expected.
Platform (please complete the following information)
The text was updated successfully, but these errors were encountered: