Skip to content

[openmp] Assertion failure at z_Linux_util.cpp(2108): file != NULL. #146573

Open
@berolinux

Description

@berolinux

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions