Control: reassign 978768 binutils-x86-64-linux-gnu Control: retitle 978768 gold linker crashing with -Wl,--threads
On Thu, 31 Dec 2020 14:26:39 +0000 Matthias Klose <d...@debian.org> wrote: > [ 94%] Linking CXX executable ../apt-cacher-ng > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/source && /usr/bin/cmake -E > cmake_link_script CMakeFiles/apt-cacher-ng.dir/link.txt --verbose=1 > /usr/bin/c++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now > -Wl,-fuse-ld=gold -Wl,--threads -Wl,--as-needed -Wl,-O1 -Wl,--discard-all > -Wl,--no-undefined -Wl,--build-id=sha1 -Wl,--gc-sections > CMakeFiles/apt-cacher-ng.dir/apt-cacher.cc.o -o ../apt-cacher-ng > -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu: ../libsupacng.so -latomic > -levent -levent_pthreads -levent -lwrap -lz -lbz2 -llzma -lssl -lcrypto > -lsystemd -lpthread -levent_pthreads -lwrap -lz -lbz2 -llzma -lssl -lcrypto > -lsystemd -lpthread > double free or corruption (out) > collect2: fatal error: ld terminated with signal 6 [Aborted] No, it's not about autoconf. It's gold linker crashing when -Wl,--threads is used. The latest version work around this by not adding it but you can easily reproduce the crash by putting it into CXXFLAGS and LDFLAGS. Interestingly it has never happened to me on PCs, maybe the number of cores is the way to trigger it. Best regards, Eduard.