BZ #12310: pthread_exit in static app. segfaults
commite1f0b2cfa14b058ab033431b70428ccda8ec6ed0
authorVladimir Nikulichev <v.nikulichev@gmail.com>
Mon, 24 Jun 2013 21:08:07 +0000 (24 17:08 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Mon, 24 Jun 2013 21:12:30 +0000 (24 17:12 -0400)
tree080ccd4c1667d7114090db2a747ae7de0cefdbb0
parent2f063a6e843c788a05667e6d362d229b3b671920
BZ #12310: pthread_exit in static app. segfaults

Static applications that call pthread_exit on the main
thread segfault. This is because after a thread terminates
__libc_start_main decrements __nptl_nthreads which is only
defined in pthread_create. Therefore the right solution is
to add a requirement to pthread_create from pthread_exit.

~~~
nptl/

2013-06-24  Vladimir Nikulichev  <v.nikulichev@gmail.com>

[BZ #12310]
* pthread_exit.c: Add reference to pthread_create.
NEWS
nptl/ChangeLog
nptl/pthread_exit.c