Skip to content

Depending upon how compute() is called, python seg faults #2614

Closed
@mayanksuman

Description

@mayanksuman

I have two large dask arrays (hist_data_ua850 and hist_data_hus850). If I want to calculate the product then (hist_data_ua850 * hist_data_hus850).compute() fails with either seg fault or bus error. However, (hist_data_ua850.compute() * hist_data_hus850.compute()) works. (sample code attached
)

The gdb produce following error message for seg fault.

Thread 25 "python3" received signal SIGBUS, Bus error.
[Switching to Thread 0x7fffbf5e3700 (LWP 31903)]
0x00007fffec92a8de in H5FL_fac_malloc ()
   from /home/user/.local/lib/python3.6/site-packages/netCDF4/.libs/libhdf5-d5cdc8a0.so.101.1.0                          

or

Thread 25 "python3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbf5e3700 (LWP 11553)]
0x00007fffeca3cb57 in ?? () from /home/user/.local/lib/python3.6/site-packages/netCDF4/.libs/libhdf5-d5cdc8a0.so.101.1.0

During these seg fault <10% of RAM is being used.

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.candidate.1 python-bits: 64 OS: Linux OS-release: 4.18.0-3-amd64 machine: x86_64 processor: byteorder: little LC_ALL: en_IN.UTF-8 LANG: en_IN.UTF-8 LOCALE: en_IN.UTF-8

xarray: 0.11.0
pandas: 0.23.4
numpy: 1.15.4
scipy: 1.1.0
netCDF4: 1.4.2
h5netcdf: None
h5py: 2.8.0
Nio: None
zarr: None
cftime: 1.0.3.4
PseudonetCDF: None
rasterio: 1.0.2
iris: None
bottleneck: 1.2.1
cyordereddict: None
dask: 1.0.0
distributed: 1.20.2
matplotlib: 3.0.2
cartopy: 0.17.0
seaborn: 0.9.0
setuptools: 40.2.0
pip: 18.0
conda: None
pytest: 3.4.0
IPython: 7.2.0
sphinx: 1.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions