Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 645304

Summary: media-sound/lilypond-2.18.2 segfaults when built with gcc 6 optimization
Product: Gentoo Linux Reporter: Robert Spillner <trent2>
Component: Current packagesAssignee: Tim Harder <radhermit>
Status: RESOLVED OBSOLETE    
Severity: normal CC: karl.j.linden, proxy-maint, scheme
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/lilypond/lilypond/commit/b0dce76daf27721ba157cd2ac5d7662d4c8d75f8
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Robert Spillner 2018-01-21 23:19:15 UTC
Created attachment 515796 [details]
emerge --info

For a more detailed description of this bug, see https://bugzilla.redhat.com/show_bug.cgi?id=1359215

I could reproduced the bug. Enabling debugging symbols affirms that it's actually the cited problem. 

After applying the proposed patch from the cited bug report the segfault was gone.

Alternatively, this can be fixed by using -fno-delete-null-pointer-checks in CXXFLAGS.

The proposed fix has been incorporated by upstream for 2.19.46 (https://github.com/lilypond/lilypond/commit/b0dce76daf27721ba157cd2ac5d7662d4c8d75f8) and can be applied to 2.18.2, too. It's only a change in two lines of code.
Comment 1 Robert Spillner 2018-03-27 09:02:06 UTC
Since lilypond-2.19.80 is stable now the bug (though unconfirmed) is fixed anyway, so this can be closed.