From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D751E385DC23; Thu, 8 Jul 2021 00:26:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D751E385DC23 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/28063] ASan crash in value_primitive_field / value_contents_copy_raw when printing std::tuple Date: Thu, 08 Jul 2021 00:26:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned 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: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2021 00:26:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28063 --- Comment #4 from Simon Marchi --- Here's a simpler reproducer: --- #include int main() { std::unique_ptr p(new int); return 0; } --- $ g++ --version g++ (GCC) 11.1.0 $ g++ -g3 -O0 test.cpp $ readelf --debug-dump a.out ... <3><968>: Abbrev Number: 79 (DW_TAG_member) <969> DW_AT_name : (strp) (offset: 0xc42a): _M_head_impl <96d> DW_AT_decl_file : (data1) 4 <96e> DW_AT_decl_line : (data1) 125 <96f> DW_AT_decl_column : (data1) 39 <970> DW_AT_type : (ref4) <0x67e>, default_delete <974> DW_AT_data_member_location: (sdata) -1 ... $ ./gdb -q -nx --data-directory=3Ddata-directory ./a.out -ex "b 5" -ex r -e= x "p p" --=20 You are receiving this mail because: You are on the CC list for the bug.=