This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/12310] pthread_exit() in main thread segfaults when statically-linked
- From: "wintersonnenwende at yandex dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 17 May 2013 14:29:13 +0000
- Subject: [Bug nptl/12310] pthread_exit() in main thread segfaults when statically-linked
- Auto-submitted: auto-generated
- References: <bug-12310-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12310
--- Comment #3 from Vladimir Nikulichev <wintersonnenwende at yandex dot ru> 2013-05-17 14:29:13 UTC ---
I guess nobody expected static program working with threads but not invoking
pthread_create() anywhere. So in real cases weak reference doesn't make
problems
Obvious solution could be adding reference to __nptl_nthreads in pthread_exit.c
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.