#1118478 hipcc: rocm-llvm crashes with 'double free or corruption (!prev)' when building rccl-6.4.4

Package:
hipcc
Source:
hipcc
Description:
C++ Runtime API and Kernel Language for AMD and NVIDIA GPUs
Submitter:
Tim Flink
Date:
2025-10-20 22:39:02 UTC
Severity:
normal
#1118478#5
Date:
2025-10-20 22:27:53 UTC
From:
To:
Dear Maintainer,

I'm working to update the rccl package [1] to 6.4.4 (my WIP package is [2]) but building rccl with the recently updated rocm-llvm produces a crash when linking:


double free or corruption (!prev)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Running pass 'CallGraph Pass Manager' on module 'ld-temp.o'.
1.      Running pass 'Machine Instruction Scheduler' on function '@_ZN12_GLOBAL__N_113runTreeUpDownIj13FuncPreMulSumIjE11ProtoSimpleILi1ELi1ELi2ELi0ELi0EELi2EEEviiP15ncclDevWorkColl'
double free or corruption (!prev)
clang++-21: error: unable to execute command: Aborted
clang++-21: error: amdgcn-link command failed due to signal (use -v to see invocation)
Debian clang version 21.1.3 (1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin


[1] https://salsa.debian.org/rocm-team/rccl
[2] https://salsa.debian.org/tflink/rccl/-/tree/debian/experimental?ref_type=heads

This machine is a VM, the build is being done in sbuild w/ unshare and a chroot that was updated on October 20, 2025.