-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Segmentation fault 139 (SIGSEGV) #8410
Comments
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
This is definitely not intentional, segmentation faults always mean there's a bug somewhere. See #7079, #7549, #7879, and #8289 for related issues, and in particular the comments in #8289 might point us in the right direction to finally fix this. As a workaround, you might be able to pin either |
I appreciate these are quite difficult to debug. It is quite unlikely to be a problem with xarray itself, since xarray only python code — even though xarray is wrapping other libraries. It's worth looking through the other issues and seeing whether those are similar. Unless there's an MCVE of something that's not in those issues, we don't generally leave issues open, so in that case we can close this in time. |
Closing but feel free to reopen with an MCVE |
What happened?
While opening a set of netCDF files in a for loop, using xr.open_dataset().load(), I get a segmentation error (nr. 139). Please see code example below:
The error is shown in Linux/Mac after running my Python code, whereas Windows seems to be masking it. I was able to catch that on Windows by launching my code as:
In this way, KO gets printed and the segmentation fault is now noticeable.
I managed to fix the issue by using a second variable (called reg_pred) in addition to region_pred:
What did you expect to happen?
I don't know if the issue I described is something that the developers made on purpose. Personally, I think it is an issue and that's why I am reporting it. If it is not an issue, I would like to get a clarification in order to understand what am I missing.
Thank you in advance.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
xarray: 2023.8.0
pandas: 2.1.0
numpy: 1.26.0
scipy: 1.11.2
netCDF4: 1.6.4
pydap: None
h5netcdf: 1.2.0
h5py: 3.9.0
Nio: None
zarr: None
cftime: 1.6.2
nc_time_axis: None
PseudoNetCDF: None
iris: None
bottleneck: None
dask: 2023.10.0
distributed: 2023.10.0
matplotlib: 3.8.0
cartopy: None
seaborn: None
numbagg: None
fsspec: 2023.9.1
cupy: None
pint: None
sparse: None
flox: None
numpy_groupies: None
setuptools: 68.2.2
pip: 23.2.1
conda: None
pytest: None
mypy: None
IPython: 8.15.0
sphinx: None
The text was updated successfully, but these errors were encountered: