[libomp.so.5] OMPT with LD_PRELOAD not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
llvm-defaults (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
llvm-toolchain-10 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
llvm-toolchain-8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
llvm-toolchain-9 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This bug was observed on multiple versions of Ubuntu and clang.
Versions:
Ubuntu: Ubuntu 18.04.5 LTS, Ubuntu 20.04.1 LTS
clang: 8.0.0-3~
9.0.1-12, 10.0.0-4ubuntu1
When trying to use OMPT (https:/
I have included a small code to reproduce the bug.
To run it just do:
make
make run
The expected output is (up to execution reordering):
ompt_start_tool was called
Hello from thread 0 of 4!
Hello from thread 3 of 4!
Hello from thread 2 of 4!
Hello from thread 1 of 4!
While Ubuntu outputs (up to execution reordering):
Hello from thread 0 of 4!
Hello from thread 3 of 4!
Hello from thread 2 of 4!
Hello from thread 1 of 4!
It does not call ompt_start_tool.
It works as expected on Fedora 32 with clang version 10.0.1-2. It also works as expected on Debian GNU/Linux bullseye/sid with clang version 9.0.1-14.
The problem lies in libomp.so.5. When replacing it by the one from a working Debian version the program runs as expected.
description: | updated |
description: | updated |
description: | updated |
summary: |
- OMPT with LD_PRELOAD not working + [libomp.so.5] OMPT with LD_PRELOAD not working |
The problem lies in libomp.so.5. When replacing it by the one from a working Debian version the program runs as expected.