<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJzNl0tzozgQxz-NfaHsAomXDz547HiTmiSTjTO7R0pILVsbgVgQecyn3xYmD5N4K7XJYV1YiBb0769WC4nciMf5KPSbndJWsdL7_WJ5tVh-93as3DaeKj2tclNU3v0OSq9tVLn1dkoIvNiBrqD2LGtum-nIX438Bcc7lUaj8P0E4pjnsYxSPyTghzQOIykYDWMqIAwhD5Mo3j_Wl7HfH93lza4GJrzAGxHyd8Erxm-x5tXAQd2B8Bq1LZn2Nme_nV3ejMjSOyst1HVb2V6M_-DjL5FS8kgQIWa5606W3RZVVkNh7iArHjMnf0RSZ1SlNCOycL5Uad3JWd0NmQVWvG6aoarUnWRtCqyvGyPRvNb6Du9bF0yVk4pZvgPhrCrflxieaWP67pJ0K3LnI7dPFup73v9eNg2GImchCkeRyOiFwgPw1kKnoskoGdGlZLoBp2RfoSf_Kl9qtj363Oubu1NnuDNKHHR2L9jD31f0mgx7HedAn4eGZ6YP-j1T9kuA9Am4_zFGEx47oJsNum3cf0QXeGwMW6nGspLDDcs1LL79uLi6YfUWLAZQmBZtLiy07Urigtg9WNxncMd0yyy2p2_8XoP8A7g19Z_K7s5xNkKN_t7cdsBG3x43ZYP9jR3tvzq9YrVVXMPG9eG1y9m-3of4OVrhIFo0YCG8G60Dz30U2kp8LgZH5S693Bj9TjY-K48OlUc5hTR0yl1GmdZqVYKYDp-KB-mYyFy-pCPOqjtzi28KxWvjsvJLMjIZMP3Qj-ULU5r6NuNM6y-BpYcwLsNERq_m29fSZsNBCEiSv5s-uEAuTWPXbcmtMuW33nXXhjV-uzSlVNu2Zq656cUNRi_wD3ChZNI_ilurBxAbVlQazjEXWP2jsqpQv-CAjXOwtkdowYAmuZ98jmZKyHDPIG1Wt-URKhlQk8RPP0c9zqKHrNmMx_QY6wJT4tkfXqOv7KHQl0ZAv370U_YNJRxSougDlH4xRNsGupz5ODAaAlMgHwaeG1MNUW8R8QCRBvTjiCOjkQx8EhDM-XST8fDmwz3fvqyhqo1oOe4j1cuGNG-VFp5Qdfc2fnz3eS48C41t3Lw3GhVqcPVTyBhKXQvAHWKhSlyvFJ901omp7CR3OTYJJsHey_mZWz-zn5uT7PRstTq5zE5Pzq9OrrObxeb7iK4CzzVf_rzIbk6vTxarTWebTpEwKHIMF1n3u1cP8RlCkZh1xCkOzLvdGIs5FTM6Y2PW2p2p548w0a0Zt7We76ytugEhazy2uCi1-RT33S9vPHeaYAT_wkDhpWqatotCRP00GO_mPg2DWSxmEkhIwySYBQHjJCWhgCCkMhhrloNu5qPoG264S7j3OhdYH0Wr8ecVqDnxCfEDP8G1j4TpNE0Jg1SGMRZMxDF-jgBmip46P1NTb8f1vHOZt9sGGzWOX_PSyBr3KQDQC376kun1WmV11_SjgvLiCk1PXzTPXzjv7a3Hneh5p_gf30T_vg>53081</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] libomp hangs in __kmp_remove_my_task
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
shiltian
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
@shiltian QMCPACK hangs in libomp when using hidden helper tasks.
compiler d007e66cb6f58042e043645fda3463de44eb4756
```
Thread 1 "qmcpack" received signal SIGINT, Interrupt.
0x00007fffc5d2dd9b in __kmp_remove_my_task(kmp_info*, int, kmp_task_team*, int) () from /soft/llvm/main-patched/lib/libomp.so
(gdb) bt
#0 0x00007fffc5d2dd9b in __kmp_remove_my_task(kmp_info*, int, kmp_task_team*, int) () from /soft/llvm/main-patched/lib/libomp.so
#1 0x00007fffc5d29430 in int __kmp_execute_tasks_32<false, false>(kmp_info*, int, kmp_flag_32<false, false>*, int, int*, void*, int)
() from /soft/llvm/main-patched/lib/libomp.so
#2 0x00007fffc5d26be3 in __kmpc_omp_taskwait () from /soft/llvm/main-patched/lib/libomp.so
#3 0x0000000000aa37c6 in qmcplusplus::SoaDistanceTableABOMPTarget<double, 3u, 32>::mw_evaluate(qmcplusplus::RefVectorWithLeader<qmcplusplus::DistanceTable> const&, qmcplusplus::RefVectorWithLeader<qmcplusplus::ParticleSet> const&) const ()
#4 0x0000000000a31a4e in qmcplusplus::ParticleSet::mw_update(qmcplusplus::RefVectorWithLeader<qmcplusplus::ParticleSet> const&, bool)
()
#5 0x00000000005b3e84 in omp_outlined. ()
#6 0x00007fffc5d7fbf3 in __kmp_invoke_microtask () from /soft/llvm/main-patched/lib/libomp.so
#7 0x00007fffc5d0406f in __kmp_fork_call () from /soft/llvm/main-patched/lib/libomp.so
#8 0x00007fffc5cf47f5 in __kmpc_fork_call () from /soft/llvm/main-patched/lib/libomp.so
#9 0x00000000005b127b in qmcplusplus::QMCCostFunctionBatched::checkConfigurations() ()
#10 0x00000000004faf0b in qmcplusplus::QMCFixedSampleLinearOptimizeBatched::start() ()
#11 0x00000000004ffc07 in qmcplusplus::QMCFixedSampleLinearOptimizeBatched::one_shift_run() ()
#12 0x00000000004f7708 in qmcplusplus::QMCFixedSampleLinearOptimizeBatched::run() ()
#13 0x0000000000499c63 in qmcplusplus::QMCMain::runQMC(_xmlNode*, bool) ()
#14 0x0000000000499553 in qmcplusplus::QMCMain::executeQMCSection(_xmlNode*, bool) ()
#15 0x00000000004998e2 in qmcplusplus::QMCMain::executeLoop(_xmlNode*) ()
#16 0x0000000000498132 in qmcplusplus::QMCMain::execute() ()
#17 0x0000000000492eda in main ()
```
reproducer in QMCPACK build directory
```
cd tests/molecules/He_ae/deterministic-He_ae-opt-batch-1-1
LIBOMP_USE_HIDDEN_HELPER_TASK=1 OMP_NUM_THREADS=1 ../../../../bin/qmcpack det_He_opt_batch.xml
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNV1tz6jYQ_jXmxQPju80DD4RLkzm5NXDaR49srUBFtlxZJsn59V0Z54IDnUyTh3qMJK-k_b5draQlk_R5YgVOveV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