This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically
- From: "ahu at ds9a dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 20:44:03 -0000
- Subject: [Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically
- References: <bug-26633-7094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ahu at ds9a dot nl 2006-03-10 20:44 -------
Andrew Pinski tells me this is a glibc TLS bug and that it should be reported
to Ubuntu, which I have done here:
https://launchpad.net/distros/ubuntu/+source/glibc/+bug/34362
The reduced testcase is:
#include <pthread.h>
void *doStuff(void *ignore)
{
static __thread int a; // crashes HERE
return (void*) a;
}
int main()
{
pthread_t tid;
pthread_create(&tid, 0, doStuff,0);
void *result;
pthread_join(tid, &result);
}
--
ahu at ds9a dot nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26633