Skip to content

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