https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107078
Bug ID: 107078
Summary: LTO is causing that firebird build is core dumping
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: kloczko.tomasz at gmail dot com
CC: marxin at gcc dot gnu.org
Target Milestone: ---
firebird 4.0.2 and gcc-c++ 12.2.1-2 from fedora rawhide.
Build is crashing with sigsegv on execution of the linked binary
Quote from firebird maintainer comment:
"That's almost for sure (99%) pure virtual function call. Usual bug for
dtor/ctor - but I doubt half-constructed node was passed into node
copier. I try to lower compiler optimization level first of all in such
cases (taking into an account that this stuff builds and works OK for
some years)."
More details is in https://github.com/FirebirdSQL/firebird/issues/7308
I found that fedora spec file has disabled LTO as well with comment
# firebird is mis-compiled when LTO is enabled. A root
# cause analysis has not yet been completed. Reported upstream.
# Disable LTO for now