We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8f2de commit 16a0784Copy full SHA for 16a0784
src/bin/miri.rs
@@ -751,10 +751,11 @@ fn main() {
751
debug!("rustc arguments: {:?}", rustc_args);
752
debug!("crate arguments: {:?}", miri_config.args);
753
if !miri_config.native_lib.is_empty() && miri_config.native_lib_enable_tracing {
754
- // FIXME(ptrace): This should display a diagnostic / warning on error
755
// SAFETY: No other threads are running
756
#[cfg(target_os = "linux")]
757
- let _ = unsafe { miri::native_lib::init_sv() };
+ if unsafe { miri::native_lib::init_sv() }.is_err() {
+ eprintln!("warning: The native-lib tracer could not be started. Is this a Linux system, and does Miri have permissions to ptrace?");
758
+ }
759
}
760
run_compiler_and_exit(
761
&rustc_args,
0 commit comments