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
error: Undefined Behavior: Race condition detected between (1) 1-byte atomic store on thread `unnamed-ID` and (2) 4-byte atomic load on thread `unnamed-ID` at ALLOC
LL | let _val = (&raw const data).cast::<AtomicI8>().as_ref_unchecked().compare_exchange(
11
+
| ________________________^
12
+
LL | | 0,
13
+
LL | | 1,
14
+
LL | | Ordering::Relaxed,
15
+
LL | | Ordering::Relaxed,
16
+
LL | | );
17
+
| |_____________^
18
+
= help: overlapping unsynchronized atomic accesses must use the same access size
19
+
= help: see https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#memory-model-for-atomic-accesses for more information about the Rust memory model
20
+
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
21
+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
22
+
23
+
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
0 commit comments