From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kdyxNjhUIGkCDhsAWB0awg (envelope-from ) for ; Fri, 21 Nov 2025 06:59:52 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=PwVTBetV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D8BF31E0B6; Fri, 21 Nov 2025 06:59:52 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3CCEB1E08D for ; Fri, 21 Nov 2025 06:59:52 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BDE3C385C420 for ; Fri, 21 Nov 2025 11:59:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDE3C385C420 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1763726391; bh=4GC3URxeplFMCQLTZssZ1r0fxoYZLu4GB003vl6R/UY=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=PwVTBetVOWMd3zUsfWBU4D/rcvAOD2I2ossSSmokBMcsu42B6rPvBzbaqlou9qZQx /ODp8ci3Cn2K98hO5TS+VLtZ6G2lpiSu60GE0VeOJsFs4zku7q0wgdA/n1JtgtBsoi CGCToy9htDogQlOBwQOTQ+6/snp3zxHFmnHf3QN0= Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id 3DE7B385C406 for ; Fri, 21 Nov 2025 11:59:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DE7B385C406 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3DE7B385C406 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763726342; cv=none; b=GSuZjw+9sWuroHpflLxtt7KKKdPW+Ny0CO5n9Yyg8+evoqx7KOojRqfCuTCuKdrFLK07IV86JL+qDwbIK5GX7HqsqVO2yaifyRq7ybXQ0OgRxWaxsNF4+gDe/A5ueL2jFPgQ8wlFriCq19Z25jzUrT6v0gu59QsMAkZmqMzjTmQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763726342; c=relaxed/simple; bh=sdd/i0uA3VftWu23vB5GDg7/arZPSctQTGPq0BKvCUM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature: Message-ID:Date:MIME-Version:Subject:To:From; b=Zg5WzztDgdK8v4Ww8ufYhuSugzJpCa2UiZ/sonMAfjLtI1PmffBOi/RKp3hpnWmn+NkenbXNVg0xGAYBAa/mB1oASSWSgNZlNrhLHflb3+jd7OhK2Ck/aiXY0fIoWtGEvWfP51WQ+h+3ZLWMVGX0XpXPj8a9pnfHMCJPQwmO4Jc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DE7B385C406 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1AF0B20F8F; Fri, 21 Nov 2025 11:59:01 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id F01573EA61; Fri, 21 Nov 2025 11:59:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id As4eOQRUIGmpAwAAD6G6ig (envelope-from ); Fri, 21 Nov 2025 11:59:00 +0000 Message-ID: Date: Fri, 21 Nov 2025 12:59:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: GDB 15/16 crashing in add_thread_silent() To: psmith@gnu.org, Simon Marchi , gdb@sourceware.org References: <78bf54fc9dfbb57d3434d8435e94b091e1fa6785.camel@gnu.org> <9a1b77f25cab8eb7433476918a9c5be29091856c.camel@gnu.org> Content-Language: en-US In-Reply-To: <9a1b77f25cab8eb7433476918a9c5be29091856c.camel@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:mid] X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb Reply-To: Tom de Vries Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 11/14/25 8:38 PM, Paul Smith via Gdb wrote: > However, if I use the native GDB 8.2 that comes with Rocky Linux, then > it will open the core file without these errors, and even show me the > backtrace for all threads. An interesting thing to know here would be the size of the PRSTATUS note: ... $ eu-readelf -n core | grep -i prstatus CORE 336 PRSTATUS $ readelf -n core | grep -i prstatus CORE 0x00000150 NT_PRSTATUS (prstatus structure) ... AFAIU, the note should be grokked by elf_x86_64_grok_prstatus, which bails out unless the size is either 296 (x32 abi) or 336. So, if your core has a PRSTATUS note that has not one of those sizes, then it's possible that the system gdb 8.2 you mention works because the source package has a patch that makes elf_x86_64_grok_prstatus work for that particular number, and then hopefully that patch has more information. But upstream gdb 8.2 only accepts the same numbers as upstream gdb trunk: 296 or 336. [ My current hypothesis about the related arm problem I'm looking at, is that the core was generated by a kernel with a bug that meant that a prstatus was generated with the wrong size, which was fixed by commit 16aead81018c ("take fdpic-related parts of elf_prstatus out"). AFAIU that problem didn't trigger on x86_64, but I thought I mention it. ] Thanks, - Tom