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: src/tools/miri/tests/fail/data_race/mixed_size_read.stderr
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
error: Undefined Behavior: Race condition detected between (1) 2-byte atomic load on thread `<unnamed>` and (2) 1-byte (different-size) atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Race condition detected between (1) 2-byte atomic load on thread `<unnamed>` and (2) 1-byte atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/mixed_size_read.rs:LL:CC
3
3
|
4
4
LL | a8[0].load(Ordering::SeqCst);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 2-byte atomic load on thread `<unnamed>` and (2) 1-byte (different-size) atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 2-byte atomic load on thread `<unnamed>` and (2) 1-byte atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
7
help: and (1) occurred earlier here
8
8
--> $DIR/mixed_size_read.rs:LL:CC
9
9
|
10
10
LL | a16.load(Ordering::SeqCst);
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
= help: overlapping unsynchronized atomic accesses must use the same access size
12
13
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
14
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/mixed_size_write.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ fn main() {
19
19
});
20
20
s.spawn(|| {
21
21
a8[0].store(1,Ordering::SeqCst);
22
-
//~^ ERROR: Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte (different-size) atomic store on thread `<unnamed>`
22
+
//~^ ERROR: Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte atomic store on thread `<unnamed>`
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/mixed_size_write.stderr
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
error: Undefined Behavior: Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte (different-size) atomic store on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte atomic store on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/mixed_size_write.rs:LL:CC
3
3
|
4
4
LL | a8[0].store(1, Ordering::SeqCst);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte (different-size) atomic store on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 2-byte atomic store on thread `<unnamed>` and (2) 1-byte atomic store on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
7
help: and (1) occurred earlier here
8
8
--> $DIR/mixed_size_write.rs:LL:CC
9
9
|
10
10
LL | a16.store(1, Ordering::SeqCst);
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+
= help: overlapping unsynchronized atomic accesses must use the same access size
12
13
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
14
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/weak_memory/racing_mixed_size.stderr
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
error: Undefined Behavior: Race condition 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
1
+
error: Undefined Behavior: Race condition detected between (1) 4-byte atomic store on thread `<unnamed>` and (2) 2-byte 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
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition 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
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 4-byte atomic store on thread `<unnamed>` and (2) 2-byte atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
7
help: and (1) occurred earlier here
8
8
--> $DIR/racing_mixed_size.rs:LL:CC
9
9
|
10
10
LL | x.store(1, Relaxed);
11
11
| ^^^^^^^^^^^^^^^^^^^
12
+
= help: overlapping unsynchronized atomic accesses must use the same access size
12
13
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
14
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/weak_memory/racing_mixed_size_read.stderr
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
error: Undefined Behavior: Race condition 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
1
+
error: Undefined Behavior: Race condition detected between (1) 4-byte atomic load on thread `<unnamed>` and (2) 2-byte 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
-
| ^^^^^^^^^^^^^^^^^^^ Race condition 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
5
+
| ^^^^^^^^^^^^^^^^^^^ Race condition detected between (1) 4-byte atomic load on thread `<unnamed>` and (2) 2-byte atomic load on thread `<unnamed>` at ALLOC. (2) just happened here
6
6
|
7
7
help: and (1) occurred earlier here
8
8
--> $DIR/racing_mixed_size_read.rs:LL:CC
9
9
|
10
10
LL | x.load(Relaxed);
11
11
| ^^^^^^^^^^^^^^^
12
+
= help: overlapping unsynchronized atomic accesses must use the same access size
12
13
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13
14
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
0 commit comments