File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,8 @@ fn main() {
756
756
#[ cfg( target_os = "linux" ) ]
757
757
if unsafe { miri:: native_lib:: init_sv ( ) } . is_err ( ) {
758
758
eprintln ! (
759
- "warning: The native-lib tracer could not be started. Is this a Linux system, and does Miri have permissions to ptrace?"
759
+ "warning: The native-lib tracer could not be started. Is this a Linux system, and does Miri have permissions to ptrace?\n \
760
+ Falling back to non-tracing native-lib mode."
760
761
) ;
761
762
}
762
763
}
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ impl Supervisor {
14
14
_: T ,
15
15
f : impl FnOnce ( ) -> InterpResult < ' tcx , crate :: ImmTy < ' tcx > > ,
16
16
) -> InterpResult < ' tcx , ( crate :: ImmTy < ' tcx > , Option < super :: MemEvents > ) > {
17
+ // We acquire the lock to ensure that no two FFI calls run concurrently.
17
18
let _g = SUPERVISOR . lock ( ) . unwrap ( ) ;
18
19
f ( ) . map ( |v| ( v, None ) )
19
20
}
You can’t perform that action at this time.
0 commit comments