This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14986] New: pthread mutex segfaults inside C++ class thread
- From: "mdblack98 at yahoo dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 28 Dec 2012 15:17:39 +0000
- Subject: [Bug libc/14986] New: pthread mutex segfaults inside C++ class thread
- Auto-submitted: auto-generated
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.