This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/52738] libgomp configured with --enable-tls=no crash inside pthread function
- From: "matek09 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Apr 2012 13:23:17 +0000
- Subject: [Bug libgomp/52738] libgomp configured with --enable-tls=no crash inside pthread function
- Auto-submitted: auto-generated
- References: <bug-52738-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52738
--- Comment #2 from Mateusz Kielar <matek09 at gmail dot com> 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 it. Could anyone share their opinion?