shared library using pthreads
- From: "ArvinD" <arvind.ayyangar@xxxxxxxxx>
- Date: 30 Jan 2006 04:01:41 -0800
hi,
i have written a shared library for a garbage collector. i want to
multithread it.
when i compile the user program as
gcc test.cpp -lgc -ldl
the program executes in the desired manner. (__note__ i am not using
any threading features as yet)
but if i compile it as gcc test.cpp -lgc -ldl -pthread , it gives no
errors but on executing gives segmentation fault. why is it so?
__note__ i have written a wrapper routine for malloc and i think it is
aborting wen the user program is calling malloc.
thanx in advance,
.
- Follow-Ups:
- Re: shared library using pthreads
- From: Paul Pluzhnikov
- Re: shared library using pthreads
- Prev by Date: Re: What does the '+' sign mean in a partition table displayed by fdisk?
- Next by Date: Re: shared library using pthreads
- Previous by thread: Help: Possible bug in GNU AS, or more likely stupid developer!
- Next by thread: Re: shared library using pthreads
- Index(es):
Relevant Pages
|