From nobody Thu Dec 19 09:50:39 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 4YDQlh29Bjz5gwRK for ; Thu, 19 Dec 2024 09:50:40 +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 4YDQlg0jkfz49dN for ; Thu, 19 Dec 2024 09:50:39 +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=1734601839; 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=hhQcB3AeBjxYxgkuTN8lMCU11wnEESCxVK+W7Vqnq8M=; b=W7uf2R1rFX04ZC9+YYtf7c+8i5GYVbTXJ3OBGvJnWwAzt0GGmx7Q6M5I/PUHQjws9sPyE3 LmNr1oO4rU4rY88XiOsgfC11rUj5TWKhtFOfB6HqvyC/V/CfVU9K99M39LxMrcXZVpavWS NQjPb7Q45NtptgdB9/kacLMU2nXAZ3WUacyVyLhZ8RWpxDZk/ocy0LKoPdpVuHWkUKoL9E 2CkG/J42yvvHhJGGeqV7FyE/aVfQ2pflOw53qm/BKyH4MxS2OsDxm0U+jeng4dnenu1/Bp xXTay37Zj8AyuKf9vxMEJwUctANmMEbN3pm515lrcouKXEWSxuw1foRkQImXLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734601839; a=rsa-sha256; cv=none; b=OvGEDiKJElXtEB7rP32rgXCd7lmpp7kKTpGi4dku/OWM6AC7fwBAldTD8ORgh+oscmKlqO lHo5R+I90F/AOpfxf2PEY/inWVZpTbp3b3uELBCbKnGj5CfUomYmGdpDkXIYjRybVjZs6e 1jsYjst9B2SX45G6Pyo1VWwY72ROGOtsYPFM+QYP4k0PlyZhp83wn+v08rfZ1PR4aO23ib l/naDvFGhgeV5qIZhir04XF0fcO1iESTSOYjEVpWaPgOJZ6OIXqTEtYHSS6zeFSSnPFOk5 ZmYXYOBHl1Dt5OVtPuWI/0e1tViHeAMxzOZ/MUH0VWnmaFSJrrABqw+NaWqbTQ== 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 4YDQlg02H2zpMJ for ; Thu, 19 Dec 2024 09:50:39 +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 4BJ9ocbZ039603 for ; Thu, 19 Dec 2024 09:50:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BJ9ocov039602 for threads@FreeBSD.org; Thu, 19 Dec 2024 09:50:38 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 09:50:39 +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: 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 #12 from vedad@kajtaz.net --- (In reply to Konstantin Belousov from comment #11) (gdb) thread apply all bt full Thread 2 (LWP 215869 of process 56582): #0 _sigsuspend () at _sigsuspend.S:4 No locals. #1 0x000000082268cfb6 in __thr_sigsuspend (set=3D0x8269d3f90) at /usr/src/lib/libthr/thread/thr_sig.c:688 newset =3D {__bits =3D {0, 0, 0, 0}} curthread =3D 0x3a2768013500 old =3D 0 ret =3D #2 0x0000000823a09a65 in __pause () at /usr/src/lib/libc/gen/pause.c:51 oset =3D {__bits =3D {0, 0, 0, 0}} #3 0x0000000000201ac5 in thread () No symbol table info available. #4 0x0000000822683b05 in thread_start (curthread=3D0x3a2768013500) at /usr/src/lib/libthr/thread/thr_create.c:289 set =3D {__bits =3D {0, 0, 660918232, 8}} #5 0x0000000000000000 in ?? () No symbol table info available. Backtrace stopped: Cannot access memory at address 0x8269d4000 Thread 1 (LWP 100557 of process 56582): #0 _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:= 38 No locals. #1 0x0000000822690cdb in _thr_umtx_wait (mtx=3D0x3a2768013500, id=3D215869, timeout=3D0x0) at /usr/src/lib/libthr/thread/thr_umtx.c:198 No locals. #2 0x0000000822685a2e in join_common (pthread=3D0x3a2768013500, thread_return=3D0x820817e20, abstime=3D0x0, peek=3D) at /usr/src/lib/libthr/thread/thr_join.c:144 __cup =3D {prev =3D 0x0, routine =3D 0x822685ba0 , ro= utine_arg =3D 0x3a2768013500, onheap =3D 0} ts =3D {tv_sec =3D 34905095632, tv_nsec =3D 34937006492} ts2 =3D {tv_sec =3D 100557, tv_nsec =3D 63940923039744} curthread =3D 0x3a2768012000 ret =3D tid =3D 215869 tsp =3D 0x34b3d tmp =3D #3 0x0000000000201a4a in main () No symbol table info available. (gdb) frame 2 #2 0x0000000822685a2e in join_common (pthread=3D0x3a2768013500, thread_return=3D0x820817e20, abstime=3D0x0, peek=3D) at /usr/src/lib/libthr/thread/thr_join.c:144 144 ret =3D _thr_umtx_wait(&pthread->tid, tid, tsp); (gdb) print *pthread $2 =3D {tid =3D 215869, lock =3D {m_owner =3D 0, m_flags =3D 0, m_ceilings = =3D {0, 0}, m_rb_lnk =3D 0, m_spare =3D {0, 0}}, cycle =3D 0, locklevel =3D 0, critical= _count =3D 0, sigblock =3D 0, fsigblock =3D 0, tle =3D {tqe_next =3D 0x3a2768012000, tqe_= prev =3D 0x822694580 <_thread_list>}, gcle =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, hle =3D {le_next =3D 0x0, le_prev = =3D 0x822694e58}, wle =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, refcount =3D 1, start_routine =3D 0x201ab0 , arg =3D 0x0, attr =3D {sched_policy = =3D 2, sched_inherit =3D 4, prio =3D 0, suspend =3D 0, flags =3D 2, stackaddr_attr =3D 0x8267d4000, stacksize_attr =3D 2097152, guardsize_a= ttr =3D 4096, cpuset =3D 0x0, cpusetsize =3D 0}, cancel_enable =3D 1, cancel_pendin= g =3D 1, cancel_point =3D 1, no_cancel =3D 0, cancel_async =3D 0, cancelling =3D 0, = sigmask =3D {__bits =3D {0, 0, 0, 0}}, unblock_sigcancel =3D 0, in_sigsuspend =3D 1, deferred_siginfo =3D {si_si= gno =3D 0, si_errno =3D 0, si_code =3D 0, si_pid =3D 0, si_uid =3D 0, si_status =3D 0,= si_addr =3D 0x0, si_value =3D {sival_int =3D 0, sival_ptr =3D 0x0, sigval_int =3D 0, si= gval_ptr =3D 0x0}, _reason =3D {_fault =3D { _trapno =3D 0}, _timer =3D {_timerid =3D 0, _overrun =3D 0}, _mesgq= =3D {_mqd =3D 0}, _poll =3D {_band =3D 0}, _capsicum =3D {_syscall =3D 0}, __spare__ =3D = {__spare1__ =3D 0, __spare2__ =3D {0, 0, 0, 0, 0, 0, 0}}}}, deferred_sigmask =3D {__bits = =3D {0, 0, 0, 0}}, deferred_sigact =3D { __sigaction_u =3D {__sa_handler =3D 0x0, __sa_sigaction =3D 0x0}, sa_fl= ags =3D 0, sa_mask =3D {__bits =3D {0, 0, 0, 0}}}, deferred_run =3D 0, force_exit =3D = 0, state =3D PS_RUNNING, error =3D 0, joiner =3D 0x3a2768012000, flags =3D 0, tlflags = =3D 2, mq =3D {{tqh_first =3D 0x0, tqh_last =3D 0x3a27680136a8}, {tqh_first =3D 0x0, tqh_last =3D 0x3a27= 680136b8}, {tqh_first =3D 0x0, tqh_last =3D 0x3a27680136c8}, {tqh_first =3D 0x0, tqh_l= ast =3D 0x3a27680136d8}, {tqh_first =3D 0x0, tqh_last =3D 0x3a27680136e8}, {tqh_fir= st =3D 0x0, tqh_last =3D 0x3a27680136f8}}, ret =3D 0x0, specific =3D 0x0, specific_data_count =3D 0, rdlock_count = =3D 0, rtld_bits =3D 0, tcb =3D 0x3a276860b120, cleanup =3D 0x0, ex =3D {exception= _class =3D 0, exception_cleanup =3D 0x0, private_1 =3D 0, private_2 =3D 0}, unwind_stacke= nd =3D 0x8269d4000, unwind_disabled =3D 0, magic =3D 3499860245, report_events =3D 0, event_mask =3D 0, event_buf = =3D {event =3D TD_EVENT_NONE, th_p =3D 0, data =3D 0}, wchan =3D 0x0, mutex_obj =3D 0x0, w= ill_sleep =3D 0, nwaiter_defer =3D 0, robust_inited =3D 0, robust_list =3D 0, priv_robust= _list =3D 0, inact_mtx =3D 0, defer_waiters =3D { 0x0 }, wake_addr =3D 0x3a2768600030, sleepqueue =3D 0x3a27680190c0, name =3D 0x0, dlerror_msg =3D '\000' , dlerror_seen =3D 0} --=20 You are receiving this mail because: You are the assignee for the bug.=