From nobody Mon May 26 12:24:48 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4b5Zhd2Rb9z5xhB1 for ; Mon, 26 May 2025 12:24:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b5Zhd1wQMz3NpX for ; Mon, 26 May 2025 12:24:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748262289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cdkbpa3wtBX17VkMszcE2I62jbfLhKzMNdPAIzBxP6k=; b=wayDql9fyubjWxtmymnuKybTrLfc/OM2T8y1QwdvwTaxifIfvcSkPl2KIMKvkeHKS+zHB3 DE26a54clQZlluhjl9WEzjhw8YkBH8y/Xsi7G3AY9im71a2YfFrD4CApdxZRZi9ppTFCNw UEE8VReXlz2Ty3WMENimnYTVE+7ENUFgFR/8Grcuc28Xm+I34Y5g5GOoTooJQh0D6NvwRk tD0oTyUYxW1XO7XuMaEyE9qp3yOn8KzlPRH879nTDi/D5mBIvpghUgk9guPiv1icLJDuz+ KIPcIrVXOjo8xdNvqLWkDNg+yIgUQyL3mQ/oE4I0Xck89TeTCiQnla6rWHWQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748262289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cdkbpa3wtBX17VkMszcE2I62jbfLhKzMNdPAIzBxP6k=; b=PFwuuRp4kwe+nO63v5ZuZU8x6MYW8mPwhNNw/QbJbVSdxzT9fHVlwhM8gKeDQmQ26wrdhU HEbkCSOR/i5+G58NKXYSLTBbavoDWjbmgp6cuNZ6ernx9pOdwBgzjF3scqyx3VP8s+OmHw Aj34o7SMAi9BmtV3gxo3NsH+3FvKcMisbr3imk72juGe6i16bNBFYzQM0iR2HEdeC/2kcz semmukqU2MM0SHeRtMQMpMX6Eh/zppk0iPgHpeR8PU+N9a2wPosWKrFGD//dSVYZ2UVTDL bAoBxpa/s2fTHv00s5Bc/W6xcFNRb4BbsDngoB9/mfU1h53yHN2qwbkK/m7tIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748262289; a=rsa-sha256; cv=none; b=yKbkovtCDDOOwAIHaUMvzbNanG+hGRFxTgFndX7TMgw7REpuB4RasVBEoPfelTn8JZB4Qb 8w28Um9f/eEN/tS4Z6Vp6OnHqBY/0Luvtrzy+3p8mVU5auGz9Ed8n6zdVdXenETnXRWsTs JlKGgTKrWGOtEk8FiC+5xyZ8q5Mmz3ohPsvyK3QOQ0SYxtaBOQ4O5fRT1+10UGofBg3gIn tLB0hXkmqS7qCU7fcQXGMHMszzzfI1qjfwr/I4CHI61u14tXVrzAwhHsD4siHCg8Ovcnr0 Q5T9MJHCDN0tP8ucpLtRRIHpBNJE0++Jvq60JRADwDG1AYeWp8soNg7cEZTdxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4b5Zhd1DMwz15wX for ; Mon, 26 May 2025 12:24:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 54QCOn2J077733 for ; Mon, 26 May 2025 12:24:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54QCOnS9077732 for bugs@FreeBSD.org; Mon, 26 May 2025 12:24:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287050] Change in PTRACE_CONTINUE causing valgrind/vgdb to no longer be able to interrupt debuggee Date: Mon, 26 May 2025 12:24:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287050 --- Comment #8 from Konstantin Belousov --- The issue is quite clear, after you provided the test program. The sleeper is indeed sleeping, and the new attach is careful to not disturb the sleep on attach. In other words, all that PT_CONTINUE does is clear the stopped status of the victim, which continues to sleep. Below is the 'ps l' output= for the sleeper after PT_CONTINUE: UID PID PPID C PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 0 25 14 3 21 0 14084 2208 nanslp SX u0 0:00.01 /root/sleeper I am not sure how to handle it. I tend to think that PT_ATTACH should grow an option to request the transient behavior, and by default keep interrupti= ng the interruptible sleeps. Then truss and other tools that prefer the soft attach would specify the option. Another fix is for your ptracer to do PT_CONTINUE with a signal, then do not pass the signal back to the app. --=20 You are receiving this mail because: You are the assignee for the bug.=