public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/29214] New: pthread_setcanceltype fails to set type
@ 2022-05-31 17:19 robin at gareus dot org
  2022-05-31 18:45 ` [Bug nptl/29214] " adhemerval.zanella at linaro dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: robin at gareus dot org @ 2022-05-31 17:19 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29214

            Bug ID: 29214
           Summary: pthread_setcanceltype fails to set type
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: robin at gareus dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 14127
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14127&action=edit
example code to reproduce the bug

With glibc-2.35-69-g28ea43f8d6 (as currently shipped by archlinux and openSuSE)
it is no longer possible to change the pthread cancel type to
`PTHREAD_CANCEL_ASYNCHRONOUS'.

This leads to applications that rely on async cancellation to never terminate
[1].

The problem was introduced by commit ba9c42ac0e265bf1e4ec1075fa20e7166fda8bfc,
and reverting that fixes the issue [2].

Attached is a small test-tool to reproduce the bug.

--

[1] https://discourse.ardour.org/t/ardour-hanging-at-shutdown/107260 in this
case JACK waits on a futex, just like the test-tool.

[2] The problem seems to be specific to the change in `pthread_setcanceltype',
not the overall commit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-08 12:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 17:19 [Bug nptl/29214] New: pthread_setcanceltype fails to set type robin at gareus dot org
2022-05-31 18:45 ` [Bug nptl/29214] " adhemerval.zanella at linaro dot org
2022-05-31 18:56 ` adhemerval.zanella at linaro dot org
2022-05-31 19:12 ` robin at gareus dot org
2022-05-31 19:16 ` adhemerval.zanella at linaro dot org
2022-06-01  1:41 ` robin at gareus dot org
2022-06-08 12:36 ` adhemerval.zanella at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).