From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D2B13854816; Thu, 25 Feb 2021 14:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D2B13854816 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/25398] [dwz, fixed-needs-testcase] CU referenced from PU Date: Thu, 25 Feb 2021 14:50:51 +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: NEW 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: Thu, 25 Feb 2021 14:50:51 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25398 --- Comment #4 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > Assert that catches the situation: > ... > diff --git a/dwz.c b/dwz.c > index 0087ac7..4188e1a 100644 > --- a/dwz.c > +++ b/dwz.c > @@ -10938,6 +10938,8 @@ write_die (unsigned char *ptr, dw_cu_ref cu, > dw_die_ref die, > { > dw_cu_ref refdcu =3D die_cu (refd); > value =3D refd->u.p2.die_new_offset; > + assert (IMPLIES (cu->cu_kind =3D=3D CU_PU, > + die_cu (refd)->cu_kind =3D=3D CU_P= U)); > assert (value && refdcu->cu_kind !=3D CU_ALT); > if (t->attr[j].form =3D=3D DW_FORM_ref_addr) > { > ... https://sourceware.org/pipermail/dwz/2021q1/000976.html --=20 You are receiving this mail because: You are on the CC list for the bug.=