From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DBA83861032; Sun, 21 Feb 2021 17:14:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DBA83861032 From: "mark at klomp dot org" To: dwz@sourceware.org Subject: [Bug default/27449] dwz: 1: Unknown DWARF DW_OP_0 Date: Sun, 21 Feb 2021 17:14:04 +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: mark at klomp dot 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: 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 17:14:04 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27449 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #2 from Mark Wielaard --- I added some extra error output in commit 4705796eb "Add DIE offsets in err= or messages to make it easier to find what is wrong" with that you get: dwz: 1: Unknown DWARF DW_OP_0 referenced from DIE at [3d2787] Looking at that DIE: [3d2787] variable abbrev: 50 abstract_origin (ref4) [3d8fe0] location (sec_offset) location list [12e= 381] GNU_locviews (sec_offset) location list [12e= 37f] Which is part of: Compilation unit at offset 3684967: Version: 4, Abbreviation section offset: 33924, Address size: 8, Offset si= ze: 4 [383a72] compile_unit abbrev: 228 producer (strp) "GNU C++11 10.2.1 20210206 -mlittle-endia n -mabi=3Dlp64 -g -O2 -pedantic-errors -std=3Dc++11 -fstack-protector-stron= g -fPIC - fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protecti= on" language (data1) C_plus_plus (4) name (strp) "./app/audio/audiovisualwaveform.cpp" comp_dir (strp) "./obj-aarch64-linux-gnu/app" ranges (sec_offset) range list [ 47da0] low_pc (addr) +000000000000000000 stmt_list (sec_offset) 305850 Looking at the location list at 12e381 with readelf (binutils 2.35-18.fc33)= and eu-readelf (elfutils 0.182) both seem to agree there is something off: 0012e37f v000000000000003 v000000000000006 location view pair 0012e381 v000000000000003 v000000000000006 views at 0012e37f for: 00000000001b23a0 00000000001b23a0 (DW_OP_implicit_value 2 byte block: 0 0 ) 0012e397 v0000000000011a0 v00000000000001b views at 0012e381 for: 0000000000000000 0604000000000000 (DW_OP_div; (Unknown locatio= n op 0x0)) 00130749 v000000000000000 v000000000000000 views at 0012e384 for: 00000000001b2ba8 00000000001b2ba8 (DW_OP_lit2; DW_OP_stack_val= ue) (start =3D=3D end) 0013075d [12e37f] view pair 3, 6 [12e381] range 1b23a0, 1b23a0 +0x00000000001b23a0 <_ZN5olive19AudioVisualWaveform10DrawSampleEP8QPainterRK7QVectorINS0_16Samp= lePerChannelEEiii+0x110>.. +0x00000000001b239f <_ZN5olive19AudioVisualWaveform10DrawSampleEP8QPainterRK7QVectorINS0_16Samp= lePerChannelEEiii+0x10f> [ 0] implicit_value: 2 byte block: 00 00 range 0, 604000000000000 +000000000000000000.. +0x0603ffffffffffff [ 0] div [ 1] ??? (0) [ 2] ??? (0) [ 3] ??? (0) [ 4] ??? (0) [ 5] ??? (0) [ 6] implicit_pointer [ 1b23] +0 binutils readelf seems able to recover after the DW_OP_0, but elfutils eu-readelf gets totally confused. I think the location list expression is indeed bad, but maybe all programs = are misinterpreting the location views? --=20 You are receiving this mail because: You are on the CC list for the bug.=