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
Copy file name to clipboardExpand all lines: tests/fail/weak_memory/racing_mixed_size.stderr
+10-4
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,17 @@
1
-
error: unsupported operation: racy imperfectly overlapping atomic access is not possible in the C++20 memory model, and not supported by Miri's weak memory emulation
1
+
error: Undefined Behavior: Data race detected between (1) 4-byte Atomic Store on thread `<unnamed>` and (2) 2-byte (different-size) Atomic Load on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/racing_mixed_size.rs:LL:CC
3
3
|
4
4
LL | std::intrinsics::atomic_load_relaxed(hi);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ racy imperfectly overlapping atomic access is not possible in the C++20 memory model, and not supported by Miri's weak memory emulation
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) 4-byte Atomic Store on thread `<unnamed>` and (2) 2-byte (different-size) Atomic Load on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
-
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
8
-
= note: BACKTRACE:
7
+
help: and (1) occurred earlier here
8
+
--> $DIR/racing_mixed_size.rs:LL:CC
9
+
|
10
+
LL | x.store(1, Relaxed);
11
+
| ^^^^^^^^^^^^^^^^^^^
12
+
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14
+
= note: BACKTRACE (of the first span):
9
15
= note: inside closure at $DIR/racing_mixed_size.rs:LL:CC
10
16
11
17
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
Copy file name to clipboardExpand all lines: tests/fail/weak_memory/racing_mixed_size_read.stderr
+10-4
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,17 @@
1
-
error: unsupported operation: racy imperfectly overlapping atomic access is not possible in the C++20 memory model, and not supported by Miri's weak memory emulation
1
+
error: Undefined Behavior: Data race detected between (1) 4-byte Atomic Load on thread `<unnamed>` and (2) 2-byte (different-size) Atomic Load on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/racing_mixed_size_read.rs:LL:CC
3
3
|
4
4
LL | (*hi).load(Relaxed);
5
-
| ^^^^^^^^^^^^^^^^^^^ racy imperfectly overlapping atomic access is not possible in the C++20 memory model, and not supported by Miri's weak memory emulation
5
+
| ^^^^^^^^^^^^^^^^^^^ Data race detected between (1) 4-byte Atomic Load on thread `<unnamed>` and (2) 2-byte (different-size) Atomic Load on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
-
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
8
-
= note: BACKTRACE:
7
+
help: and (1) occurred earlier here
8
+
--> $DIR/racing_mixed_size_read.rs:LL:CC
9
+
|
10
+
LL | x.load(Relaxed);
11
+
| ^^^^^^^^^^^^^^^
12
+
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
+
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14
+
= note: BACKTRACE (of the first span):
9
15
= note: inside closure at $DIR/racing_mixed_size_read.rs:LL:CC
10
16
11
17
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
0 commit comments