Activity log for bug #1899199

Date Who What changed Old value New value Message
2020-10-09 17:01:44 Matheus Castro bug added bug
2020-10-09 17:01:44 Matheus Castro attachment added Code that shows the bug https://bugs.launchpad.net/bugs/1899199/+attachment/5420027/+files/code.zip
2020-10-09 17:04:11 Matheus Castro attachment added main.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420028/+files/main.c
2020-10-09 17:04:34 Matheus Castro attachment removed main.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420028/+files/main.c
2020-10-09 17:06:48 Matheus Castro attachment added library.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420041/+files/library.c
2020-10-09 17:06:57 Matheus Castro attachment added main.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420042/+files/main.c
2020-10-09 17:07:16 Matheus Castro attachment removed main.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420042/+files/main.c
2020-10-09 17:07:26 Matheus Castro attachment removed library.c https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1899199/+attachment/5420041/+files/library.c
2020-10-09 17:13:26 Matheus Castro 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2, 9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD gives no result. The functions are not called, not even the first function: ompt_start_tool. I have included a small code that shows 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. Thus, it's a bug. 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2,          9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD it gives no result. The functions are not called, not even the first function: ompt_start_tool. I have included a small code that shows 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. Thus, it's a bug.
2020-10-09 17:14:03 Matheus Castro 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2,          9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD it gives no result. The functions are not called, not even the first function: ompt_start_tool. I have included a small code that shows 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. Thus, it's a bug. 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2,          9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD it gives no result. The functions are not called, not even the first function: ompt_start_tool. 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. Thus, it's a bug.
2020-10-09 20:24:21 Matheus Castro 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2,          9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD it gives no result. The functions are not called, not even the first function: ompt_start_tool. 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. Thus, it's a bug. 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~ubuntu18.04.2, 9.0.0-2~ubuntu18.04.2, 10.0.0-4ubuntu1~18.04.2,          9.0.1-12, 10.0.0-4ubuntu1 When trying to use OMPT (https://www.openmp.org/spec-html/5.0/openmpch4.html) by defining the corresponding functions in an shared object and loading it with LD_PRELOAD it gives no result. The functions are not called, not even the first function: ompt_start_tool. 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.
2020-10-09 20:25:51 Matheus Castro bug task added llvm-toolchain-8 (Ubuntu)
2020-10-09 20:26:12 Matheus Castro bug task added llvm-toolchain-9 (Ubuntu)
2020-10-09 20:26:27 Matheus Castro bug task added llvm-toolchain-10 (Ubuntu)
2020-10-09 21:03:47 Matheus Castro summary OMPT with LD_PRELOAD not working [libomp.so.5] OMPT with LD_PRELOAD not working
2022-03-10 15:11:34 Launchpad Janitor llvm-defaults (Ubuntu): status New Confirmed
2022-03-10 15:11:34 Launchpad Janitor llvm-toolchain-10 (Ubuntu): status New Confirmed
2022-03-10 15:11:34 Launchpad Janitor llvm-toolchain-8 (Ubuntu): status New Confirmed
2022-03-10 15:11:34 Launchpad Janitor llvm-toolchain-9 (Ubuntu): status New Confirmed