From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9471E3861032; Sun, 21 Feb 2021 16:38:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9471E3861032 From: "mark at klomp dot org" To: dwz@sourceware.org Subject: [Bug default/27363] Emit more detailed diagnostic output for "Unknown DWARF" Date: Sun, 21 Feb 2021 16:38:57 +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: enhancement X-Bugzilla-Who: mark at klomp dot 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: cc 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: Sun, 21 Feb 2021 16:38:57 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27363 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- The following commits address some of difficulty tracking down where the bad DWARF was detected. They don't go so far as your suggestions, but I believe they are already useful. Trying to get more information than the current (D= IE) offsets might also be tricky when we are dealing with bad DWARF. commit 1e2beb218060515eb1e4f54a0ff6b3714b532e31 (HEAD -> master) Author: Mark Wielaard Date: Sun Feb 21 16:55:17 2021 +0100 Print abbrev or DIE offset for Unknown DWARF error message. * dwz.c (read_abbrev): Add .debug_abbrev offset to error messag= e. (read_exprloc): Print DIE offset that referenced the unknown operand in error message. (read_expr_low_mem_phase1): Likewise. (read_debug_info): Add die_offset to error messages for unknown forms, attributes extending beyond end of CU or unknown block form attributes. https://sourceware.org/bugzilla/show_bug.cgi?id=3D27363 commit 4705796eb538761db37d5e4ef42171f08c394a65 Author: Mark Wielaard Date: Tue Jan 26 21:12:18 2021 +0100 Add DIE offsets in error messages to make it easier to find what is wro= ng. With the following patch dwz will give a message like: libmozjs-78.so: Couldn't find DIE at [bd6b507] referenced by DW_AT_abstract_origin from DIE at [bd5bb9b] Which makes it a easier to figure out what is going on. In the above case you can simply lookup the producer of the CU for those two DIEs. Which turned out the be "clang LLVM (rustc version 1.49.0)" which seems to have gotten the abstract origin reference wrong. * dwz.c (read_exprloc): Add DIE offsets to error messages. (checksum_die): Likewise. --=20 You are receiving this mail because: You are on the CC list for the bug.=