[Bug nptl/12310] pthread_exit() in main thread segfaults when statically-linked

carlos at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 24 21:12:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=12310

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Carlos O'Donell <carlos at redhat dot com> ---
Fixed.

commit 963509c045d192b5a27891617b907fb857042f36
Author: Vladimir Nikulichev <v.nikulichev@gmail.com>
Date:   Mon Jun 24 17:08:07 2013 -0400

    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.

---

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list