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

semaphore test fails on mac os #147

Open
elfenpiff opened this issue Mar 7, 2024 · 0 comments
Open

semaphore test fails on mac os #147

elfenpiff opened this issue Mar 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@elfenpiff
Copy link
Contributor

elfenpiff commented Mar 7, 2024

Required information

Operating system:

  • mac os

Rust version:
rustc 1.76

Cargo version:
cargo 1.76

iceoryx2 version:
main

Observed result or behaviour:

thread 'semaphore_unnamed_semaphore_wait_blocks' panicked at iceoryx2-bb/posix/tests/semaphore_tests.rs:308:9:
assertion failed: expr: counter.load(Ordering::Relaxed) == 1;  value: 0 == 1
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   2: semaphore_tests::wait_blocks::{{closure}}
             at ./tests/semaphore_tests.rs:308:9
   3: std::thread::scoped::scope::{{closure}}
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/scoped.rs:146:51
   4: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
   5: std::panicking::try::do_call
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
   6: ___rust_try
   7: std::panicking::try
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
   8: std::panic::catch_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
   9: std::thread::scoped::scope
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/scoped.rs:146:18
  10: semaphore_tests::wait_blocks
             at ./tests/semaphore_tests.rs:296:5
  11: semaphore_tests::semaphore_unnamed_semaphore_wait_blocks
             at ./tests/semaphore_tests.rs:329:5
  12: semaphore_tests::semaphore_unnamed_semaphore_wait_blocks::{{closure}}
             at ./tests/semaphore_tests.rs:322:45
  13: core::ops::function::FnOnce::call_once
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
  14: core::ops::function::FnOnce::call_once
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Conditions where it occurred / Performed steps:
The bug was encountered once when Cirrus CI was under heavy load.

@elfenpiff elfenpiff added the bug Something isn't working label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant