From nobody Fri Dec 20 11:10:13 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 4YF4T14c4Fz5hnnD for ; Fri, 20 Dec 2024 11:10:13 +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 4YF4T11bvzz4TqD for ; Fri, 20 Dec 2024 11:10:13 +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=1734693013; 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=vM6bTgAMFnTl77VOg/G5tnUsfCaopZSma8KLsmDlAtk=; b=kt2v15FDP2DAGl4nj0QrZwkZLpXnXpBoAbCJjO36EFL6c1DZADb+hNCyPuhyQjLYkIXU8s gGInNp6aZvwC+FIIdy/TnKKe0pehchSEGxqsXd+MjF8Lt7zqBqrIGjsYLz/6atdGfpmeu0 d1ruTRfPR0Ccii3uNSu+TsF/f69EIqtRbzoljNy4qPhagLWi7ZwN8IH0JE2ZoXCrPRy/dp AykZLus4a5fkJSTa+8+3JtvV7eUUQfJjMygM9lg0uE9KxfIdUtLDY7jlaZra5MJaZVHNt+ cSDhx00n4JBe+fTOgtIaWWN7fVpmnbQgabaxxJ25EZ85NPYyAtpQTs8dL1fVJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734693013; a=rsa-sha256; cv=none; b=nILY3esMRIRDAMbX6GxmIYmUje47Znh5c4tOyv90rsDg+Pe3JyxeYI9BQLQJFbqVyEqdfQ dWtgqQwn3YxX/VklcPJOOi4VlI8r/kpKQlLea+FKolwC3ZsqcmVoMFuGm1X+e8qGBGYJDS id2vppQiZZEjjC0Q/vhkfpkoEYyczelkDoo5NzIrEMDZejBb5l9B+RTZlIaj2K0bmWbf1u MB05OB9obbp74hRrZoVfnP67JtDEQLbZ3G0mME8idNOwJXXJB9IK5XZLc5H72wTsBax26f 2tdvyyBB3he+0y2aezOjpjYVnQhML7tpG772l+YU72Cu8+fmUq0RaODLC0/WSQ== 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 4YF4T114ymzc0m for ; Fri, 20 Dec 2024 11:10:13 +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 4BKBADEm052341 for ; Fri, 20 Dec 2024 11:10:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BKBADsx052340 for threads@FreeBSD.org; Fri, 20 Dec 2024 11:10:13 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: Fri, 20 Dec 2024 11:10:13 +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 #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 , 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 }, wake_addr =3D 0xf1714200018, sleepqueue =3D 0xf1713c19080, name =3D 0x0, dlerror_msg =3D = '\000' , 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 }, wake_addr =3D 0x821f3a0e0, sleepqueue =3D 0xf1713c19000, name =3D 0x0, dlerror_msg =3D "Invalid shared object handle 0x821f39bf0", '\000' , dlerror_seen =3D 1} --=20 You are receiving this mail because: You are the assignee for the bug.=