#1064368 python-xarray: intermittent segfault in test_open_mfdataset_manyfiles[netcdf4-20-True-*-5] #1064368
- Package:
- python3-xarray
- Source:
- python3-xarray
- Submitter:
- Rebecca N. Palmer
- Date:
- 2026-10-01 17:37:07 UTC
- Severity:
- normal
- Tags:
xarray sometimes (~10% of the time) segfaults in tests/test_backends.py::test_open_mfdataset_manyfiles, usually [netcdf4-20-True-None-5] but sometimes [netcdf4-20-True-5-5]. This has happened in both Python 3.11 and 3.12, and on various architectures: https://ci.debian.net/packages/p/python-xarray/testing/amd64/43068287/ https://ci.debian.net/packages/p/python-xarray/testing/armhf/42545225/ https://ci.debian.net/packages/p/python-xarray/testing/s390x/43076980/ https://ci.debian.net/packages/p/python-xarray/testing/ppc64el/42673240/
The above upstream report suggests that this is because netcdf-python is no longer thread-safe. The 3 random-autopkgtest-fail bugs (this, #1064326 and #1064370) together seem to be more common in pandas 2. It's possible that some of them are actually the same underlying bug.