From 995e30505edec41561eeb974e6bf6a73229b9789 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 20 Apr 2026 16:59:11 +0100 Subject: [PATCH] fix: update setarch command arguments to use long options --- src/executor/helpers/command.rs | 4 ++-- src/executor/valgrind/measure.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/executor/helpers/command.rs b/src/executor/helpers/command.rs index abd7dd8b..6f16f39f 100644 --- a/src/executor/helpers/command.rs +++ b/src/executor/helpers/command.rs @@ -141,11 +141,11 @@ mod tests { let mut builder = CommandBuilder::new("valgrind"); builder .arg("my-program") - .wrap("setarch", ["x86_64", "-R"]) + .wrap("setarch", ["x86_64", "--addr-no-randomize"]) .wrap("sudo", ["-n"]); assert_eq!( builder.as_command_line(), - "sudo -n setarch x86_64 -R valgrind my-program" + "sudo -n setarch x86_64 --addr-no-randomize valgrind my-program" ); } diff --git a/src/executor/valgrind/measure.rs b/src/executor/valgrind/measure.rs index 6a52f13c..d493cc75 100644 --- a/src/executor/valgrind/measure.rs +++ b/src/executor/valgrind/measure.rs @@ -97,7 +97,7 @@ pub async fn measure( // Create the command let mut cmd = Command::new("setarch"); - cmd.arg(ARCH).arg("-R"); + cmd.arg(ARCH).arg("--addr-no-randomize"); // Configure the environment cmd.envs(get_base_injected_env( RunnerMode::Simulation,