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
Segfault after running test suite with hdf5 1.14.4.2 #2419
Comments
Hi @antonio-rojas, this is likely an issue with HDF5, as opposed to h5py, but I'll let the h5py folks chime in as well in case they've seen similar issues before. It appears to be a problem with a partially-initialized library-internal datatype and could be related to the Float16 support that was added for the 1.14.4 release. Though, I'd expect the library to be failing early on in initialization if that's the case. Are you building HDF5 from source for use with h5py? If so, you could try passing the "--disable-nonstandard-feature-float16" configure option (for Autotools) or "-DHDF5_ENABLE_NONSTANDARD_FEATURE_FLOAT16=OFF" option (for CMake) and see if the segfault still occurs. I'll see about fixing the segfault issue, but would also like to determine what datatype is only getting partially initialized. |
With that configure option, the h5py tests don't even run
|
I see, thanks for testing! I'm going to guess that's likely due to the changes added in https://github.com/h5py/h5py/pull/2406/files to support the Float16 work. It looks like h5py will always attempt to lock the FWIW, HDFGroup/hdf5#4459 should fix the segfault issue here and simply skip the case of trying to unlock a partially-initialized datatype. |
Looks like the fix is incomplete, it's still crashing at
|
Thanks, looks like some more bad assumptions in regards to partially-initialized datatypes. I'll do some more thorough testing and revise. |
The latest version of HDFGroup/hdf5#4459 fixes the issues for me. |
Thanks for testing @antonio-rojas! This should be merged soon and will be in HDF5 1.14.5 currently targeted for a Fall release. Unfortunately that means those wishing to use HDF5 1.14.4.2 with h5py will need that PR as a patch. |
FYI, we've decided to do a patch release of 1.14.4 with the fix in HDFGroup/hdf5#4459 so it can be used with h5py. |
After running the test suite against hdf5 1.14.4.2, we get the attached segfault. All tests pass correctly, the segfault happens after the test suite has finished running.
The text was updated successfully, but these errors were encountered: