This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16299] pthread_attr_setstacksize ignored
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 06 Dec 2013 22:31:12 +0000
- Subject: [Bug libc/16299] pthread_attr_setstacksize ignored
- Auto-submitted: auto-generated
- References: <bug-16299-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16299
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |carlos at redhat dot com
--- Comment #6 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Ken Nielson from comment #2)
> pthread_attr_setstacksize(&attr, stack_size);
You set the stack size in `attr'
> rc = pthread_create(&wthread,&request_pool->tp_attr,work_thread, &attr);
... but then ask the runtime to use `&request_pool->tp_attr' as the attributes
to create the thread.
You pass `&attr' as the argument to the thread function which will not change
the stack size used by the runtime.
This looks like a defect in your program?
Please confirm.
--
You are receiving this mail because:
You are on the CC list for the bug.