From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 569993858D29; Mon, 15 Mar 2021 12:27:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 569993858D29 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27578] --odr mode fails for a Libreoffice shared library Date: Mon, 15 Mar 2021 12:27:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 12:27:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27578 --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > With --no-import-optimize, we run instead into: > ... > $ dwz ./libvclplug_genlo.so.debug -o libvclplug_genlo.so.debug.z -lnone > --odr --no-import-optimize > dwz: /home/vries/dwz/dwz.git/dwz.c:12685: write_die: Assertion `IMPLIES > (cu->cu_kind =3D=3D CU_PU, die_cu (refd)->cu_kind =3D=3D CU_PU)' failed. > Aborted > ... Fixed by: ... diff --git a/dwz.c b/dwz.c index 54b4bda..fcbc3aa 100644 --- a/dwz.c +++ b/dwz.c @@ -8433,7 +8433,12 @@ merged_singleton (dw_die_ref die) { case ODR_DEF: if (res) - return NULL; + { + if (die_cu (res) =3D=3D die_cu (d)) + continue; + else + return NULL; + } else res =3D d; break; ... But that doesn't fix the assert reported in comment 0. --=20 You are receiving this mail because: You are on the CC list for the bug.=