From nobody Sat Dec 28 17:21:17 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 4YL8KW3H3Qz5jfn9 for ; Sat, 28 Dec 2024 17:21:19 +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 4YL8KV4lfXz4pQ9 for ; Sat, 28 Dec 2024 17:21:18 +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=1735406478; 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=O//8D0ZAiqQjAQM3kLY+0UdPpmEXottqZEKWYCvgZA0=; b=nTsjAVes2e7tb2X4/CFvdGPoRtk6gnJbj38gXO9K3s2jh8+/LRk9ozk1x5Ex/nwQOMZUHs JDEI7zHaqSBku6tbBFNXQOIE46PNHvmW8ly2m74WjXcIIrfg8MIOoDBwYGMT81inykeO4O C40Y7TyZFTO+9f8VADl+F9DOO9RPTJ6fIvwIH+x4IoX0yXATOFCWoOOhKSH6+jPRgg6mHU oKkUKd9Fpizpw8AZt3XGr7ZZrCavADgZTf8mbZdntL2UeKmy04gT5T+tVEjjJQwlAbzmsX MsxZg5a+vG2orgVG7KJ/ncRSTQYKuyFaT68SMy+XDu0X/KY4Lz4qJ2iziwnvew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735406478; a=rsa-sha256; cv=none; b=PbSadZXueONhWMyaV5FPMeFYTjh3VIZA8xkDpTdVwmARRwjLbsma7L/6g+fu8Bf6OWNylV IrEMY8GSBFJ4xpoZVDN8OyOhpIcxwNKnus7VmRr+rXsONKrf7MmUqTF4uzLJ6N8EcYDohi b9HRq1NhBbM8n0Dmer8ZXyFJpax6dp5fbLL5zsraz9Hf0NWfM8Av/DrkHOi+QIu5oaJQUL cU6ZTD206PaLeMxzWvTmGNRUrqgf9/4J3d6e4rlbBJEvYc7gwYoYy83j0IvJSRsFfjcaWN H/iC1HKEeyo48q8+CNteUtToTMPjjw3MqgvxYgGpwcaqZ4SvVnq/ZRmue/2hzQ== 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 4YL8KV40sBzXvg for ; Sat, 28 Dec 2024 17:21:18 +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 4BSHLIK6092139 for ; Sat, 28 Dec 2024 17:21:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BSHLISq092137 for threads@FreeBSD.org; Sat, 28 Dec 2024 17:21:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Sat, 28 Dec 2024 17:21:17 +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: commit-hook@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 #24 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9f78c837d94f73f1485e2ce012a8e6419= 7dae9d5 commit 9f78c837d94f73f1485e2ce012a8e64197dae9d5 Author: Konstantin Belousov AuthorDate: 2024-12-24 00:08:17 +0000 Commit: Konstantin Belousov CommitDate: 2024-12-28 17:01:58 +0000 check_cancel: when in_sigsuspend, send SIGCANCEL unconditionally not only when check_cancel is called from the signal handler. _thr_wake() is not enough to get the sigsuspend(2) syscall out of the loop, since it only terminates sleep when an unblocked signal is delivered. PR: 283101 In collaboration with: pho Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D48200 lib/libthr/thread/thr_sig.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=