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 libc/16299] New: pthread_attr_setstacksize ignored


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.


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