http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51376
Bug #: 51376 Summary: libgomp taskwait failure Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp AssignedTo: unassig...@gcc.gnu.org ReportedBy: amo...@gmail.com libgomp.c++/task-6 occasionally aborts on power7 with symptoms that indicate "#pragma omp taskwait" is failing to wait for a child thread. On replacing the abort() with an asm illegal insn to get a core with the register state at the failure point, you see "a" or "n" has been loaded to regs with their original value. By the time the core dump is written, the memory value for "a" and "n" is correct.