https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87428
Romain Geissler <romain.geissler at amadeus dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |romain.geissler at amadeus dot com --- Comment #4 from Romain Geissler <romain.geissler at amadeus dot com> --- Hi, The same issue happens with gcc 8 as well: /workdir/src/gdb-8.2/gdb/dwarf2read.c:9715: internal-error: void dw2_add_symbol_to_list(symbol*, pending**): Assertion `(*listhead) == NULL || (SYMBOL_LANGUAGE ((*listhead)->symbol[ 0]) == SYMBOL_LANGUAGE (symbol))' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) [answered Y; input not from terminal] I could validate on my side that applying this patch + rebuilding all LTO-enabled libraries participating into the final link of my binary did solve this issue. Cheers, Romain