Skip to content

don't panic on missing page tags #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2024
Merged

Conversation

lqd
Copy link
Member

@lqd lqd commented Nov 28, 2024

Earlier today we had an interesting perf run: a try build seemingly created an invalid .mm_profdata file. This caused a panic in the event decoder checks (that, in turn, made the perf collector panic and infinite loop on the same benchmark 😅), although it supports errors in the file header and magic values.

This PR expands the error checking and turns these panics into errors so that they can be handled upstream, even though the file the decoder was asked to read is completely invalid. AFAICT it was only the header that was present -- though I can find out more about it if you want?.

@Mark-Simulacrum Mark-Simulacrum enabled auto-merge (squash) December 22, 2024 13:59
@Mark-Simulacrum Mark-Simulacrum merged commit 1bbbc64 into rust-lang:master Dec 22, 2024
4 checks passed
@lqd lqd deleted the panics branch December 22, 2024 16:20
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