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-dep/shims/mmap_use_after_munmap.stderr
+1-16
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,3 @@
1
-
warning: integer-to-pointer cast
2
-
--> $DIR/mmap_use_after_munmap.rs:LL:CC
3
-
|
4
-
LL | libc::munmap(ptr, 4096);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^ integer-to-pointer cast
6
-
|
7
-
= help: This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,
8
-
= help: which means that Miri might miss pointer bugs in this program.
9
-
= help: See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.
10
-
= help: To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead.
11
-
= help: You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.
12
-
= help: Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.
13
-
= note: BACKTRACE:
14
-
= note: inside `main` at $DIR/mmap_use_after_munmap.rs:LL:CC
15
-
16
1
error: Undefined Behavior: memory access failed: ALLOC has been freed, so this pointer is dangling
17
2
--> $DIR/mmap_use_after_munmap.rs:LL:CC
18
3
|
@@ -43,5 +28,5 @@ LL | libc::munmap(ptr, 4096);
43
28
44
29
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
45
30
46
-
error: aborting due to 1 previous error; 1 warning emitted
LL | | // Some high address we surely have not allocated anything at
7
-
LL | | ptr::invalid_mut(1 << 30),
8
-
LL | | 4096,
9
-
LL | | )
10
-
| |_________^ integer-to-pointer cast
11
-
|
12
-
= help: This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,
13
-
= help: which means that Miri might miss pointer bugs in this program.
14
-
= help: See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.
15
-
= help: To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead.
16
-
= help: You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.
17
-
= help: Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.
18
-
= note: BACKTRACE:
19
-
= note: inside `main` at $DIR/munmap.rs:LL:CC
20
-
21
1
error: unsupported operation: Miri only supports munmap on memory allocated directly by mmap
22
2
--> $DIR/munmap.rs:LL:CC
23
3
|
@@ -35,5 +15,5 @@ LL | | )
35
15
36
16
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
37
17
38
-
error: aborting due to 1 previous error; 1 warning emitted
= help: This program is using integer-to-pointer casts or (equivalently) `ptr::from_exposed_addr`,
8
-
= help: which means that Miri might miss pointer bugs in this program.
9
-
= help: See https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html for more details on that operation.
10
-
= help: To ensure that Miri does not miss bugs in your program, use Strict Provenance APIs (https://doc.rust-lang.org/nightly/std/ptr/index.html#strict-provenance, https://crates.io/crates/sptr) instead.
11
-
= help: You can then pass the `-Zmiri-strict-provenance` flag to Miri, to ensure you are not relying on `from_exposed_addr` semantics.
12
-
= help: Alternatively, the `-Zmiri-permissive-provenance` flag disables this warning.
13
-
= note: BACKTRACE:
14
-
= note: inside `main` at $DIR/munmap_partial.rs:LL:CC
15
-
16
1
error: unsupported operation: Miri only supports munmap calls that exactly unmap a region previously returned by mmap
17
2
--> $DIR/munmap_partial.rs:LL:CC
18
3
|
@@ -25,5 +10,5 @@ LL | libc::munmap(ptr, 1);
25
10
26
11
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
27
12
28
-
error: aborting due to 1 previous error; 1 warning emitted
0 commit comments