Dears, I'm currently develop a multi-threaded application using GCC pthread (NTPL).
My application start a thread who start another sub-thread. During the creation of the subthread, i invoke the pthread_cancel on the first thread. This result sometime a Sigfault (see the diagram bellow). Main thread | pthread_create (thread 1) | pthread_create (finish) Thread 1 | | | pthread_create (thread 2) pthread_cancel (thread 1) | => Segfault ? | | | | V V I'll try to post some sample code today. Regards, Alexandre Martins -- Summary: NTPL pthread_create is thread safe ? Product: gcc Version: 4.2.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: deadmaxfr at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38346