Bug 1708780 - Don't use -g3 when compiling grub2
Summary: Don't use -g3 when compiling grub2
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-10 20:32 UTC by Sergio Durigan Junior
Modified: 2019-10-15 06:19 UTC (History)
3 users (show)

Fixed In Version: grub2-2.02-88.fc31
Clone Of:
Environment:
Last Closed: 2019-10-15 06:19:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Don't use -g3 when compiling grub2 (1.09 KB, patch)
2019-05-10 20:34 UTC, Sergio Durigan Junior
no flags Details | Diff

Description Sergio Durigan Junior 2019-05-10 20:32:58 UTC
Hi,

There is an existing bug (probably on rpm-build's debugedit) which introduces a problem on .debug_macro sections in objfiles and causes GDB to segfault when trying to extract the DWARF index (via the gdb-add-index script).

This bug manifests when a binary is built using GCC's -g3 flag, which is the case with grub2.  The workaround for it is to just build it with -g, which is also the recommended flag for building Fedora packages.

I will provide a patch that does that.

Related: Bug 1708192 and Bug 1535174.

Thanks.

Comment 1 Sergio Durigan Junior 2019-05-10 20:34:50 UTC
Created attachment 1566798 [details]
Don't use -g3 when compiling grub2

Comment 2 Javier Martinez Canillas 2019-06-18 10:30:56 UTC
(In reply to Sergio Durigan Junior from comment #1)
> Created attachment 1566798 [details]
> Don't use -g3 when compiling grub2

Thanks a lot for the patch. I've picked it and built grub2-2.02-88.fc31 that includes this.

Comment 3 Ben Cotton 2019-08-13 19:10:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.


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