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 nptl/12310] pthread_exit() in main thread segfaults when statically-linked


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

--- Comment #6 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Vladimir Nikulichev from comment #5)
> There are two another solutions:
> 
> 1) Move __nptl_nthreads to separate object file and don't mark the reference
> as weak. I think it is better semantically.

Please investigate having pthread_exit reference __nptl_nthreads. We don't want
to unconditionally include __nptl_nthreads if we can avoid it.

> 2) Check if &__nptl_nthreads == NULL in libc-start.

This isn't needed if pthread_exit correctly references all of the data that it
needs. Keeping the code simpler is better for maintenance.

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