This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/38346] New: NTPL pthread_create is thread safe ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]