[Bug libgomp/52738] New: libgomp configured with --enable-tls=no crash inside pthread function

2012-03-27 Thread matek09 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52738 Bug #: 52738 Summary: libgomp configured with --enable-tls=no crash inside pthread function Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRM

[Bug libgomp/52738] libgomp configured with --enable-tls=no crash inside pthread function

2012-03-29 Thread matek09 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52738 --- Comment #1 from Mateusz Kielar 2012-03-30 06:30:00 UTC --- (In reply to comment #0) > I configured libgomp with --enable-tls=no and build it as static library. But > I > get segmentation fault when I use such OpenMP inside Pthread funcion. >

[Bug libgomp/52738] libgomp configured with --enable-tls=no crash inside pthread function

2012-04-19 Thread matek09 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52738 --- Comment #2 from Mateusz Kielar 2012-04-19 13:23:17 UTC --- The only way I see to resolve this issue is to check if pthread_getspecific returns null in gomp_thread and if yes then allocate new thread struct and use pthread_setspecific to store