http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642
--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'll commit the patch anyway, it is a step forward. Anyway, the way the testcase is written is that if you run it with OMP_PROC_BIND=false in the environment and OMP_PLACES unset, then it should fork and exec /proc/self/exe with various settings of those two environment variables. Can you perhaps see in the debugger what value has contig_cpucount variable at the start of main, and why it decided not to fork (or, has it failed to exec /proc/self/exe)?