Skip to content
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

don't panic on missing page tags #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

don't panic on missing page tags #239

wants to merge 1 commit into from

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?.

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.

1 participant