You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with epoch trying to implement a simple lock-free stack based on a singly-linked list. Running env RUSTFLAGS="-Z sanitizer=thread --cfg crossbeam_sanitize" cargo +nightly run --target x86_64-unknown-linux-gnu emitted warnings for a data race. Apparently not my code was the problem, but the calls to epoch::pin().
I was able to boil down the code to the following:
epoch::pin uses Local::pin which uses fences, which tsan doesn't understand. (This was also mentioned in tokio-rs/tokio#329 (comment) that mentioned in #589)
Ah yes, I found those issues but it wasn't immediately clear to me that it would be the same problem.
Thanks for the pointer to the docs, I must've missed that note when looking at them earlier 😅
I was playing around with
epoch
trying to implement a simple lock-free stack based on a singly-linked list. Runningenv RUSTFLAGS="-Z sanitizer=thread --cfg crossbeam_sanitize" cargo +nightly run --target x86_64-unknown-linux-gnu
emitted warnings for a data race. Apparently not my code was the problem, but the calls toepoch::pin()
.I was able to boil down the code to the following:
Output of `env RUSTFLAGS="-Z sanitizer=thread --cfg crossbeam_sanitize" cargo +nightly run --target x86_64-unknown-linux-gnu`
I found #589 but I wasn't sure if this is a duplicate of that issue or not.
The text was updated successfully, but these errors were encountered: