Bug 1663875 - gdb crashes when building Firefox with LTO
Summary: gdb crashes when building Firefox with LTO
Keywords:
Status: CLOSED DUPLICATE of bug 1560010
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sergio Durigan Junior
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-07 09:24 UTC by Martin Stransky
Modified: 2019-01-08 21:08 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-08 21:08:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.