"_pthread_deactivatex" problem under AIX

S

Sebastien

Hello,

I have a multi-thread programm in C under AIX.

I get some lock or core dump that I cannot explain. I debugged the core and
I found that it cored on the "_pthread_deactivatex". I also found only 1
ariticle with google which speak about this. It is :

PROBLEM SUMMARY:
Child process from a fork may hang or fail if parent was doing
sigwait at the time of fork. The faulting thread will be in
either _pthread_deactivatex or _wait_list_add.


PROBLEM CONCLUSION:
Properly initialize the pthread library's internal list
of sigwaiting threads in its post-fork handler.


I don't understand what I did wrong, if you have any idea please help me. I
also posted another message on a UNIX forum with no success ...

Thanks Sebastien
 
W

Wolfgang Riedel

Sebastien said:
Hello,

I have a multi-thread programm in C under AIX.

I get some lock or core dump that I cannot explain. I debugged the core and
I found that it cored on the "_pthread_deactivatex". I also found only 1
ariticle with google which speak about this. It is :

PROBLEM SUMMARY:
Child process from a fork may hang or fail if parent was doing
sigwait at the time of fork. The faulting thread will be in
either _pthread_deactivatex or _wait_list_add.

PROBLEM CONCLUSION:
Properly initialize the pthread library's internal list
of sigwaiting threads in its post-fork handler.

I don't understand what I did wrong, if you have any idea please help me. I
also posted another message on a UNIX forum with no success ...

Thanks Sebastien

Hi Sebastian,
over in comp.unix.programmer, comp.unix.aix or at news.software.ibm.com
you will find the knowledge to answer your questions.
Hint: don't mix threads and fork, unless ...

Wolfgang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,082
Messages
2,570,589
Members
47,211
Latest member
Shamestone

Latest Threads

Top