This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 libc/14986] New: pthread mutex segfaults inside C++ class thread


http://sourceware.org/bugzilla/show_bug.cgi?id=14986

             Bug #: 14986
           Summary: pthread mutex segfaults inside C++ class thread
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: mdblack98@yahoo.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6790
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6790
Source code to show bug

Putting a pthread_mutex_t inside C++ class thread causes segfault on
pthread_mutex_lock due to invalid address of mutex in thread

To reproduce:
g++ -DBUG -o pthreadbug ptthread.cpp -lpthread
Version with mutex object outside of class works
g++ -o pthreadok ptthread.cpp -lpthread


gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
NPTL 2.5
glibc 2.5

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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