On Fri, Apr 07, 2006 at 05:28:41PM -0400, Daniel Eischen wrote: > Does this work for you: > > http://people.freebsd.org/~deischen/symver/libc_r.symver.diffs > > ? Not really: %cat phello.c #include <pthread.h> #include <stdio.h> #define NUM_THREADS 5 void *PrintHello(void *threadid) { printf("\n%d: Hello World!\n", threadid); pthread_exit(NULL); } int main (int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int rc, t; for(t=0; t<NUM_THREADS; t++){ printf("Creating thread %d\n", t); rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t); if (rc){ printf("ERROR; return code from pthread_create() is %d\n", rc); exit(-1); } } pthread_exit(NULL); } %gcc -o phello phello.c -pthread %env LD_LIBMAP=libpthread.so.2=libc_r.so ./phello Fatal error 'Thread jump table not properly initialized' at line 252 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 0) Fatal error 'Thread jump table not properly initialized' at line 252 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 0) Fatal error 'Thread jump table not properly initialized' at line 252 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 0) Fatal error 'Thread jump table not properly initialized' at line 252 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 0) Fatal error 'Thread jump table not properly initialized' at line 252 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 0) [and so on...] Regards, CsabaReceived on Mon Apr 10 2006 - 14:19:50 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:54 UTC