]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/encoding: probe `setarch -R` and drop the arch argument
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 21 Jun 2026 08:42:54 +0000 (16:42 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 22 Jun 2026 02:57:27 +0000 (10:57 +0800)
commit3ba08f88ade0cff63783ffcdfc238cbe7d91f16d
treef1fbb0750cfdfc9d00bdd65b965815f3d0ec4454
parent1089fa3a6fd8d64685909ca4ef146f68843f0334
test/encoding: probe `setarch -R` and drop the arch argument

readable.sh wraps ceph-dencoder with `setarch $(uname -m) -R` to disable
ASLR on ASan builds, but the arch-qualified form also sets the personality
to that arch, which fails where setarch can't (e.g. riscv64). Use bare
`setarch -R` to only clear ASLR, and probe it first so the script falls
back to running ceph-dencoder unwrapped.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/test/encoding/readable.sh