This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38346] New: NTPL pthread_create is thread safe ?
- From: "deadmaxfr at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2008 12:50:17 -0000
- Subject: [Bug c/38346] New: NTPL pthread_create is thread safe ?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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