[676] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Help needed. 1st use of pthreads. Core dump running test_create.

daemon@ATHENA.MIT.EDU (Bob Beckwith)
Mon Jul 14 19:23:31 1997

Date: Mon, 14 Jul 97 19:10:12 EDT
From: beckwith@whinny.tdh.qntm.com (Bob Beckwith)
To: pthreads@MIT.EDU


I'm trying to run "my first pthreads program". I've used threads before
but this is the first time I've used proven's pthreads.

I did a pure vanilla build of pthreads-1_60_beta6 (i.e. ./configure;make)
I'm running SunOS 4.1.4 and compiled everything using gcc 2.6.0

I compiled test_create.c using the following command line:

gcc -I../include -L../lib -lpthread -lm -lpthread -lm -g test_create.c

when I run the resulting executable, it dies. While this may not be
meaningful (i.e. the stack I'm looking at may not be valid - but certainly
seems to be) I see:

#0  0xef66c5e0 in kill ()
#1  0x5d3c in abort () at /tmp_mnt/bigbear/beckwith/pthreads-1_60_beta6/stdlib/abort.c:56
#2  0x394c in sig_init ()
    at /tmp_mnt/bigbear/beckwith/pthreads-1_60_beta6/pthreads/signal.c:595
#3  0x9ff0 in pthread_init ()
    at /tmp_mnt/bigbear/beckwith/pthreads-1_60_beta6/pthreads/pthread_init.c:114
#4  0x49f8 in global constructors keyed to __pthread_init_hack () at include/pthread.h:286
#5  0xc38c in __do_global_ctors ()
#6  0xc3d0 in __main ()
#7  0xc278 in main () at test_create.c:25

All thoughts, ideas, suggestions would be very much appreciated!

  Thanks!

  --Bob


home help back first fref pref prev next nref lref last post