<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/146573>146573</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[openmp] Assertion failure at z_Linux_util.cpp(2108): file != NULL.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
berolinux
</td>
</tr>
</table>
<pre>
I'm seeing some crashes of code using OpenMP build with clang 20.1.7 inside containers on a Linux box:
`Assertion failure at z_Linux_util.cpp(2108): file != NULL`
Looking at the code in question, this error is generated here:
https://github.com/llvm/llvm-project/blob/main/openmp/runtime/src/z_Linux_util.cpp#L2121-L2125
if `/proc/<pid>/maps` can't be opened.
I'm not sure yet how exactly this is triggered (given the container in question does mount /proc inside it); I suspect it may happen when the conatiner is set up (decompressing the filesystem image for the container is parallelized -> openmp code is called -- but /proc is only mounted inside the container after the filesystem image is ready).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysU8uOpDgQ_BpzSRWCdPGoA4ee6UEaqfZx2fPI4CzwrrFZp-numq9fGao1s4_LSiMhQEo7MiIjQzGbyRF1ovogqudMbXH2oRsoeGvc9pYNXt-7zwKbBZjIuAnYLwRjUDwTg7_B6DXBxqn0y0rup19h2IzV8GriDKNVbgIs8jJvwDg2mmD0LirjKDB4BwquqREM_k3IJ1HsT108MVOIxju4KWO3QKAifP2yn_2yRWPzcV0FtlgWrcCLkE9wM5ZAYCnkM_z82_Uq6uKAu3r_R6KnIsSZDsLGwZ8bceog8CPE2TBQCD6AYZjIUVCRNMwU6KA1x7hy-sVeYD-ZOG9DPvpFYG_ty_vntAb_O41RYD9YPwjsF2WcwN6v5JZVYB82F81CAnsOo8D-35rkFUssT-ldieLJ3CApwX4NPl0Q8uNqtJCfdvCVRV3AqJzAJsJAkBqRzg_lh3HOR-A0wjtFmP0r0Jsao70fqg1DDGaaKJAGge1kXsg9BvUw6vtpgfbEsPjNRXiQejfWxN2JD_AZeOOVxggmwqLuMKt1JQev8zdkFQ9kBqYI25paaxr9sgbifZvSweQp3znSAmZRE8HNh39yY1hVUNaSNV9Jw0nIT3CM-2E1w5jKGk4nGLbvaKcFtPdDDOl3GX-HV7dI4b-5GIZASt8FXvJMd1Jf5EVl1JVNVcpLIWWZzV17HttzeRsGanUzlqqpJdaFxEJqPKuhyUyHBVZFU5RlU7ZVmQ_60lZ1JeumPesKK3EuaFHG5mnBch-mzDBv1JXnumpkZtVAlvcAIzp6hb0qEFOeQ7dv5bBNLM6FNRz5G0w00e7Jfyxn9Qw_IHZ5tgXb_e-47KxZYP-Q9dLhXwEAAP__CdyFwA">