[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1041003: clang-15: Crash in PowerPC DAG->DAG Pattern Instruction Selection



Package: clang-15
Version: 1:15.0.7-6
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz, debian-ai@lists.debian.org

Dear Maintainer,

On ppc64el, the clang compiler crashed on buildd [1] during the
compilation of test_block_sort.cpp in the rocprim package. We're only
compiling HIP programs for ppc64el on a best-effort basis, as it is not
an officially supported architecture upstream. Nevertheless, a compiler
crash seemed to be worth reporting. I've reproduced this problem on my
local machine in a QEMU VM.

There were also linking errors related to half-floats in the build log
(__truncdfhf2), but that is unrelated. I fixed that bug in rocm-hipamd
locally before reproducing the crash.

The full log is linked below, but I'll include a snippet inline:

Stack dump:
0.	Program arguments: /usr/lib/llvm-15/bin/clang -cc1
-triple powerpc64le-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa
<....>
/<<PKGBUILDDIR>>/test/rocprim/test_block_sort.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/<<PKGBUILDDIR>>/test/rocprim/test_block_sort.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
'@_ZN53RocprimBlockSortTestsFloating_CustomSortKeyValue_TestI12block_paramsI6__halfS1_Lj64EEE8TestBodyEv'

[1]: https://buildd.debian.org/status/fetch.php?pkg=rocprim&arch=ppc64el&ver=5.3.3-6&stamp=1689203881&raw=0

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 6.3.0-1-powerpc64le (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages clang-15 depends on:
ii  binutils                2.40.90.20230705-1
ii  libc6                   2.37-5
ii  libc6-dev               2.37-5
ii  libclang-common-15-dev  1:15.0.7-6
ii  libclang-cpp15          1:15.0.7-6
ii  libclang1-15            1:15.0.7-6
ii  libgcc-12-dev           12.3.0-6
ii  libgcc-s1               13.1.0-8
ii  libllvm15               1:15.0.7-6
ii  libobjc-12-dev          12.3.0-6
ii  libstdc++-12-dev        12.3.0-6
ii  libstdc++6              13.1.0-8
ii  llvm-15-linker-tools    1:15.0.7-6

Versions of packages clang-15 recommends:
ii  llvm-15-dev  1:15.0.7-6
ii  python3      3.11.4-5

Versions of packages clang-15 suggests:
pn  clang-15-doc  <none>
pn  wasi-libc     <none>

-- no debconf information


Reply to: