-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix #24982: emsymbolizer failed to parse symbol map from C++ project #24994
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
Fix #24982: emsymbolizer failed to parse symbol map from C++ project #24994
Conversation
549ccad
to
d792fa6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
Is there some reason we cannot or should not just update the symbol map to avoid this mangling in the first place. What is the source of the mangling in the first place? What style of mangling is |
I don't know what kind of mangling that is; it doesn't exactly match others that I'm familiar with. |
I'd be tempted to make that change to the symbol map to include fully demanged symbols. @kripken do you remember why we have these strange escape codes in the map file? |
I'm not sure. But isn't the symbol map just copying the name section? It should contain whatever is there iirc. |
So maybe the issue is that the name section is broken? |
The name sections is fine. The problem seems to stem from the I think we should file a binaryen bug, or maybe just avoid binaryen for this purpose (since we don't need to run process the whole wasm file, only the name section. |
@sbc100 do you want this PR to wait until we figure that out, or can this land? |
I don't think we we should land this since it would only act to further lock in the strange escaping behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should go with #25053 instead
Oh, I think the first part of this PR is still important though:
That handles splitting when the line contains We can refocus this PR on just that? |
Ah, yes that could make sense. |
3a59a68
to
b881a2e
Compare
Thanks guys! The name escape part has been reverted. Please review 🌹 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, just a couple of nits on the test.
af71e60
to
b2ffeb2
Compare
Some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you merge the PR to the tip of the main branch, the code size test failures should go away. And you'll have to do that anyway, since you have a conflict.
1892db6
to
0c6cba1
Compare
0c6cba1
to
253e27d
Compare
Thanks for you patience on this PR. LGTM with one final comment! |
11dff9f
to
0cbf38d
Compare
browser test failures are unrelated, I'll go ahead and merge this. Thanks! |
This PR fixes #24982