From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56905 invoked by alias); 16 Jan 2020 10:23:33 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 56858 invoked by uid 48); 16 Jan 2020 10:23:29 -0000 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/25398] CU referenced from PU Date: Wed, 01 Jan 2020 00:00:00 -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-SW-Source: 2020-q1/txt/msg00022.txt https://sourceware.org/bugzilla/show_bug.cgi?id=3D25398 --- Comment #1 from Tom de Vries --- 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_PU)= ); assert (value && refdcu->cu_kind !=3D CU_ALT); if (t->attr[j].form =3D=3D DW_FORM_ref_addr) { ... --=20 You are receiving this mail because: You are on the CC list for the bug.