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/19430] New: __reclaim_stacks is bogus


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

            Bug ID: 19430
           Summary: __reclaim_stacks is bogus
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

If I read the __reclaim_stacks code correctly, it frees the stack of all other
threads after a fork.  This is not a safe thing to do because pointers to
on-stack data may have been written to global variables or shared with the
current thread by other means, and those objects have to be remain valid after
fork.

-- 
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]