From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 37B433858002 for ; Fri, 3 Mar 2023 17:52:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37B433858002 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [172.16.0.192] (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) (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 BD8501E128; Fri, 3 Mar 2023 12:52:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1677865929; bh=yTOsnbAah94xzfqt3aJPkr5H3+Af1u5hHV4Njieqjd8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AJcZH1CGzIxaxU6QhunUo1G+/Lt9g9LFEhUt6DL3QSPch2/skzAvlEjdfLnrQWBaZ yybrouIsw9EVCqmvD373nkiOrha0SH8Mi/b6tDmryXAVV+nC2dVrHsDCyVfxzUztAo tmJ2KcyFZl4VPTw7f49fBTmNVnDOg7VtvPzssgew= Message-ID: Date: Fri, 3 Mar 2023 12:52:08 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3 0/2] Write DWARF index cache files in background Content-Language: fr To: Tom Tromey Cc: Tom Tromey via Gdb-patches References: <20221219164558.378363-1-tromey@adacore.com> <87k006j3zz.fsf@tromey.com> <1154aa3c-4ef9-80ef-c551-35a9ce8bf294@simark.ca> <87o7p9aitj.fsf@tromey.com> <80c09fa0-76f3-2625-d991-fdce471c71a9@simark.ca> <87cz5pagkr.fsf@tromey.com> From: Simon Marchi In-Reply-To: <87cz5pagkr.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/3/23 12:29, Tom Tromey via Gdb-patches wrote: > Simon> I don't understand this. > > Yeah, sorry, I didn't properly understand the test. > > Simon> I think this could be solved with a maintenance command to explicitly > Simon> wait for index cache creation (calls wait_for_index_cache). I don't see > Simon> another reliable way. What do you think? I can implement it if you > Simon> think it would work. > > I think you're right. I can handle it. I spotted another failure, when running with native-extended-gdbserver: 254 (gdb) file /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/index-cache/index-cache^M 255 Reading symbols from /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/index-cache/index-cache...^M 256 /home/smarchi/src/binutils-gdb/gdb/gdbtypes.h:967: internal-error: field: Assertion `idx >= 0 && idx < num_fields ()' failed.^M 257 A problem internal to GDB has been detected,^M 258 further debugging may prove unreliable.^M 259 ERROR: Couldn't load index-cache into GDB (GDB internal error). I don't know why it would be specific to native-extended-gdbserver, maybe it changes the timing in just the right (wrong) way. I haven't dug into it yet. Simon