From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB81B3858D39; Wed, 28 Sep 2022 21:51:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB81B3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664401876; bh=fCygnFeAHbBFFgN0NA8EVmePbfIGp34xoGfy33T39ms=; h=From:To:Subject:Date:From; b=Ux0L3RJ+Cp8G+qHVUnptufa9hwzyr8vMMOIpOgaNn3QNTllhHwTLMA6jvIu36vQ67 O93A6lTnwEn8RfPlwRTl98NPjw52LOWt4TkufaiKBcrqajYCuAfNOReDqrGW1WubyX H61wL9qhaps6F9sP/6yVfZZQkGeI5Jr+IIRJXRDc= From: "kloczko.tomasz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/107078] New: LTO is causing that firebird build is core dumping Date: Wed, 28 Sep 2022 21:51:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kloczko.tomasz at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107078 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=