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/both_borrows/retag_data_race_write.stack.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
error: Undefined Behavior: Data race detected between (1) Write on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Data race detected between (1) non-atomic write on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/retag_data_race_write.rs:LL:CC
3
3
|
4
4
LL | *p = 5;
5
-
| ^^^^^^ Data race detected between (1) Write on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^ Data race detected between (1) non-atomic write on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/both_borrows/retag_data_race_write.tree.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
error: Undefined Behavior: Data race detected between (1) Read on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Data race detected between (1) non-atomic read on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/retag_data_race_write.rs:LL:CC
3
3
|
4
4
LL | *p = 5;
5
-
| ^^^^^^ Data race detected between (1) Read on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^ Data race detected between (1) non-atomic read on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/alloc_read_race.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ pub fn main() {
39
39
let pointer = &*ptr.0;
40
40
41
41
// Note: could also error due to reading uninitialized memory, but the data-race detector triggers first.
42
-
*pointer.load(Ordering::Relaxed)//~ ERROR: Data race detected between (1) Allocate on thread `<unnamed>` and (2) Read on thread `<unnamed>`
42
+
*pointer.load(Ordering::Relaxed)//~ ERROR: Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic read on thread `<unnamed>`
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/alloc_read_race.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
error: Undefined Behavior: Data race detected between (1) Allocate on thread `<unnamed>` and (2) Read on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic read on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/alloc_read_race.rs:LL:CC
3
3
|
4
4
LL | *pointer.load(Ordering::Relaxed)
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) Allocate on thread `<unnamed>` and (2) Read on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic read on thread `<unnamed>` at ALLOC. (2) just happened here
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/alloc_write_race.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ pub fn main() {
37
37
let j2 = spawn(move || {
38
38
let ptr = ptr;// avoid field capturing
39
39
let pointer = &*ptr.0;
40
-
*pointer.load(Ordering::Relaxed) = 2;//~ ERROR: Data race detected between (1) Allocate on thread `<unnamed>` and (2) Write on thread `<unnamed>`
40
+
*pointer.load(Ordering::Relaxed) = 2;//~ ERROR: Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>`
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/alloc_write_race.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
error: Undefined Behavior: Data race detected between (1) Allocate on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
1
+
error: Undefined Behavior: Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
2
2
--> $DIR/alloc_write_race.rs:LL:CC
3
3
|
4
4
LL | *pointer.load(Ordering::Relaxed) = 2;
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) Allocate on thread `<unnamed>` and (2) Write on thread `<unnamed>` at ALLOC. (2) just happened here
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between (1) creating a new allocation on thread `<unnamed>` and (2) non-atomic write on thread `<unnamed>` at ALLOC. (2) just happened here
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/data_race/atomic_read_na_write_race1.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ pub fn main() {
22
22
23
23
let j2 = spawn(move || {
24
24
let c = c;// avoid field capturing
25
-
(&*c.0).load(Ordering::SeqCst)//~ ERROR: Data race detected between (1) Write on thread `<unnamed>` and (2) Atomic Load on thread `<unnamed>`
25
+
(&*c.0).load(Ordering::SeqCst)//~ ERROR: Data race detected between (1) non-atomic write on thread `<unnamed>` and (2) atomic load on thread `<unnamed>`
0 commit comments