[uClibc 0002834]: libc_pthread_init() causes segfault
bugs at busybox.net
bugs at busybox.net
Mon Apr 28 20:19:23 UTC 2008
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=2834
======================================================================
Reported By: hank_le
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 2834
Category: Posix Threads
Reproducibility: always
Severity: major
Priority: normal
Status: feedback
======================================================================
Date Submitted: 04-04-2008 12:08 PDT
Last Modified: 04-28-2008 13:19 PDT
======================================================================
Summary: libc_pthread_init() causes segfault
Description:
Initializing programs that link to libpthread segfault. Simple "Hello
World" program segfaults when linked against libpthread, yet runs fine
without. Attached pthread_test.c won't run.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
duplicate of 0002264 pthread issues with 0.9.29
======================================================================
----------------------------------------------------------------------
carmelo73 - 04-22-08 08:23
----------------------------------------------------------------------
Please, specify which libpthread implementation you are using
(old or new linuxthreads) ?
----------------------------------------------------------------------
hank_le - 04-24-08 11:07
----------------------------------------------------------------------
Linking to libpthread causes segfaults using NPTL and linuxthreads (new),
but no problems using linuxthreads (old).
----------------------------------------------------------------------
carmelo73 - 04-24-08 22:23
----------------------------------------------------------------------
There is not NPTL implementation for x86, so how can you link against it ?
it doesn't make sense.
Trying using a freshen version to see if the fix in linuxthreads suggested
by Will (that I applied) works or not.
----------------------------------------------------------------------
hank_le - 04-28-08 13:19
----------------------------------------------------------------------
I grabbed a buildroot snapshot from 2008-04-25 and rebuilt everything using
my oritional .config (uClibc-0.9.29, NPTL/linuxthreads,gcc-4.2.1,
binutils-2.18) and my pthread_test.c compiles and runs ok now. I need to
re-verify the versions used, but the problem seems to be fixed.
BTW, for my x86 target, I "chose" NPTL in the menuconfig, but it seems
that that linuxthreads is actually used (a little misleading). Sorry for
the confusion.
Issue History
Date Modified Username Field Change
======================================================================
04-04-08 12:08 hank_le New Issue
04-04-08 12:08 hank_le Status new => assigned
04-04-08 12:08 hank_le Assigned To => uClibc
04-04-08 12:08 hank_le File Added: pthread_test.c
04-19-08 23:00 carmelo73 Relationship added duplicate of 0002264
04-22-08 08:23 carmelo73 Note Added: 0006974
04-24-08 11:07 hank_le Note Added: 0007054
04-24-08 22:23 carmelo73 Note Added: 0007104
04-24-08 22:29 carmelo73 Status assigned => feedback
04-28-08 13:19 hank_le Note Added: 0007284
======================================================================
More information about the uClibc-cvs
mailing list