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] pthread_attr_setstacksize ignored


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.


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