[Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically
ahu at ds9a dot nl
gcc-bugzilla@gcc.gnu.org
Fri Mar 10 20:44:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list