Skip to content
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 test_concurrent_queue_whitebox fails on Apple Silicon #951

Closed
peteschroed opened this issue Nov 3, 2022 · 4 comments
Closed

Test test_concurrent_queue_whitebox fails on Apple Silicon #951

peteschroed opened this issue Nov 3, 2022 · 4 comments

Comments

@peteschroed
Copy link

Encountered this issue while running tests on an M1 Macbook Pro against oneTBB 2021.7.

Build arm64:

cmake .. -DCMAKE_OSX_ARCHITECTURES=arm64
cmake –build .

Run test 100x:
ctest --repeat-until-fail 100 . -R test_concurrent_queue_whitebox --output-on-failure --timeout 60

Result:
Most of the time, the test fails at some point during the 100x run with this error.

ctest --repeat-until-fail 100 . -R test_concurrent_queue_whitebox --output-on-failure --timeout 60
Test project /Users/pete.schroeder/p4/oneTBB_2021_7/build
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.01 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...   Passed    0.02 sec
    Start 57: test_concurrent_queue_whitebox
    Test #57: test_concurrent_queue_whitebox ...***Failed    0.03 sec
[doctest] doctest version is "2.4.7"
[doctest] run with "--help" for options
===============================================================================
/Users/pete.schroeder/p4/oneTBB_2021_7/test/tbb/test_concurrent_queue_whitebox.cpp:99:
TEST CASE:  Test Wrapparound

/Users/pete.schroeder/p4/oneTBB_2021_7/test/tbb/test_concurrent_queue_whitebox.cpp:82: FATAL ERROR: REQUIRE( q.empty() ) is NOT correct!
  values: REQUIRE( false )
  logged: Failed flogger/empty test

===============================================================================
[doctest] test cases: 1 | 0 passed | 1 failed | 0 skipped
[doctest] assertions: 1 | 0 passed | 1 failed |
[doctest] Status: FAILURE!


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.26 sec

The following tests FAILED:
	 57 - test_concurrent_queue_whitebox (Failed)
Errors while running CTest
@pavelkumbrasev
Copy link
Contributor

It should be fixed with this PR.

@pavelkumbrasev
Copy link
Contributor

I merged this PR. Could you please verify current master?

@phprus
Copy link
Contributor

phprus commented Nov 4, 2022

@pavelkumbrasev
Current master work without error on M1 (1000 iterations).

@pavelkumbrasev
Copy link
Contributor

Please reopen this issue if you can reproduce the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants