-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_atomic fail with 'Saw release store out of order' on ppc64 #58
Comments
Not observed on commit 9f6bc3b or earlier (build: https://app.travis-ci.com/github/ivmai/libatomic_ops/jobs/609611344). |
Build: https://app.travis-ci.com/github/ivmai/libatomic_ops/jobs/612448219 |
Build: https://app.travis-ci.com/github/ivmai/libatomic_ops/jobs/612743595 |
Source: master (42684a2) cd out && cmake -DCMAKE_BUILD_TYPE=MinSizeRel -Denable_assertions=ON -Denable_atomic_intrinsics=OFF -Dbuild_tests=ON -Denable_werror=ON -Werror=dev .. && cmake --build . && ctest Or: Or: |
Not reproduced with clang. |
Looks like an issues in the compiler (gcc), The potential workaround is to avoid "static" for counter1 variable (in tests/test_atomic.c). Diff of asm (generated by
|
Hello @sharkcz, could you please look at this issue? Seems to be a bug in gcc on ppc64. |
Hi @ivmai , does it need some special options/defines set to expose the issue? Our CI using Fedora 38 with gcc-13.2.1-4.fc38.ppc64le (snapshot from the gcc13 branch) hasn't seen it. |
Exactly, you could reproduce it in 2 ways: Or |
Thanks, reproduced. |
Hello @sharkcz |
Source: master (400a88b)
Build: https://app.travis-ci.com/github/ivmai/libatomic_ops/jobs/611939900
Host: Ubuntu 22.04.2 LTS / ppc64le
Compiler: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Config: CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=MinSizeRel -Denable_assertions=ON -Denable_atomic_intrinsics=OFF"
Occurrence: ~3/4
Output (test_atomic):
Saw release store out of order (bad CSE?): 2026939 < 2027014
The text was updated successfully, but these errors were encountered: