Control: -1 reopen Hallo, * Eduard Bloch [Fri, Mar 15 2019, 09:39:26AM]: > > > (gdb) run -plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so -plug > > > Starting program: /usr/bin/ld.gold -plugin > > > /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so -plug > > > [Thread debugging using libthread_db enabled] > > > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > > > /usr/bin/ld.gold: error: cannot find -lug > > > > I suspect the run line is incomplete. > > That's what "file" told me checking the core dump. > > However, I cannot reproduce it anymore. After updating the toolchain, > the issue seems to have disappeared.
I am sorry, I have to reopen it since the issue is back and is perfectly reproducible. It seems to be a combination of -Wl,--threads and LTO (and maybe a machine with 4+ cores) which triggers segfaulting. It happens on Intel and AMD machines, hardly a hardware problem. The issue was only temporarily covered by local problems (maybe some cmake issue, garbling parameters after updating cmake without clearing the local cache and then by incorrect detection of LTO in the build script). Repro: git clone https://salsa.debian.org/blade/apt-cacher-ng.git cd apt-cacher-ng git checkout d204340833d88424792a42013e310f21aecef39b there: cmake . (that should include: "-- LTO use: ON" and "Performing Test LD_MULTITHREADED - Success") make -j$(nproc) Result: ... collect2: fatal error: ld terminated with signal 11 [Speicherzugriffsfehler], core dumped compilation terminated. make[2]: *** [client/CMakeFiles/in.acng.dir/build.make:84: in.acng] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:91: client/CMakeFiles/in.acng.dir/all] Fehler 2 Best regards, Eduard.

