From nobody Thu Dec 19 16:39:13 2024 X-Original-To: threads@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 4YDbq56mNGz5hRHJ for ; Thu, 19 Dec 2024 16:39:13 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YDbq55ggtz3wxq for ; Thu, 19 Dec 2024 16:39:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734626353; 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=mrOXzdjsfc9joNXCKitxHzj6o5rqY2WQcHPlANRoIp4=; b=FZeYyQdpeetG1g90MQjXMmA8rCEaNtCqqpFuSRksPnZr9PQoKFZi4SyP78VnzrcG7MILdb ndlUuSiXdd1xiDhiHB1GNQm5IDe2TATokX9O2hnFV2E6DSAb7CSMpjx9ZGNTHNhyANRO/y PC1V4URv/xG2NnBAAQprdVV2k5DneKbArEwvquOC3BS6AKK8C2sDbu+88IANzdAynr/HLi xGY6jyVTNZ1LPPp+pK6bezwyNsXAuHfWJecYJ13sjcVmi89P2B1LUEei5kXZIBFL3J5YQE 36ozHyA8gzRq7lAlHFWC2tpbpiWQkL4oWiSNXnZsyOiVPuPHyRCsj41fzWXBPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734626353; a=rsa-sha256; cv=none; b=bSj3dEHgEIYu/4mKDx9oTcgHxvnTRLfai3OSGb0oMxSfn4MQpzY2xsOsi2m6ag7q+0lsX4 X8b+8kt19LB9Gg73KKtayR0QTYL1W6V9DKHvmYPSdRsGfRsUa/RdL1kJRzWedb1dxQrcya DyDjeNvQgEE+9L3OvSq+ymgWkuoZZE9eSXqhbBQuXceNowLgfJ0ton8ZPx1SBQyqfO3GKP 3LZGA+PLGAj94ygERJ6N/kpYAq9S/XM84it2fY9x13FJaUwhYhfnX2zYi3mhHdopq14xJX ODaMGMDC/psxOXCP9uFPYwyN1mUFOwj4tHHFTMIRLq4U/6b1G0B6hjSXeo82UA== 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 4YDbq559QBz11pD for ; Thu, 19 Dec 2024 16:39:13 +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 4BJGdDXo091181 for ; Thu, 19 Dec 2024 16:39:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BJGdD3W091180 for threads@FreeBSD.org; Thu, 19 Dec 2024 16:39:13 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: threads@FreeBSD.org Subject: [Bug 283101] pthread_cancel() doesn't cancel a thread that's currently in pause() Date: Thu, 19 Dec 2024 16:39:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-threads@freebsd.org Sender: owner-freebsd-threads@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283101 --- Comment #14 from Konstantin Belousov --- So the victim (would be cancelled) thread has cancel_pending =3D 1, which m= ean that the main thread successfully executed _thr_cancel() against it. The actions of _thr_cancel() are setting cancel_pending, and sending SIGCANCEL to the target using thr_kill(2). Since the victim is happily sleeping in sigsuspend(), either SIGCANCEL was = not delivered at all, or delivered but ignored due to convoluted threaded handl= er. I tried to find any point where SIGCANCEL could be lost, but so far I do not see it. Can you please apply the debugging patch below and repeat the same data gathering? I want to see if the victim thread' userspace got SIGCANCEL at = all. --=20 You are receiving this mail because: You are the assignee for the bug.=