-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Loading GDAL (import fiona) triggers Arrow to use the wrong zstd decompression and crash #592
Comments
So both |
Maybe |
@jorisvandenbossche are you going to submit a PR to https://github.com/conda-forge/blosc-feedstock for this? I see they already have an open issue about this since 2018 (conda-forge/blosc-feedstock#18).... |
@gillins sorry for not following up here. |
In any case my reproducible example above is now working, so closing this. |
Thanks @jorisvandenbossche ! |
Copying over the notes from geopandas/geopandas#2278 (comment) about how to reproduce this. I can reproduce the issue with the python packages fiona and pyarrow. But opening it here because I assume it's related to their underlying C++ packages instead (not fully sure though, and maybe I should have opened it in the zstd or arrow-cpp feedstock instead?)
Reproducer
Create an environment with
mamba create -n test python=3.9 pyarrow fiona
. Currently this gives the followingconda list
:And then the following works:
but adding a
import fiona
in front results in a segfault:Observations
Getting a backtrace with
gdb
(putting the above code snippet in a file and running it with gdb) gives:Indicating that Arrow is somehow using
libzstd
that is located relative to the location of fiona. Although that should point to the same libzstd than otherwise would be used by Arrow I suppose.But additional notes:
libzstd
, while when fiona was imported first, it actually uses the lower level decompression functions fromlibblosc
(as shown in the output above).blosc
is now included in the failing env. And it seems that blosc was added relatively recently as a dependency to GDAL: Add (lib)blosc as a dependency #568The text was updated successfully, but these errors were encountered: