public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/29029] New: poll() spuriously returns EINTR during thread cancellation and with cancellation disabled
@ 2022-04-05 21:32 aurelien at aurel32 dot net
  2022-04-05 22:28 ` [Bug nptl/29029] " adhemerval.zanella at linaro dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: aurelien at aurel32 dot net @ 2022-04-05 21:32 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29029
           Summary: poll() spuriously returns EINTR during thread
                    cancellation and with cancellation disabled
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: aurelien at aurel32 dot net
                CC: adhemerval.zanella at linaro dot org, drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 14049
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14049&action=edit
Reproducer

Rémi Denis-Courmont has reported a regression introduced in glibc 2.34, and I
am not sure if it is allowed by the standard or not. In short when thread
cancellation is disabled, calling pthread_setcancelstate() causes a spurious
EINTR error in poll() in the child.

It has been introduced by the following commit:
https://sourceware.org/git/?p=glibc.git;a=commit;h=26cfbb7162ad364d53d69f6d482f2d87b5950524

I have also attached the reproducer Rémi provided. More details can be found on
https://bugs.debian.org/1008174

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

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

end of thread, other threads:[~2023-06-21 14:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 21:32 [Bug nptl/29029] New: poll() spuriously returns EINTR during thread cancellation and with cancellation disabled aurelien at aurel32 dot net
2022-04-05 22:28 ` [Bug nptl/29029] " adhemerval.zanella at linaro dot org
2022-04-06 13:27 ` fweimer at redhat dot com
2022-04-06 13:31 ` fweimer at redhat dot com
2022-04-06 14:38 ` adhemerval.zanella at linaro dot org
2022-04-06 14:41 ` fweimer at redhat dot com
2022-04-06 14:46 ` adhemerval.zanella at linaro dot org
2022-04-06 15:28 ` adhemerval.zanella at linaro dot org
2022-04-14 18:43 ` adhemerval.zanella at linaro dot org
2023-06-21  3:00 ` andres at anarazel dot de
2023-06-21 14:25 ` 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).