[PATCH V2] libpthread: pthread_exit in static app. segfaults

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Jul 4 09:26:49 UTC 2013


On Mon, Jul 01, 2013 at 03:55:26PM +0200, Filippo ARCIDIACONO wrote:
>Static applications that call pthread_exit on the main thread segfault.
>This is because after a thread terminates __uClibc_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.
>This patch has been backported from glibc tree:
>http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e1f0b2cfa14b058ab033431b70428ccda8ec6ed0
>For further detail see also glibc bug at:
>http://sourceware.org/bugzilla/show_bug.cgi?id=12310

Applied, thanks!


More information about the uClibc mailing list