https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42616
Varvara Rainchik <varvara.s.rainchik at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |varvara.s.rainchik at gmail dot co | |m --- Comment #13 from Varvara Rainchik <varvara.s.rainchik at gmail dot com> --- I experience the same problem with Android NDK. TLS is not supported into Android, so I observe the similar test crash: [New LWP 18636] Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 18636] (gdb) bt #0 gomp_icv (write=<optimized out>) at /s/ndk-toolchain/src/build/../gcc/gcc-4.8/libgomp/libgomp.h:393 #1 0x0804a3d7 in omp_set_num_threads (n=4) at /s/ndk-toolchain/src/build/../gcc/gcc-4.8/libgomp/env.c:657 #2 0x08049e70 in _thread (Id=0x1) at omp_test.c:19 #3 0x0804d119 in __pthread_start (arg=0x8087270) at bionic/libc/bionic/pthread_create.cpp:153 #4 0x08055e1a in __start_thread (fn=0x804d0e0 <__pthread_start(void*)>, arg=0x8087270) at bionic/libc/bionic/clone.cpp:39 #5 0x0806b9b7 in __bionic_clone () at bionic/libc/arch-x86/bionic/__bionic_clone.S:42 I use android-ndk-r9d for x86 arch, gcc 4.8. Modified patch solves this issue.