Bug#1118478: hipcc: rocm-llvm crashes with 'double free or corruption (!prev)' when building rccl-6.4.4
Package: hipcc
Version: 7.0.1+dfsg-1
Severity: important
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.
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.48+deb13-amd64 (SMP w/32 CPU threads; PREEMPT)
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 hipcc depends on:
ii clang-21 1:21.1.3-1
ii clang-tools-21 1:21.1.3-1
ii libamdhip64-dev 5.7.1-7
ii libc6 2.41-12
ii libclang-rt-21-dev 1:21.1.3-1
ii libgcc-s1 15.2.0-4
ii libstdc++6 15.2.0-4
ii lld-21 1:21.1.3-1
ii llvm-21 1:21.1.3-1
ii rocm-device-libs-21 7.0.1+dfsg-1
ii rocminfo 6.4.3-1
hipcc recommends no packages.
hipcc suggests no packages.
Reply to: