This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/6973] New: NPTL wrongly includes guard area inside allocated stack
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Oct 2008 16:38:09 -0000
- Subject: [Bug nptl/6973] New: NPTL wrongly includes guard area inside allocated stack
- Reply-to: sourceware-bugzilla at sourceware dot org
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.