From nobody Sun Dec 22 00:04:07 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 4YG1bX1CJ6z5hhhM for ; Sun, 22 Dec 2024 00:04:08 +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 4YG1bX08Lhz58ZX for ; Sun, 22 Dec 2024 00:04:08 +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=1734825848; 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=Ke4djM4b4jwB8CLpEynIQflrO3oPx1ohCnWZyz8j5G8=; b=h9VhTwFi1y8GB2mBfpsM9QoJ60kRPZwVBSQjvv6wUpej4RHb0+fEp8agCOLRKWvAhIvNll Jt4xm7EoRmaqQQs6RGwXkqiV0UuICscDmlKH6gPWY/k3qwUIdN6w8NNSxEklpbIU9VblJJ uN54ph0PM1klWPtT3GjinEL103AgM6Ia7vdu9KyOenZdEEKxx//q8Fch/AaFdT54K9ud9g RCwcqHz+h4m0tf+16CmizDHOLrh6r2xk9Zzlct4KV2nwvZZkvmFhlz6q/dC2xTQ+mKrbZQ aeOmoUFZyxkXD5eSdg/zzrOpZNvYJqIMStxi0Rqtou6Y+9yAoSkUVkzFSoJeyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734825848; a=rsa-sha256; cv=none; b=tbTGwIQAf727QY0l4AF2l1jsHHvlmTaTs6h/cMgNi1TWaS9ecb6Caf+SEhB7P6eynVd7Aw 8BNaS2pHArgWG0dVPruu4b2c3bq/7CrzNy26qw1qsHwBvQ07YW0bndbmUWujvG5uxuKd0+ XQb9LdMQSp0rAWeo0fTMM/4/Pgq3pzhNfSaQomlx8FZVYOPc9cl8HrUzz0s9j+otqjKkWH X6WYfEDG/YbtCkcnJ4KM7KPo+F72ruqm8MIL2O1XTHsrS6E3uqeUVrksigWiMsKyNOKhQp WhauR1eZMvOo4NfK+M2QJqvgwEGwluqY1MPc59FuRtF2Nr8QH374I9OZuLU6eA== 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 4YG1bW6nHlzlP0 for ; Sun, 22 Dec 2024 00:04:07 +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 4BM04745081927 for ; Sun, 22 Dec 2024 00:04:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BM047IK081926 for threads@FreeBSD.org; Sun, 22 Dec 2024 00:04:07 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: Sun, 22 Dec 2024 00:04:07 +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 #20 from vedad@kajtaz.net --- (In reply to Konstantin Belousov from comment #19) (gdb) thread apply all bt full Thread 2 (LWP 100391): #0 _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:= 38 No locals. #1 0x00000008215fdd4b in _thr_umtx_wait (mtx=3D0xd7be813c00, id=3D707144, timeout=3D0x0) at /usr/src/lib/libthr/thread/thr_umtx.c:198 No locals. #2 0x00000008215f2a7e in join_common (pthread=3D0xd7be813c00, thread_return=3D0x820da5ca0, abstime=3D0x0, peek=3D) at /usr/src/lib/libthr/thread/thr_join.c:144 __cup =3D {prev =3D 0x0, routine =3D 0x8215f2bf0 , ro= utine_arg =3D 0xd7be813c00, onheap =3D 0} ts =3D {tv_sec =3D 34910919760, tv_nsec =3D 34919627244} ts2 =3D {tv_sec =3D 0, tv_nsec =3D 926614102016} curthread =3D 0xd7be812000 ret =3D tid =3D 707144 tsp =3D 0xaca48 tmp =3D #3 0x0000000000201aee in thread_cancel_and_join (ptid=3D0xd7be813c00) at pthread.c:28 status =3D 0x0 error =3D 0 #4 0x0000000000201a2c in main (argc=3D1, argv=3D0x820da5d78) at pthread.c:= 73 ptid =3D 0xd7be813c00 err =3D 0 iteration =3D 499 pid =3D 31870 Thread 1 (LWP 707144): #0 abort2 () at abort2.S:4 No locals. #1 0x00000008215f9b0d in sigcancel_handler (sig=3D, info=3D, ucp=3D) at /usr/src/lib/libthr/thread/thr_sig.c:199 p =3D {0xd7be813c00} curthread =3D 0xd7be813c00 err =3D #2 No symbol table info available. #3 _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:= 38 No locals. #4 0x00000008215fda30 in __thr_umutex_lock (mtx=3D0xd7be813c08, id=3D70714= 4) at /usr/src/lib/libthr/thread/thr_umtx.c:79 owner =3D #5 0x00000008215f0aa4 in _thr_umutex_lock (mtx=3D0xd7be813c08, id=3D17) at /usr/src/lib/libthr/thread/thr_umtx.h:123 No locals. #6 thread_start (curthread=3D0xd7be813c00) at /usr/src/lib/libthr/thread/thr_create.c:264 set =3D {__bits =3D {0, 0, 617922520, 8}} #7 0x0000000000000000 in ?? () No symbol table info available. Backtrace stopped: Cannot access memory at address 0x82452e000 (gdb) frame 1 #1 0x00000008215f9b0d in sigcancel_handler (sig=3D, info=3D, ucp=3D) at /usr/src/lib/libthr/thread/thr_sig.c:199 199 abort2("thr_in_critical %p", 1, p); (gdb) print *curthread $1 =3D {tid =3D 707144, 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 1, critical= _count =3D 0, sigblock =3D 0, fsigblock =3D 0, tle =3D {tqe_next =3D 0xd7be812000, tqe_pr= ev =3D 0x821601600 <_thread_list>}, gcle =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, hle =3D {le_next =3D 0x0, le_prev = =3D 0x821601f10}, wle =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, refcount =3D 1, start_routine =3D 0x201a70 , 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 0x82432e000, 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 0, 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 0, 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 0xd7be812000, flags =3D 0, tlflags =3D = 2, mq =3D {{tqh_first =3D 0x0, tqh_last =3D 0xd7be813da8}, {tqh_first =3D 0x0, tqh_last =3D 0xd7be81= 3db8}, {tqh_first =3D 0x0, tqh_last =3D 0xd7be813dc8}, {tqh_first =3D 0x0, tqh_las= t =3D 0xd7be813dd8}, {tqh_first =3D 0x0, tqh_last =3D 0xd7be813de8}, {tqh_first = =3D 0x0, tqh_last =3D 0xd7be813df8}}, ret =3D 0x0, specific =3D 0x0, specific_data_count =3D 0, rdlock_count =3D 0, rtld_bit= s =3D 0, tcb =3D 0xd7bee07120, cleanup =3D 0x0, ex =3D {exception_class =3D 0, exception= _cleanup =3D 0x0, private_1 =3D 0, private_2 =3D 0}, unwind_stackend =3D 0x0, unwind_dis= abled =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, will_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 0xd7bee00048, sleepqueue =3D 0xd7be819100, 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.=