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
| ^^^^^^^^^^^^^^^^^^^^ sharing memory with a native function
6
+
|
7
+
= help: when memory is shared with a native function call, Miri can only track initialisation and provenance on a best-effort basis
8
+
= help: in particular, Miri assumes that the native call initializes all memory it has written to
9
+
= help: Miri also assumes that any part of this memory may be a pointer that is permitted to point to arbitrary exposed memory
10
+
= help: what this means is that Miri will easily miss Undefined Behavior related to incorrect usage of this shared memory, so you should not take a clean Miri run as a signal that your FFI code is UB-free
11
+
= help: tracing memory accesses in native code is not yet fully implemented, so there can be further imprecisions beyond what is documented here
12
+
= note: BACKTRACE:
13
+
= note: inside `partial_init` at tests/native-lib/fail/tracing/partial_init.rs:LL:CC
| ^^^^^^^^^^^^^^^^^^^^^ sharing memory with a native function
6
+
|
7
+
= help: when memory is shared with a native function call, Miri can only track initialisation and provenance on a best-effort basis
8
+
= help: in particular, Miri assumes that the native call initializes all memory it has written to
9
+
= help: Miri also assumes that any part of this memory may be a pointer that is permitted to point to arbitrary exposed memory
10
+
= help: what this means is that Miri will easily miss Undefined Behavior related to incorrect usage of this shared memory, so you should not take a clean Miri run as a signal that your FFI code is UB-free
11
+
= help: tracing memory accesses in native code is not yet fully implemented, so there can be further imprecisions beyond what is documented here
12
+
= note: BACKTRACE:
13
+
= note: inside `unexposed_reachable_alloc` at tests/native-lib/fail/tracing/unexposed_reachable_alloc.rs:LL:CC
error: Undefined Behavior: memory access failed: attempting to access 4 bytes, but got $HEX[noalloc] which is a dangling pointer (it has no provenance)
0 commit comments