This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/22337] New: pthread_join incorrectly fails for a detached running thread


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

            Bug ID: 22337
           Summary: pthread_join incorrectly fails for a detached running
                    thread
           Product: glibc
           Version: 2.26
            Status: NEW
          Severity: minor
          Priority: P3
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
             Flags: security-

Created attachment 10551
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10551&action=edit
join-detach.c

POSIX requires that pthread_detach does not change the joinable state of a
thread.  The joinable state is only set a thread creation time according to
POSIX.

The attached reproducer must not terminate.  It currently fails with:

join-detach: pthread_join: Invalid argument

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]