Closed antonwolfy closed 1 month ago
I can reproduce. The crash is sporadic, sometimes the script runs fine, but chances of it happenning are higher if more RAM is available.
The reason for crash is memory access violation. Could not reproduce the crash with sort
.
The below example crashes with Segmentation fault while running on CPU device:
The callstack from `gdb` output
### Backtrace ```bash (gdb) bt #0 0x00007fffac0554fc in typeinfo name for dpctl::tensor::kernels::sort_detail::merge_adjacent_blocks_from_temp_krnEnvironment details
### conda list ```bash # Name Version Build Channel _libgcc_mutex 0.1 conda_forge intel _openmp_mutex 4.5 2_gnu intel _sysroot_linux-64_curr_repodata_hack 3 h69a702a_14 conda-forge astroid 3.0.3 pypi_0 pypi asttokens 2.4.1 pyhd8ed1ab_0 conda-forge attrs 23.2.0 pyh71513ae_0 conda-forge beautifulsoup4 4.12.3 pyha770c72_0 conda-forge brotli-python 1.1.0 py39h3d6467e_1 intel bzip2 1.0.8 hb9a14ef_9 intel c-ares 1.26.0 hd590300_0 intel ca-certificates 2024.2.2 hbcca054_0 intel certifi 2024.2.2 pyhd8ed1ab_0 intel cffi 1.16.0 py39h7a31438_0 intel cfgv 3.3.1 pypi_0 pypi chardet 5.2.0 py39hf3d152e_1 intel charset-normalizer 3.3.2 pyhd8ed1ab_0 intel click 8.0.4 py39h06a4308_0 intel cmake 3.29.2 hcfe8598_0 conda-forge codespell 2.2.6 pypi_0 pypi colorama 0.4.6 pyhd8ed1ab_0 intel conda 23.3.1 py39h535c160_1 http://satpkgserver.an.intel.com:8081 conda-build 24.1.2 py39hf3d152e_0 conda-forge conda-index 0.4.0 pyhd8ed1ab_0 conda-forge conda-package-handling 2.2.0 pyh38be061_0 intel conda-package-streaming 0.9.0 pyhd8ed1ab_0 intel coverage 5.5 py39h27cfd23_2 intel cpplint 1.6.1 pypi_0 pypi cryptography 42.0.4 py39hd4f0224_0 intel cython 3.0.8 py39h3d6467e_0 intel decorator 5.0.9 pyhd3eb1b0_0 intel dill 0.3.8 pypi_0 pypi distlib 0.3.6 pypi_0 pypi distro 1.9.0 pyhd8ed1ab_0 conda-forge dpcpp-cpp-rt 2024.2.0 intel_473 http://satpkgserver.an.intel.com:8081 dpcpp-sycl-rt 2024.2.0 intel_473 http://satpkgserver.an.intel.com:8081 dpcpp_cpp_rt 2024.2.0 intel_473 http://satpkgserver.an.intel.com:8081 dpcpp_impl_linux-64 2024.2.0 intel_473 http://satpkgserver.an.intel.com:8081 dpcpp_linux-64 2024.2.0 intel_473 http://satpkgserver.an.intel.com:8081 dpctl 0.17.0dev0 py39h15de555_310 dppy/label/dev dpnp 0.15.0.dev1+44.gdd6e32285c dev_0The example was based on numpy code where the same logic works without any issue.