From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4QiOGiCZNWoAzw8AWB0awg (envelope-from ) for ; Fri, 19 Jun 2026 15:31:44 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=eLXFy/H+; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 67A3B1E0A3; Fri, 19 Jun 2026 15:31:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (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 EBF041E070 for ; Fri, 19 Jun 2026 15:31:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 914A34BAE7E3 for ; Fri, 19 Jun 2026 19:31:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 914A34BAE7E3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=eLXFy/H+ Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id E94504BA2E0D for ; Fri, 19 Jun 2026 19:31:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E94504BA2E0D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E94504BA2E0D Authentication-Results: sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781897478; cv=none; b=us4vBXm7bsBRmtKLlVk2v9tQAFtK22W6+y2gP3OZsjmku5lxLodW4Kk2DnsM3zoBpdvIwwDg5tuROtu6bH/jjqHsmaAyPraaepF5eU1F/PqHB7vDJ5wRTOD4SfZl3VfwcPvAfIG2kVCrKQ+A1H46ZtzDinlewa6hjB0q3EHYMYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781897478; c=relaxed/simple; bh=QBi3Bpu5VZkw+EkP/gU7xDZuurDht3xaaCNn+PGIg6Q=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=YyAga6RS/A6u05pnq5LB8ncxw90ZfYsgmz1GqAeFPiGxOmCs8i3a4Qw78q9KnReOztQDacZZEv84HNDqsjYDmgkb/I4+zl/K5TuEtLfPOoINrkXZFlekhULjqQUa6Yeuemv7Vea2kr0hanrV2LyWfya/BTUspVgW90u/XXdMnbY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=eLXFy/H+ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E94504BA2E0D Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 65JJVA13009117 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jun 2026 15:31:15 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 65JJVA13009117 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1781897475; bh=t1rXgcdPIAolNJzl8jnEvXx+xDq/PSA1W1I0/rZx0gU=; h=Date:Subject:To:From:In-Reply-To:From; b=eLXFy/H+onefCMs1+8dzVN0SXUWMjq4H2UdvdqQW5uZUZIrgXM6ttaUiLao5ZrmVd iIh7thzKqHVlZp1aVlAhxgeyC2+R9kPpwjngKnCNciPy3BPSOdAX+jQpjHI0zXx03/ 7pca+Kp5TXkBcAsHmleVv7V+2Veyw6hwlp7NcoR2LT5FE8n0PDjmyF4Jkwmo2ExD7i /xkJ5TcDv8UlbMj6WXHydcqnC1d1vXnivugrprNfNlnMdrO8VvxSEDkvDQv+6+xZmz 4VzVXbH2BtiVMCvm35DXE46RKBYeJIaXUOKkrb1SeA12iK2q5VzCeuoUw+RgbT2CaG ZMDDh364v3c9g== Received: by simark.ca (Postfix) id A26AE1E070; Fri, 19 Jun 2026 15:31:10 -0400 (EDT) Message-ID: <0d84484a-d257-4848-8f10-18de2a2ead45@polymtl.ca> Date: Fri, 19 Jun 2026 15:31:10 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/7] gdb/testsuite: fix step-over-thread-exit.exp with native-gdbserver To: "Aktemur, Baris" , "gdb-patches@sourceware.org" References: <20260506202804.1681886-1-simon.marchi@polymtl.ca> <20260506202804.1681886-5-simon.marchi@polymtl.ca> Content-Language: fr From: Simon Marchi In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Fri, 19 Jun 2026 19:31:10 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 5/12/26 9:06 AM, Aktemur, Baris wrote: > AMD General > > Hi Simon, > >> From: Simon Marchi >> >> This test uses "set args N" to control how many threads the inferior >> spawns: 1 in some cases and 100 in others. However, "set args" doesn't >> work with the native-gdbserver board. As a result, with that board, the >> inferior always uses its default of 100 threads. It sometimes causes >> failures like: >> >> p $_thread == 2 >> $1 = 1 >> (gdb) [New Thread 2790806.2790823 (id 3)] >> >> Thread 3 "step-over-threa" hit Breakpoint 2, 0x00005555555552ab in my_exit_syscall >> () at /.../testsuite/lib/my-syscalls.S:85 >> 85 SYSCALL (my_exit, __NR_exit) >> FAIL: gdb.threads/step-over-thread-exit.exp: step_over_mode=inline: non-stop=on: >> target-non-stop=on: schedlock=off: cmd=next: ns_stop_all=0: selected thread didn't >> change (timeout) >> >> Here, GDB steps over thread 2's exit. As soon as thread 2 exits, the >> main thread spawns a new thread (thread 3), which hits the breakpoint >> placed over the exit syscall, and that event gets reported >> asynchronously, confusing the testsuite. The point of setting n_threads >> to 1 is exactly to avoid things like that. >> >> Fix it by passing the args via the new -inferior-args option, which >> works correctly with the native-gdbserver board. >> >> Change the test program to requiring the number of threads to be passed >> as an argument, which would have caught this problem. >> >> Change-Id: Ifc8856aa582706fd7207d0035d35dee749eb83a5 >> Reported-By: Tankut Baris Aktemur > > I was at Intel when I reported it. Could you please use > tankut.baris.aktemur@intel.com here? Ack. Simon