From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dpLILMJX/mlicyQAWB0awg (envelope-from ) for ; Fri, 08 May 2026 17:38:10 -0400 Received: by simark.ca (Postfix, from userid 112) id A6AB61E0BA; Fri, 08 May 2026 17:38:10 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 254671E067 for ; Fri, 08 May 2026 17:38:10 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C71E64BA2E18 for ; Fri, 8 May 2026 21:38:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C71E64BA2E18 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by sourceware.org (Postfix) with ESMTPS id 9E0764BA5435 for ; Fri, 8 May 2026 21:37:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E0764BA5435 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E0764BA5435 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778276264; cv=none; b=Y/G9REnDY+dCwIYECvwn/VUS0OjZGaeKEPtChJuw/RWLa7DGeo6N9LfE1UsRi6LTMjq3Q1zZBS3Qi7A66HIJtEnXfc/QvJfKhWc076H4te9y3rfOE6HPKJjpINRiYJebDYCJp+oDVWyfwBIVhhGDVQc8qwwjO5tYNpHzU7Wq6yM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778276264; c=relaxed/simple; bh=K8/Ws2yPYHqIMg0MyQjfiO+FagYWxgB/np2qFuR+9oU=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=OvVP409vls3gVG6qH++T40nP8b87p1aBho7+07mmZ5Zv3F6GpXdM4Mbx10SPPPvKjnbOoe4VENjvO0TwodKl9Gz6TGgjL/Wdr8POYwMMZ4U8Vnq+kUFhZxyayLFbvZHc8VvtsgygTpT6PHrxqw3vXV57Yg11yllibo5wNgBCAMc= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E0764BA5435 Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48a3e9862f0so16345765e9.1 for ; Fri, 08 May 2026 14:37:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778276263; x=1778881063; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2ECiXmIHZ6TkgKPDDexlEkjm9PMGLOjHo5NrOzlTN88=; b=aQA0si/ar7cbGrduUCFsraTyHOAeN3BKNqra78PsjIFs6U8M3kyuFoMjEGufoK8cwE CnQ8sDXEqc2O93zQ6nswYPl+T9CZ+kDFer3IlzJWkOqEHE+1UbVgT4hc7Y5sxAjlP2cb lAKwCObLeazv1GO5rtdW5IjbTlDKDaQp9RifR1VLgkZ5rN4A+wuy6QdqmGHDZ7D6qIE/ Vk3rBhTyvnkyd/PxPLK0396XUzG2BZl+JcM/UWgcGtUEYb0V5fz+v3PMwH/Qm7lOxsFX piShCEkPJ2LAi7EO/05+nOCOcgjJIyk0lu4z13sa6auqQwvAHNADV3rQ3CNf5qT+5FJv XMGw== X-Forwarded-Encrypted: i=1; AFNElJ+AKJYqPNj2SvtoXf5GbgX4kBB+/KmL1cXhtXxtrr0fWM/KGMMnus5iXpBaVxSkJ6h/mz/YBAvslTGcrw==@sourceware.org X-Gm-Message-State: AOJu0YzIoW3vID4Mq1W18qiPpO6FlRB8BhFedYOGE55OQE9NDpyDoWmh tf1JYF42UKfMKTKgk30bYl4aoZSXIzQM9dDrK2EUzM1lduNI4+zDMHesd19Jdw== X-Gm-Gg: AeBDiesR69TelZxOfAT/jTG9cNw0hlAbt+GKaprMcl0zyDJteoQLwFku87c/ys4U7QX eoJOdRgwJN+EeWX2oMn2QuHKAWo+lZv8oGZzE6dt7LlUuVdkYr9qFXm5fVaMe4JbC2gAMSc2fem ykSY4MoSkiYPkAFIkDi43Fg9uGtWw+LJh44/ybl6ZgbxO6p5G5753H800CHTBpoQn9iMlFN9G4A U9kbYMo4TjjLHghf6ECpqmBh2IxEcaZGRtYT0kIBEUwiyJBOVzVn6Ld2HKD70xeQuEWT+F/8CRz dun/+HRCgS392JyOI0mL7gSR45zztKBLjzCNoYZOnh5LUV2jBvm/aYBegxGZLLEfBbBW4brCHRd dcKgEmWTL7DRAZCZYBqT/fOY355/kxlyxXf83JNdbLa0OG6XW804aQqR9q+n6iP48114sr6YTBk 3AJaTr3LUbFJAunET4PVnhUJYDxveShQL0CpWmxz6ZrPyq7hgB17VL5ZcEInZte2Iy5xBSAtQ= X-Received: by 2002:a05:600c:3e10:b0:485:3cef:d6ea with SMTP id 5b1f17b1804b1-48e5e0089e0mr140814295e9.13.1778276263414; Fri, 08 May 2026 14:37:43 -0700 (PDT) Received: from ?IPV6:2001:8a0:facb:a800:e4b:c156:190:1fe5? ([2001:8a0:facb:a800:e4b:c156:190:1fe5]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e702e5516sm1838515e9.7.2026.05.08.14.37.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2026 14:37:42 -0700 (PDT) Message-ID: <35c47df0-dcb9-4223-b183-31f30e90db36@palves.net> Date: Fri, 8 May 2026 22:37:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 09/11] infrun: with AS+NS, prefer process exit over thread exit To: "Bouhaouel, Mohamed" , "gdb-patches@sourceware.org" References: <20260429201507.480870-1-pedro@palves.net> <20260429201507.480870-10-pedro@palves.net> From: Pedro Alves Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 Hi! On 2026-05-06 11:01, Bouhaouel, Mohamed wrote: > Hi Pedro, > > On Linux, with a remote non-stop target (AS on top of NS), the test you added > is failing! Isn't it supposed to pass in such scenario? It is, like _all_ tests are supposed to pass, old and new. :-) Sometimes new tests expose preexisting problems on some targets/ports, though. > > I see the following logs, without the "[Inferior ... exited normally]" message. > > Breakpoint 1, main () at /home/gta/sources/gdb-worktrees/upstream/gdb/testsuite/gdb.threads/step-over-process-exit.c:39 > 39 alarm (30); > (gdb) p other_thread_exits = 0 > $1 = 0 > (gdb) PASS: gdb.threads/step-over-process-exit.exp: which=main: p other_thread_exits = 0 > break 44 > Breakpoint 2 at 0x555555555216: file /home/gta/sources/gdb-worktrees/upstream/gdb/testsuite/gdb.threads/step-over-process-exit.c, line 44. > (gdb) continue > Continuing. > [New Thread 18153.18154 (id 2)] > > Thread 1 "step-over-proce" hit Breakpoint 2, main () at /home/gta/sources/gdb-worktrees/upstream/gdb/testsuite/gdb.threads/step-over-process-exit.c:44 > 44 exit (0); /* break here main */ > (gdb) PASS: gdb.threads/step-over-process-exit.exp: which=main: continue to breakpoint: exit syscall > maint show target-non-stop > Whether the target is always in non-stop mode is on. > (gdb) next > [Thread 18153.18153 (id 1) exited] > warning: error removing breakpoint 0 at 0x555555555220 > warning: error removing breakpoint 0 at 0x555555555220 > warning: error removing breakpoint 0 at 0x555555555220 > Remote communication error. Target disconnected: error while reading: Connection reset by peer. > (gdb) FAIL: gdb.threads/step-over-process-exit.exp: which=main: next > > To reproduce, simply run gdb.threads/step-over-process-exit.exp with: > > export GDBFLAGS="-ex \"maint set target-non-stop on\"" > Could you file a bug about this, please? Pedro Alves