https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68579
--- Comment #2 from vries at gcc dot gnu.org --- Backtrace: ... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff6f7a700 (LWP 6717)] gomp_task_maybe_wait_for_dependencies (depend=depend@entry=0x7ffff6f79dd0) at src/libgomp/task.c:1551 1551 if (next_task->kind == GOMP_TASK_WAITING) (gdb) bt #0 gomp_task_maybe_wait_for_dependencies (depend=depend@entry=0x7ffff6f79dd0) at src/libgomp/task.c:1551 #1 0x00007ffff794b746 in GOMP_target_enter_exit_data (device=<optimized out>, mapnum=3, hostaddrs=0x7ffff6f79db0, sizes=0x6012e0 <.omp_data_sizes.35>, kinds=0x6012d0 <.omp_data_kinds.36>, flags=2, depend=0x7ffff6f79dd0) at src/libgomp/target.c:1691 #2 0x0000000000400ca9 in main._omp_fn () #3 0x00007ffff7943cb6 in gomp_thread_start (xdata=<optimized out>) at src/libgomp/team.c:119 #4 0x00007ffff77169ca in start_thread () from /lib/libpthread.so.0 #5 0x00007ffff747245d in clone () from /lib/libc.so.6 #6 0x0000000000000000 in ?? () ... This valgrind output suggests that next_task is NULL: ... ==13885== Process terminating with default action of signal 11 (SIGSEGV) ==13885== Access not within mapped region at address 0x58 ==13885== at 0x514E2FD: gomp_task_maybe_wait_for_dependencies (task.c:1551) ...