#27 Qt5: -reduce-relocations + lto crashes
Closed: Fixed 3 years ago by rdieter. Opened 3 years ago by rdieter.

In short, appears Qt5 when built with -reduce-relocations option in combination with the recently introduced fedora lto feature,
https://fedoraproject.org/wiki/LTOByDefault

Can cause crashes in Qt applications. Appears that opensuse has (at least temporarily) removed -reduce-relocations Qt5 flag as a workaround, we should probably do the same.

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1900527#c0
https://bugreports.qt.io/browse/QTBUG-86173


Hrm, looking at qt5-qtbase.spec, we already don't use -reduce-relocations

Digging deeper

Looks like if not explicitly specified, the feature is auto-detected, adding -no-reduce-relocations explicitly,
https://src.fedoraproject.org/rpms/qt5-qtbase/c/d4ab2137a55708d645fcff5ddf92630b8a5de947?branch=master

Metadata Update from @rdieter:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata