Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pthread_mutex_init() crashes in libthread.so.1

807567Apr 9 2004 — edited Jul 8 2009
I have a strange problem. In my Makefile I link the libpthread.so explicitly by using the option "-lpthread". But my program crashes during the first call of

pthread_mutex_init(&mem->mutex_sock,NULL);

with

Program received signal SIGSEGV, Segmentation fault.
0xef770294 in mutex_init () from /usr/lib/libthread.so.1

Funny that it doesn't happen in the libpthread but in libthread! The code itself comes from Linux and should be ok because it works very well there.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2009
Added on Apr 9 2004
4 comments
1,004 views