From 25c70bb1601a1e8788e8ded5d8aef1462f25d81d Mon Sep 17 00:00:00 2001 From: Brian Picciano <933154+mediocregopher@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:57:53 +0000 Subject: [PATCH 1/2] fix(antithesis): enable sparse trie coverage buckets --- contrib/antithesis/reth-state-root/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/antithesis/reth-state-root/Dockerfile b/contrib/antithesis/reth-state-root/Dockerfile index 5080958df15..302beb97c65 100644 --- a/contrib/antithesis/reth-state-root/Dockerfile +++ b/contrib/antithesis/reth-state-root/Dockerfile @@ -16,7 +16,8 @@ WORKDIR /work COPY . ./ # Instrument target code only, not host build scripts/proc macros. Disable LTO (with it the # crate-local ThinLTO pass over multiple codegen units): it can optimize away compile-time -# coverage. Keep assertions and line tables for Antithesis. +# coverage. Enable the sparse-trie coverage bank explicitly as well as fuzz below. +# Keep assertions and line tables for Antithesis. ENV CARGO_PROFILE_ANTITHESIS_DEBUG=line-tables-only \ CARGO_PROFILE_ANTITHESIS_DEBUG_ASSERTIONS=true \ CARGO_PROFILE_ANTITHESIS_OVERFLOW_CHECKS=true \ @@ -36,11 +37,13 @@ RUN --mount=type=cache,id=antithesis-reth-state-root-cargo-registry,target=/usr/ && cargo build --locked --profile antithesis -p reth-state-root-antithesis \ --features reth-state-root-antithesis/fuzz --bin reth-state-root-antithesis \ --target x86_64-unknown-linux-gnu \ - --config 'target.x86_64-unknown-linux-gnu.rustflags=["-Cpasses=sancov-module","-Cllvm-args=-sanitizer-coverage-level=3","-Cllvm-args=-sanitizer-coverage-trace-pc-guard","-Cllvm-args=-sanitizer-coverage-pc-table","-Clink-args=-Wl,--build-id"]' \ + --config 'target.x86_64-unknown-linux-gnu.rustflags=["--cfg","reth_sparse_trie_coverage","-Cpasses=sancov-module","-Cllvm-args=-sanitizer-coverage-level=3","-Cllvm-args=-sanitizer-coverage-trace-pc-guard","-Cllvm-args=-sanitizer-coverage-pc-table","-Clink-args=-Wl,--build-id"]' \ && sccache --show-stats \ && mkdir /out \ && cp target/x86_64-unknown-linux-gnu/antithesis/reth-state-root-antithesis /out/ \ && nm /out/reth-state-root-antithesis | grep ' T antithesis_load_libvoidstar$' \ + && nm --demangle /out/reth-state-root-antithesis \ + | grep 'reth_trie_sparse::arena::sparse_guidance::coverage_arm' > /dev/null \ && readelf -SW /out/reth-state-root-antithesis | grep __sancov_guards \ && readelf -SW /out/reth-state-root-antithesis | grep __sancov_pcs \ && readelf -SW /out/reth-state-root-antithesis | grep .debug_info \ From 5e6d67fd9efe30370618ec054c9df37e7745c1c7 Mon Sep 17 00:00:00 2001 From: Brian Picciano <933154+mediocregopher@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:45:28 +0000 Subject: [PATCH 2/2] fix(antithesis): consume the full coverage symbol listing --- contrib/antithesis/reth-state-root/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/antithesis/reth-state-root/Dockerfile b/contrib/antithesis/reth-state-root/Dockerfile index 302beb97c65..06c634b5c55 100644 --- a/contrib/antithesis/reth-state-root/Dockerfile +++ b/contrib/antithesis/reth-state-root/Dockerfile @@ -43,7 +43,7 @@ RUN --mount=type=cache,id=antithesis-reth-state-root-cargo-registry,target=/usr/ && cp target/x86_64-unknown-linux-gnu/antithesis/reth-state-root-antithesis /out/ \ && nm /out/reth-state-root-antithesis | grep ' T antithesis_load_libvoidstar$' \ && nm --demangle /out/reth-state-root-antithesis \ - | grep 'reth_trie_sparse::arena::sparse_guidance::coverage_arm' > /dev/null \ + | grep -c 'reth_trie_sparse::arena::sparse_guidance::coverage_arm' \ && readelf -SW /out/reth-state-root-antithesis | grep __sancov_guards \ && readelf -SW /out/reth-state-root-antithesis | grep __sancov_pcs \ && readelf -SW /out/reth-state-root-antithesis | grep .debug_info \