Date: Fri, 20 Dec 2024 11:10:13 +0000 From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 283101] pthread_cancel() doesn't cancel a thread that's currently in pause() Message-ID: <bug-283101-13406-8wSzG8NPZX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-283101-13406@https.bugs.freebsd.org/bugzilla/> References: <bug-283101-13406@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283101 --- Comment #16 from vedad@kajtaz.net --- (In reply to Konstantin Belousov from comment #14) Here it is: (gdb) print *pthread $1 =3D {tid =3D 394413, 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 0xf1713c12000, tqe_p= rev =3D 0x821f39590 <_thread_list>}, gcle =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, hle =3D {le_next =3D 0x0, le_prev = =3D 0x821f39e20}, wle =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, refcount =3D 1, start_routine =3D 0x201a70 <thread>, 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 0x823a8f000, stacksize_attr =3D 2097152, guardsize_a= ttr =3D 4096, cpuset =3D 0x0, cpusetsize =3D 0}, sigcancel_cnt =3D 1, sigcancel_cri= t_cnt =3D 1, cancel_enable =3D 1, cancel_pending =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_sigsus= pend =3D 1, deferred_siginfo =3D {si_signo =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, siv= al_ptr =3D 0x0, sigval_int =3D 0, sigval_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 0= x0, __sa_sigaction =3D 0x0}, sa_flags =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, jo= iner =3D 0xf1713c12000, flags =3D 0, tlflags =3D 2, mq =3D {{ tqh_first =3D 0x0, tqh_last =3D 0xf1713c12fb0}, {tqh_first =3D 0x0, t= qh_last =3D 0xf1713c12fc0}, {tqh_first =3D 0x0, tqh_last =3D 0xf1713c12fd0}, {tqh_first= =3D 0x0, tqh_last =3D 0xf1713c12fe0}, {tqh_first =3D 0x0, tqh_last =3D 0xf1713c12ff0= }, {tqh_first =3D 0x0, tqh_last =3D 0xf1713c13000}}, ret =3D 0x0, specific =3D 0x0, specific_data_count =3D 0, rdlock_count =3D 0, rtld_bits =3D 0, tcb =3D 0xf= 171420f120, cleanup =3D 0x0, ex =3D {exception_class =3D 0, exception_cleanup =3D 0x0, = private_1 =3D 0, private_2 =3D 0}, unwind_stackend =3D 0x823c8f000, unwind_disabled =3D 0, magic =3D 3499860245, report_events =3D 0, event_m= ask =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 <repeats 50 times>}, wake_addr =3D 0xf1714200018, sleepqueue =3D 0xf1713c19080, name =3D 0x0, dlerror_msg =3D = '\000' <repeats 511 times>, dlerror_seen =3D 0} (gdb) print *curthread $2 =3D {tid =3D 100589, 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 0x0, tqe_prev =3D 0x= f1713c12e40}, gcle =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, hle =3D {le_next =3D 0x0, le_prev =3D 0x821f39db0}, = wle =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, refcount =3D 0, start_routine =3D 0x0= , arg =3D 0x0, attr =3D {sched_policy =3D 2, sched_inherit =3D 4, prio =3D 0, suspend =3D = 0, flags =3D 258, stackaddr_attr =3D 0x8003a5000, stacksize_attr =3D 536870912, guardsize_attr =3D 4096, cpuset =3D 0x0, = cpusetsize =3D 0}, sigcancel_cnt =3D 0, sigcancel_crit_cnt =3D 0, cancel_enable =3D 1, cancel_pending =3D 0, 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 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 0x0, flags =3D 0, tlflags =3D 2, mq =3D= {{tqh_first =3D 0x0, tqh_last =3D 0xf1713c121b0}, { tqh_first =3D 0x0, tqh_last =3D 0xf1713c121c0}, {tqh_first =3D 0x0, t= qh_last =3D 0xf1713c121d0}, {tqh_first =3D 0x0, tqh_last =3D 0xf1713c121e0}, {tqh_first= =3D 0x0, tqh_last =3D 0xf1713c121f0}, {tqh_first =3D 0x0, tqh_last =3D 0xf1713c12200= }}, ret =3D 0x0, specific =3D 0x0, specific_data_count =3D 0, rdlock_count =3D 0, rtld_bits =3D 0, tcb =3D 0xf171381c120, cleanup =3D 0x8203a39f0, ex =3D {exception_class =3D 0, exception_cleanup =3D 0x0, private_1 =3D 0, private_2 =3D 0}, unwind_stacke= nd =3D 0x8203a5000, 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, 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 <repeats 50 times>}, wake_addr =3D 0x821f3a0e0, sleepqueue =3D 0xf1713c19000, name =3D 0x0, dlerror_msg =3D "Invalid shared object handle 0x821f39bf0", '\000' <repeats 471 times>, dlerror_seen =3D 1} --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283101-13406-8wSzG8NPZX>