From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id XBMvGKQ5c1+5RgAAWB0awg (envelope-from ) for ; Tue, 29 Sep 2020 09:41:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 510CA1EE05; Tue, 29 Sep 2020 09:41:56 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F3A0C1E591 for ; Tue, 29 Sep 2020 09:41:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 58BCE3857C7F; Tue, 29 Sep 2020 13:41:54 +0000 (GMT) Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 6C1053857C7F for ; Tue, 29 Sep 2020 13:41:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6C1053857C7F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [10.0.0.11] (173-246-6-90.qc.cable.ebox.net [173.246.6.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id CBC9A1E58A; Tue, 29 Sep 2020 09:41:51 -0400 (EDT) Subject: Re: GDB 10.1 release -- 2020-09-26 Update To: "Strasuns, Mihails" , Joel Brobecker , "gdb-patches@sourceware.org" References: <20200926183529.GA12328@adacore.com> From: Simon Marchi Message-ID: <068b8d52-591f-4f1e-258a-cbd522585fe7@simark.ca> Date: Tue, 29 Sep 2020 09:41:51 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 2020-09-29 8:14 a.m., Strasuns, Mihails wrote: > Hello, > > FYI: I am currently investigating a regression caused by 7188ed02d2a7e3fce00a0214e70457c5ef56df6b (Replace dwarf2_per_cu_data::cu backlink with per-objfile map). > With my program it causes GDB to crash with the following backtrace: > > #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 > #1 0x00007fe4e871c8b1 in __GI_abort () at abort.c:79 > #2 0x000055e6b5a17333 in handle_sigsegv (sig=11) at /users/mstrasun/sources/gdb/gdb/event-top.c:885 > #3 > #4 0x000055e6b5f08f9e in htab_find_with_hash (htab=0x0, element=0x7ffcd1f58440, hash=3394) > at /users/mstrasun/sources/gdb/libiberty/hashtab.c:591 > #5 0x000055e6b59d0b9b in follow_die_offset (sect_off=(unknown: 3394), offset_in_dwz=0, > ref_cu=0x7ffcd1f58528) at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:22273 > #6 0x000055e6b59d0c2e in follow_die_ref (src_die=0x0, attr=0x7ffcd1f58540, ref_cu=0x7ffcd1f58528) > at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:22288 > #7 0x000055e6b59ac51a in partial_die_full_name (pdi=0x55e6b87f02a0, cu=0x55e6b7811510) > at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8296 > #8 0x000055e6b59ac65c in add_partial_symbol (pdi=0x55e6b87f02a0, cu=0x55e6b7811510) > at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8323 > #9 0x000055e6b59ad040 in add_partial_subprogram (pdi=0x55e6b87f02a0, lowpc=0x7ffcd1f58760, > highpc=0x7ffcd1f58768, set_addrmap=0, cu=0x55e6b7811510) > at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8591 > <...> > > After this patch die_hash ends up being null in this context. If you can send a reproducer, I can take a look. Simon