-
Notifications
You must be signed in to change notification settings - Fork 33
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
getEvent can't deserialize event serialized by putEvent #41
Comments
What does |
Given a header it returns event parsers ( |
I added a bunch of debug prints and it seems like the parser for EVENT_GC_STATS_GHC event can actually parse this and the parsed evSpec is identical to the original one, but somehow
it works... |
OK so this is because of |
So according to the event type parser event type of EVENT_GC_STATS_GHC is
this says the size is 58 but actually it's declared as 50 in So assuming event type parser is not buggy
Not sure why there's a mismatch. Perhaps there's one more field to |
Right, so GHC generates one more word for Not sure how to deal with this ... |
Quoting from the diff that added this new field: https://phabricator.haskell.org/D3658
So they relied on the fact that ghc-events (or other GHC event parsers) can deal with events larger than the parser for the event expects. |
ghc-events currently fails to deserialize some events that it serializes. To reproduce, first generate a minimal eventlog file from the program
main = return ()
(tried GHC 8.4), then runOutput:
The text was updated successfully, but these errors were encountered: