------- 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

Reply via email to