Skip to content

xdp: fix uninitialized variable in test#8192

Open
intrigus-lgtm wants to merge 2 commits intomainfrom
intrigus/fix/xdp-tile-test-uninit
Open

xdp: fix uninitialized variable in test#8192
intrigus-lgtm wants to merge 2 commits intomainfrom
intrigus/fix/xdp-tile-test-uninit

Conversation

@intrigus-lgtm
Copy link
Contributor

The during_frag_expected_sz variable was not initialized leading to mismatches in fd_memeq later on. This bug is surprisingly difficult to trigger as neither msan, ubsan nor asan were able to catch the problem. (At least with enabled optimizations)

@intrigus-lgtm intrigus-lgtm changed the title xdp: fix uninitialized variable xdp: fix uninitialized variable in test Feb 6, 2026
@intrigus-lgtm intrigus-lgtm marked this pull request as draft February 6, 2026 14:29
@intrigus-lgtm intrigus-lgtm force-pushed the intrigus/fix/xdp-tile-test-uninit branch from d202376 to 3ee2082 Compare February 6, 2026 16:53
@intrigus-lgtm intrigus-lgtm marked this pull request as ready for review February 6, 2026 16:53
@nlgripto
Copy link
Contributor

nlgripto commented Feb 6, 2026

crazy find

@intrigus-lgtm intrigus-lgtm force-pushed the intrigus/fix/xdp-tile-test-uninit branch 3 times, most recently from 090996c to 16989e4 Compare February 6, 2026 20:19
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@firedancer-io firedancer-io deleted a comment from github-actions bot Feb 6, 2026
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051338 s 0.051288 s -0.097%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 51.338233 s 51.287878 s -0.098%
firedancer mem usage with mainnet.toml 1069.34 GiB 1069.34 GiB 0.000%

@intrigus-lgtm
Copy link
Contributor Author

Sorry for the spam, but MSAN even with optimizations disabled didn't catch that we were comparing an uninitialized padding byte as the struct wasn't packed.
And this issue only reproduced in CI, which made debugging this very annoying.

The during_frag_expected_sz variable was not initialized leading to mismatches in fd_memeq later on.
This bug is surprisingly difficult to trigger as neither msan, ubsan nor asan were able to catch the problem.
(At least with enabled optimizations)
@intrigus-lgtm intrigus-lgtm force-pushed the intrigus/fix/xdp-tile-test-uninit branch from 16989e4 to 9d8e69f Compare February 6, 2026 22:30
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.051575 s 0.051603 s 0.054%
backtest mainnet-368528500-perf snapshot load NaN s NaN s NaN%
backtest mainnet-368528500-perf total elapsed 51.575233 s 51.602764 s 0.053%
firedancer mem usage with mainnet.toml 1069.34 GiB 1069.34 GiB 0.000%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants