This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16299] New: pthread_attr_setstacksize ignored
- From: "knielson at adaptivecomputing dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 06 Dec 2013 20:33:54 +0000
- Subject: [Bug libc/16299] New: pthread_attr_setstacksize ignored
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16299
Bug ID: 16299
Summary: pthread_attr_setstacksize ignored
Product: glibc
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: knielson at adaptivecomputing dot com
CC: drepper.fsp at gmail dot com
The stack size value set with pthread_attr_setstacksize is ignored when a
thread is started using pthread_create.
For example, if ulimit -s is set to 8192 and then you try to set the stack size
to 4096 the call to pthread_attr_setstacksize succeeds.
pthread_attr_getstacksize will return 4096 as well. But when the thread is
created it uses the 8192 value as the basis for the stack.
It does not make a difference if you try to increase or decrease the stack size
of the thread. The default value is always used.
--
You are receiving this mail because:
You are on the CC list for the bug.