From nobody Tue Dec 3 16:17:52 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 4Y2m5r5Cd8z5gLdg for ; Tue, 03 Dec 2024 16:17:52 +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 4Y2m5r0dGyz4KnS for ; Tue, 3 Dec 2024 16:17:52 +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=1733242672; 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; bh=Y5wgDFyYqv9Va4WYYix5kmjAUeglG8umzKhrJQHIWI0=; b=RweXtVfiWz1HGV+V7mbVldzd3EMfqOsdio7rekr1AqG+l+Y+AVCdRDczq4Kv3eDX9gObQ5 nITzQGrEu4Lw6p/3ioTaag8r3lOMBd3xF6KLuDnXr8LQ7o5kcmMhCRPVGtMV943OJsFiOL 0o+f1bi8AwRYCFHidwLwJe5YX2l4a2lVWoVt+2U1VVRcxrd7tdiG8eKy0LoyQjVzQbO4Lo cV+RUug1DWQO3+XqVm7UJozEHT1tgjWR/p/i68NY89SxtWrTANGr0DwNc7oFhOVnBllvNd Tvwuyix1xua/+UQy7FBzz8skFaXFMhjA/WpnXfSgPzo3C7lhNil7CFGxlvzHGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733242672; a=rsa-sha256; cv=none; b=eCe8cscACvYEhU10zFyJOTxHHIVDMHtSsgyunqyhKkvKkP/Faf+8qnYUziViuGPQKB2KyM fUMYqxCZGkHdi5u+LHCq2Exg1r2dCrzR2aSFrWuprouyAIYLC3dMs3MYgbvy1YYcKBqyfZ XbITpO6W0sNF3muBnNG3oYw3dl5Ikor+w1Ime+uc3wDu07SXl7LkMO50jL1Rnox3p6ax8H Y0d+b5c8ouThWE5HDnZEfMz+Oxf633Rv1J9oOMnykK5mfUtakyYfyXxPPH1IFoBp37kn1i YOKg++jJoi6xWG6npy/hfj1R6/nHT7GzmQJ/5kjaapLyo1KWhUfIKozs2q0KRA== 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 4Y2m5r06PfzVmw for ; Tue, 3 Dec 2024 16:17:52 +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 4B3GHp1K027960 for ; Tue, 3 Dec 2024 16:17:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3GHpJH027959 for threads@FreeBSD.org; Tue, 3 Dec 2024 16:17:51 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: Tue, 03 Dec 2024 16:17:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: nabijaczleweli@nabijaczleweli.xyz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 Bug ID: 283101 Summary: pthread_cancel() doesn't cancel a thread that's currently in pause() Product: Base System Version: 13.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: threads Assignee: threads@FreeBSD.org Reporter: nabijaczleweli@nabijaczleweli.xyz Downstream bug: https://github.com/openzfs/zfs/issues/16731 On FreeBSD, zfs send sometimes hangs in a deadlock after pthread_cancel(tid= ); pthread_join(tid, NULL); while the thread is in pause(). The program looks something like this: #include #include #include #include #include static void send_progress_thread_act(int sig, siginfo_t *info, void *uconte= xt) {} static void timer_delete_cleanup(void *timer) {} void *send_progress_thread(void *arg1) { const struct sigaction signal_action =3D {.sa_sigaction =3D send_progress_thread_act, .sa_flags =3D SA_SIGINFO= }; sigaction(SIGUSR1, &signal_action, NULL); pthread_cleanup_push(timer_delete_cleanup, NULL); for(;;) { pause(); // <- thread blocked here // zfs_send_progress(), time(), localtime_r(), setproctitle(), fprintf() fprintf(stderr, "unpaused\n"); } pthread_cleanup_pop(true); return NULL; } int main() { pthread_t tid; pthread_create(&tid, NULL, send_progress_thread, NULL); sigset_t new; sigemptyset(&new); sigaddset(&new, SIGUSR1); pthread_sigmask(SIG_BLOCK, &new, NULL); sleep(1); // some sort of work pthread_cancel(tid); pthread_join(tid, NULL); // <- thread blocked here } (In reality there's also a timer that may send SIGUSR1s and SIGINFO is also consumed but this is largely irrelevant.) The backtrace looks like this: Thread 2 (LWP 259843 of process 95307): #0 0x000000082872c6aa in _sigsuspend () from /lib/libc.so.7 #1 0x0000000825f47fb6 in ?? () from /lib/libthr.so.3 #2 0x00000008286a2a65 in pause () from /lib/libc.so.7 #3 0x0000000820e3d7d5 in send_progress_thread (arg=3D0x8208cf2c0) at lib/libzfs/libzfs_sendrecv.c:1018 #4 0x0000000825f3eb05 in ?? () from /lib/libthr.so.3 #5 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x82ce7a000 Thread 1 (LWP 100403 of process 95307): #0 0x0000000825f3be2c in ?? () from /lib/libthr.so.3 #1 0x0000000825f40a2e in ?? () from /lib/libthr.so.3 #2 0x0000000820e3da4f in send_progress_thread_exit (hdl=3D0x349d6143c000, ptid=3D0x349d61412700, oldmask=3Doldmask@entry=3D0x8208cf1b0) at lib/libzfs/libzfs_sendrecv.c:1074 #3 0x0000000820e40367 in dump_snapshot (zhp=3D0x349d6145a500, arg=3Darg@entry=3D0x8208d0ec8) at lib/libzfs/libzfs_sendrecv.c:1291 #4 0x0000000820e3014a in zfs_iter_snapshots_sorted_v2 (zhp=3Dzhp@entry=3D0x349d6145a000, flags=3Dflags@entry=3D0, callback=3D0x82= 0e3ff30 , data=3Ddata@entry=3D0x8208d0ec8, min_txg=3D8889024, max_tx= g=3D8890857) at lib/libzfs/libzfs_iter.c:352 #5 0x0000000820e3fd34 in dump_filesystem (zhp=3D0x349d6145a000, sdd=3D0x82= 08d0ec8) at lib/libzfs/libzfs_sendrecv.c:1364 #6 0x0000000820e3ec99 in dump_filesystems (rzhp=3D0x349d61412700, rzhp@entry=3D0x349d6145a000, sdd=3D0x2, sdd@entry=3D0x8208d0ec8) at lib/libzfs/libzfs_sendrecv.c:1432 #7 0x0000000820e3e413 in zfs_send_cb_impl (zhp=3D0x349d6145a000, fromsnap=3D, tosnap=3D0x349d61419106 "zpair-02749186397145403432-cartman-674eaa54-537c2abe", flags=3D0x8208d16f0, outfd=3D1, filter_func=3D0x0, cb_arg=3D0x8208d16d0, debugnvp=3D0x0) at lib/libzfs/libzfs_sendrecv.c:2506 #8 0x0000000820e3c26e in zfs_send_cb (outfd=3D0, arg=3D) at lib/libzfs/libzfs_sendrecv.c:2559 #9 0x0000000820e3c237 in zfs_send (zhp=3Dzhp@entry=3D0x349d6145a000, fromsnap=3Dfromsnap@entry=3D0x349d614190c0 "zpair-02749186397145403432-cartman-674e8e34-16208f9f", tosnap=3Dtosnap@entry=3D0x349d61419106 "zpair-02749186397145403432-cartman-674eaa54-537c2abe", flags=3D0x0, flags@entry=3D0x8208d16f0, outfd=3D0, outfd@entry=3D1, filter_func=3D0x0, cb_arg=3D0x8208d16d0, debugnvp=3D0x0) at lib/libzfs/libzfs_sendrecv.c:2577 #10 0x0000000000215754 in zfs_do_send (argc=3D, argv=3D) at cmd/zfs/zfs_main.c:5099 #11 0x000000000020fd18 in main (argc=3D6, argv=3D0x8208d1850) at cmd/zfs/zfs_main.c:9249 This is obviously wrong, since the thread is /sleeping in a cancellation point/.=20 Adding pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); to the top= of the thread doesn't change anything. In this case, it's obviously wrong beca= use pthread_cancel()... didn't cancel the thread. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 16:30:49 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 4Y2mNn3tssz5gMx7 for ; Tue, 03 Dec 2024 16:30: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2mNn0FW6z4Ly7 for ; Tue, 3 Dec 2024 16:30:49 +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=1733243449; 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=3h3ASGhYNK7kPNzeUOh0FpiTqN5Fv5PU3XdiambegKk=; b=t/o37KuoburRGC2U2HqyCIYQqeGnzpB93xwB0+CEcJsXy7etqk0P+xVBGNym0FLkMrIw/q qdd09+bCgASrui8AMXABL+H4e+QRVqd9jhMCQ+6VRgsSR6fU6uQyrbNLlKCwCxOIqzpoi3 QGsIQMDyqEWScc9EXyaJ//rgnwJjitNmvEStyceYJDKi5quvohoAp88SMjSzBgZnPATHXJ Ye5aR+tHg3CRZAG1IzCe2jD2eNmG7pnCrZ8IovGc8DNA7H7ccVyyj+SSgrHVGnB4k6fPY0 X8dTiqGXeyQEKh9NQJszsNIwXxmjomadPzWLJqlTAdB+c238SkMNyTOADwfh+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733243449; a=rsa-sha256; cv=none; b=ukOHkX7uuPxVuLmmX7QdlaY5MSH0YzKfz3vQtVQ1W5BbTaAACgpSChpHCrTQ7lV5R5SinK oKKZSNNHrxNEf3KuhbJ0Jdzf2Rst54h+lkYvYsYvUoKjZz7oqD7s32tfYQwTBKYmiEVEgJ z1slcYNBQGyjqVmKqN7EqYuHHecyNrH/LPUehMxciJGpelV5PZg5kKb8nQTzS99vjjnPf0 XnteXhckktaBxC3QZqGoBJLjX+VOwb4uksG0FaKNsEc6bE2ZsTypwjdye/Cntwn/uv+s0u tYDqx4vTGthfRnAC6i/ZbXSMBwccApSOuJr7qayBy4ipxjpKiRwNNCTCnLZI4g== 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 4Y2mNm6zVpzW4N for ; Tue, 3 Dec 2024 16:30:48 +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 4B3GUmtC051308 for ; Tue, 3 Dec 2024 16:30:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3GUm4A051307 for threads@FreeBSD.org; Tue, 3 Dec 2024 16:30:48 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: Tue, 03 Dec 2024 16:30:49 +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: nabijaczleweli@nabijaczleweli.xyz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 =D0=BD=D0=B0=D0=B1 changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nabijaczleweli@nabijaczlewe | |li.xyz --- Comment #1 from =D0=BD=D0=B0=D0=B1 = --- Sending the process SIGUSR1 does also seem to make it unstuck. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 16:31:15 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 4Y2mPH3N7Lz5gMkJ for ; Tue, 03 Dec 2024 16:31:15 +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 4Y2mPH1Vx2z4Lf5 for ; Tue, 3 Dec 2024 16:31:15 +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=1733243475; 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=e20xZFGExBNp1qZsbir9vj3/GPx/M0BNRZYsEnj6I6A=; b=XCaUoAdVISih9NNhuTH8R/Il8PTQsh/fNlT/zi+Dm2zoA8j2OEhBk+ecHk6rbhuOoTAgg3 XmoSjnuSv8gqS8xNSJhk//+yLBMoMw3Rnmx82pf0jtupFPkcJaexB+eTW5JOuOWmhjjz7c 3ThZ1fgYObNaIpeD52O0AyTmdQMTLfweZJ3eilUd12QiDRMgcMfJX9wBSf2o45k9whEss6 eq2shocHSJKyo7uhw7LQdP6Q4PvXgC29N/CHxLlFSjQfeBJkmaMyiQcob3Pyh1DapuHIE6 m5q0IkwtnBslp+UtabY91kpLa8DGvfzeXZUrYR8H6kM4fYhWGyXvvkMBpFM/aA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733243475; a=rsa-sha256; cv=none; b=I7eISkymaXeUFUQH+RAIr5BgTDCdp79OdkpCi8HbeVYzRqILyx7HVZAYQZB+RMb9su1eVP 9NSRXn1qz4VyzTH2oIW/4Wjr5XbJ1zS9N8sQ+Ar6d8OXL+x/HZ6XYvhgj2VxlH5RabYbcC B/IVDlvQGRqLPg0pLrxCnoA6GYB/d2FwYc+bzsRTqDeMJb1bU8YZe6fvC40GhD1n4FhrMk itqSgmsp3Tx176J9YLc1Hun/EclGKJCfqKyrH11eb5C4tP7eLr9l7zuyFcbRR7/kyVelvD N2inpr2lb+aZ3HEgouczIRFgZWB4oF8OgbeWw7KENcRUP9aHrt/HwToAujK/kg== 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 4Y2mPH16pgzTSf for ; Tue, 3 Dec 2024 16:31:15 +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 4B3GVF9U053669 for ; Tue, 3 Dec 2024 16:31:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3GVFiE053668 for threads@FreeBSD.org; Tue, 3 Dec 2024 16:31:15 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: Tue, 03 Dec 2024 16:31:15 +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: nabijaczleweli@nabijaczleweli.xyz 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 #2 from =D0=BD=D0=B0=D0=B1 = --- Sending the process SIGUSR1 does also seem to make it unstuck, so. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 19:51:11 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 4Y2rr01HPHz5gf1d for ; Tue, 03 Dec 2024 19:51:12 +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 4Y2rqz63gLz4jPs for ; Tue, 3 Dec 2024 19:51:11 +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=1733255471; 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=kuMrxf8ZgAPzAqhISgUPr5SRXYeExT6j6z4KpwoRz10=; b=rUKmioNqnKz7Dkiwpap2jR/2ovB2gahj8eHnLQOdFcv4Rqu57dF0vg3Uyyxg+jXTWUYSFJ ZTs46k+gX2FJLolEUGsL9lQZ5ElRM3rJne3540bFhhBFTi8ALfF9sRd1dzWYy6bKqlhy3K iNqIcIEKHiwrNK8iUK5y+jbxU5vhNiTdAJ2Ty3KnE6eUs+K/+OmmyoWij8HLNbQ89lWA8r GlUypHpE7WRpaTixGN7NpQGI0PUhpAOG17rEFb6pUZSQkPZK+tXPj5AXFUURs4Cq03cuBJ Cu1VfaIVUSbBEnYd92885FO9dEGPpII63ChK+TsIchCswkQjj4z7PJyQKEd6Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733255471; a=rsa-sha256; cv=none; b=oROQEC21e8dI3AsvleuDmNul/+wnjI8YTzSxMWy7Hm3/SBsCX7F3R/sFOt8YquEQZ+Frv0 8N/rfcyFKdRFIBsac1PvVJQ94lEQweZuuZkI8x4L2rjca8UX5jvgU24vPvhZkJ+SVzTlpN DjzQ8gqS5rm2lVqeTGs7eiZGNq96ejNzweydGmW/cVMuxizsA+oFXrhoELrYWxSoKtzmdw 69Xnv571+ZFl/uamjtn10C8sv8VS7wRCa3kLndwrl6Wz27fHyTvGSuTnlWAs0hSZ7y24xA fjuj3qtCletwU1QrU7dAVDD0bKopxYc3RpkoT//oqa1osrSnagzfgH5S1sfWCg== 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 4Y2rqz5gR0zcFF for ; Tue, 3 Dec 2024 19:51:11 +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 4B3JpB0k010097 for ; Tue, 3 Dec 2024 19:51:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3JpBFe010096 for threads@FreeBSD.org; Tue, 3 Dec 2024 19:51:11 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: Tue, 03 Dec 2024 19:51:11 +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: cc 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 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #3 from Konstantin Belousov --- There must be something else. Or the bug is fixed in 13.4+. I tried the proposed test case on stable/13 (several weeks old), stable/14 (two weeks old), and HEAD (fresh). In all cases cancellation worked. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 20:12:02 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 4Y2sJ26G7Vz5ggt4 for ; Tue, 03 Dec 2024 20:12:02 +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 4Y2sJ253bnz4pNv for ; Tue, 3 Dec 2024 20:12:02 +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=1733256722; 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=rrNsaS8kSVzX+prQ9dqQfF2O9on5ArfVYtCoZEjehkk=; b=anpsK8jajfd62oNeQMAPSTKVcqVNkqKTiXKEkGUBNkKap5jQ75jTIjxVCWZPRYyYmFXYx5 LyCAb0hCQUy0awPLui2lkU37iSx2HtHD6sQ+XDz8Bcy9VY3l9rfXF+4inBUKeOmw7O+09X 7cbM+jKUXok+DsJjULBFkgNK1UQXrmZTg7HCPvbdLUov5sXK9Z5i8MtZm+xecfdBM70fN9 +yD0aFzo3PXiN3Zq0VmI5jNYXeyr/k8QCKAbDHMRDWiAjsZEq1iPejWgE2AkrrPcqXAOQW iVaQ1ek0tS69j+CQ8FTbGQcvl9aEdP9So3qCJ9ZGyZdJmHGKS2nTyBXkzYKqnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733256722; a=rsa-sha256; cv=none; b=KWaL0tsF5mgHsHK9o0A4lNJeo5dwAP3SqektjeH5SIkYoAIwsgvrb3svmIUJiMCVPWdrr7 molGyugOUK1mBNSfH9Tl9ZrCZpGn4Kj5x836t6SlNXpZGOzKyChVR4jNtFTpNe8eO3oLa4 ESqUOe0g7x9tz5/ME/Cs5VWbhDLGyYypGbh5w3u+JEmkswFgcA+HpW9X+uoqpGVB8yvRXB Sm70xyaNPu6ZDrCAnN9FGw+fU2zZWDVhsdBDWdRbGMxDAxEDG/ikws+FWAc7tei3XIddTr GVNPJxUiE5tz5fQIWTZwAPC9IBfq2fWJZ7wM41fC65+LK2QOw5UOHXgWwWHi9g== 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 4Y2sJ24GHpzcMN for ; Tue, 3 Dec 2024 20:12:02 +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 4B3KC2po055129 for ; Tue, 3 Dec 2024 20:12:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3KC2EK055128 for threads@FreeBSD.org; Tue, 3 Dec 2024 20:12:02 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: Tue, 03 Dec 2024 20:12:02 +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: nabijaczleweli@nabijaczleweli.xyz 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 #4 from =D0=BD=D0=B0=D0=B1 = --- I don't think I made a solid enough point of this in the OP, but it does wo= rk most of the time. The described deadlock only happens like once a week or t= wo on average, accd'g to the original reporter. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 20:35:24 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 4Y2sq01NP4z5gjYF for ; Tue, 03 Dec 2024 20:35:24 +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 4Y2spz6YYcz4qvD for ; Tue, 3 Dec 2024 20:35:23 +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=1733258123; 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=LSnDXPbIxLctVebahM5l0NBlpDrn83XFc+MIdrcJggA=; b=Ja25X1wNYR+XebSvxOR0lK/qNgs3hoAHJBqrczlNP0hJI9u+O/AQ/Uyj6JvxGI6crGFRRd CbClJMWqJ1umpHJzkB8CfDs/t9YeF4YEdMvYhTBoAlwEJZMcqttP679xoQ5Rqe4BNxp/WN KDb4TU7pSX2h8ELLAYn0/EZzRT8Wq4SPzRmX8SsbUCs4Je4wIlCHn2iRsg7QQofCl9JwWz b/h92eq754q4Bv12vesg0aGawbc+M40RoZqnh03MIYpn7e96dAFCRX7ZxO9oSSnh5BBxdU j+23w3RWjlpn9gycSBOP6Y4f0YUMtNV4my4rbXUKBb5EoM1f05J8hmg0YJ0j1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733258123; a=rsa-sha256; cv=none; b=us9wLMN/o3rVr/IG3NRROW5yhGefAIB21OJScXAFJB47XzBdihndwwWajEN344E/NTaIBe Doa/8DzBdlc1xQlcCntH+9E0uQ4B4sDA63VE4vxVohqaUOKQb1hB3MbqRg3dRcqlc7t7bg zQx3C7+g0H1PMoP9O7p9bF1UCUeDSnJMs59kXeqXu5ieoGmKRhd6pWEeAWoqPIu7j0T7b+ sghh0papQswilEneteKtPcaJQlWEudDNa9jA7pgl/h8NbND8fPGkCmFncRkQZggZTWYuB+ mr8bnbYSQr6q4uwXv92NNFBTS8Zpx5/9giUMegYEQuqF64y5Xyu3P2olQMMgRQ== 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 4Y2spz69CqzdWX for ; Tue, 3 Dec 2024 20:35:23 +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 4B3KZN0P092974 for ; Tue, 3 Dec 2024 20:35:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3KZNYu092973 for threads@FreeBSD.org; Tue, 3 Dec 2024 20:35:23 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: Tue, 03 Dec 2024 20:35:24 +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 #5 from Konstantin Belousov --- (In reply to =D0=BD=D0=B0=D0=B1 from comment #4) Are you stating that you observed the proposed test program hanging approx.= in a week if running in loop? Or that you think that the proposed program is similar to the code that han= gs, but you did not checked the standalone test? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 20:47:42 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 4Y2t5C2Q5Rz5gkhD for ; Tue, 03 Dec 2024 20:47:43 +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 4Y2t5B6XqFz4sdS for ; Tue, 3 Dec 2024 20:47:42 +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=1733258862; 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=B346FHDj9JyVYI6BfdS0B/A3YYjuI+LF5Wc91lZcAv4=; b=I4KJH92t31a46JyXheKMTI3FS8AcMDFj8xTFxNymqR29nc12KETQ68cxkSvcCIac7jqHLk aX/wLhVLvVylP0eBLLuHai9a+mLWG1Z0CfBV/GXgT94DYyrTZLztbPMSnxrpnaSDJFVJ/a pK9X4pjmAynTzvFYKEh/BfFUDhkAgDMA1wXvQHOiKfCbEGZALiXEHn+eYPYLq6VUQBn4et xlQ6U9NxieYes0rDNiu9SKEH7+phfdDA43aG9CgqK5NXUeLc5rVi9gYLnxn0ipgNohpdm4 sh7nEbVTJ8IgyooBZAzDerekvzNxCoj0sgpvpQMSGLvv/5fVF+BgngaspMIivQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733258862; a=rsa-sha256; cv=none; b=uBPCbXvciN8MuLHtweFf8OXS13mGXN26KoKBP+VSAggpToVUQl4Lu6lGo13WTNjvWe5sMA gGI8r7ICXEwSk667jZ0W4OGcBRY49e6bLA8Muvpdvya+DdeZHXgZ/trU3W5Fl/yKlJisHW M2WyoeBPEsHZwom/kTP+82sDE2ho5FhOtUwfQMY68g1ILM14Rs2WuWcnHSPKktCZ+IH2xF fPy/0KlYeIW5PUKGyNzGBPSvAlUSHfo1dgl2j32jrbQ7zX6zoJ4kiFWgPeMkEVS0I18sx5 qwUV8XQmDZ3KuL/YgXofdsQsBc3/hFje/7liVK15FlZkl0vv3xwKv/8WNYtkLA== 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 4Y2t5B50x0zf0Z for ; Tue, 3 Dec 2024 20:47:42 +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 4B3KlgEx010726 for ; Tue, 3 Dec 2024 20:47:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3Klgce010725 for threads@FreeBSD.org; Tue, 3 Dec 2024 20:47:42 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: Tue, 03 Dec 2024 20:47:42 +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: nabijaczleweli@nabijaczleweli.xyz 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 #6 from =D0=BD=D0=B0=D0=B1 = --- No, the original reporter observed his jobs using zfs send hanging around 1= /wk. I haven't tested the minimised version under that angle. I believe the minimised version is equivalent (to the precision of the sleep(1); and fprintf(stderr, "unpaused\n"); calls to what zfs send does. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Dec 3 21:40:15 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 4Y2vFs0DGhz5gnmw for ; Tue, 03 Dec 2024 21:40:17 +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 4Y2vFr687wz4xBN for ; Tue, 3 Dec 2024 21:40:16 +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=1733262016; 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=t9GMxcinJrrodY8CFMcKvC1L/6LVugz5VSUPV1I5WXM=; b=tzIB/cHF/hF9AkQLIG1QLwbH0s+L94/JLbSUj8Z9poGWPbfCa1PXFIueRwFJ7v9Ens4tXz sOC88DOVNhexOSZwkjmhqN7+sQahWonPx+ehqNOb33SqR0V4S8cF90msyxpWBTZzi6/q0j A9Pw7/xQb9CYnw3rUm8j9hCnmaQaPyh4E5y00ofgLUmQxqnW10KsV6WZN63+U0+whRcu77 yk/tpMQKc72jnZIRGSHO3fPOstddl+ZyBL7CgcsbpG3spJXclGMT35/drMi+2vUvY+RKrP SX31nOAM89r2Q7ckaFftnWOUXIpfZWqdIzjaQxH2AO1WcoDhdFVOrV6yovz4QA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733262016; a=rsa-sha256; cv=none; b=l6I6H90ofKINzCuOcurcUCHRq+rdX537h6tKVuxSBRIzqgN0J6dtcaDbBGxUbTZl7xP3HJ bb04ixJ39lStgqikgFQU//bU0Mv6gSfA2cxXpfod8lJkLU6zoeiACtAFqVno/sZ8lS6HJM SpdgnG9ikHBN2EGg1LybDfCy6MtNwcRnSp/Ylawycy/shh30lbLvXwnNwfMvfRMFZUL5V2 30Vuyl3vPEJmplIsRB3+pIcxgXZcZ/m2uATIKI8heuef/hQGZ41RrUBpI3a2qa9V9wV9VR ngzWGLB3rZsQsGcnSynXcx4P/Zb+uO3ZkZ5gK4LwS9aQNvqFHQ0Xb32y7qCiQQ== 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 4Y2vFr5gL6zg54 for ; Tue, 3 Dec 2024 21:40:16 +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 4B3LeGCa003304 for ; Tue, 3 Dec 2024 21:40:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B3LeGqx003302 for threads@FreeBSD.org; Tue, 3 Dec 2024 21:40:16 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: Tue, 03 Dec 2024 21:40:15 +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: vedad@kajtaz.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 vedad@kajtaz.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vedad@kajtaz.net --- Comment #7 from vedad@kajtaz.net --- Hi, I'm one of the reporters. This is occurring on 14.1-RELEASE, on a QEMU-powered vps, roughly once a we= ek on a sequential `zfs send` x 30 datasets, scheduled to run once per hour. Never had issues with a similar replication schedule on other servers runni= ng 14.1-RELEASE (including two other QEMU-powered & 8 bare-metal), nor previous releases. --=20 You are receiving this mail because: You are the assignee for the bug.=