Bug 1663875

Summary: gdb crashes when building Firefox with LTO
Product: [Fedora] Fedora Reporter: Martin Stransky <stransky>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: jan.kratochvil, keiths, kevinb, pmuldoon, sergiodj, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-08 21:08:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Stransky 2019-01-07 09:24:05 UTC
Description of problem:
Firefox in Fedora is built with PGO/LTO enabled. Gdb fails to extract debuginfo from it (perhaps?) and crashes:

extracting debug info from /builddir/build/BUILDROOT/firefox-64.0-5.fc29.x86_64/usr/lib64/firefox/liblgpllibs.so
../../gdb/dwarf2read.c:9730: 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]
BUILDSTDERR: This is a bug, please report it.  For instructions, see:
BUILDSTDERR: <http://www.gnu.org/software/gdb/bugs/>.
../../gdb/dwarf2read.c:9730: 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.


Version-Release number of selected component (if applicable):
gdb-8.2-5.fc29.x86_64

Steps to Reproduce:
1. get firefox-64.0-5 from https://koji.fedoraproject.org/koji/taskinfo?taskID=31808300
2. rpmbuild -ba firefox
3. see the crash in build log

Actual results:
Full build log:
https://kojipkgs.fedoraproject.org//work/tasks/8300/31808300/build.log

Comment 1 Keith Seitz 2019-01-08 21:08:51 UTC
Thanks for the report.  We're aware of this bug and tracking its progress on Bug 1560010, therefore I'm closing this one as a duplicate.  Feel free to subscribe to the other bug if you want to follow its progress.

*** This bug has been marked as a duplicate of bug 1560010 ***