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/6973] New: NPTL wrongly includes guard area inside allocated stack


In the NPTL implementation, the guard area (as set by
pthread_attr_setguardsize()) is included in (i.e., deducted from) the stack
allocation.  Common sense says that it should be added to the allocation, and
indeed POSIX.1-2001 and POSIX.1-2008 are clear on this point; from the
specification 2008 pthread_attr_setguardsize():

"If a thread?s stack is created with guard protection, the implementation
allocates extra memory at the overflow end of the stack as a buffer against
stack overflow of the stack pointer."

Solaris adheres to POSIX.1 on this point.  NPTL should also.

-- 
           Summary: NPTL wrongly includes guard area inside allocated stack
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: mtk dot manpages at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6973

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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