This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically



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


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