Assertion failure at kmp_affinity.cpp(4505): th->th.th_new_place >= 0
A simple OpenMP program, compiled with gcc and ran with libkomp, is generating this runtime error:
$ LD_LIBRARY_PATH=/tmp/libkomp/lib/:$LD_LIBRARY_PATH ./mergesort Assertion failure at kmp_affinity.cpp(4505): th->th.th_new_place >= 0. OMP: Error #13: Assertion failure at kmp_affinity.cpp(4505). OMP: Hint: Please submit a bug report with this message, compile and run commands used, and machine configuration info including native compiler and operating system versions. Faster response will be obtained by including all program sources. For information on submitting this issue, please see http://www.intel.com/software/products/support/. Abandon (core dumped)
Any help would be welcome. Using LIBOMP_USE_AFFINITY=TRUE or LIBOMP_USE_AFFINITY=FALSE does not change anything. The debugger tells us that th->th.th_new_place is set to -1.
Regards, Vincent