-
Notifications
You must be signed in to change notification settings - Fork 758
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
[Old EH] "pop's location is not valid"-error since Emscripten 3.1.73 #7127
Comments
Actually, the issue is that you are specifying MVP features, @kleisauke , but the wasm files uses a feature, wasm EH. It looks like the old parser did not error on such input, but the new one does. The error is slightly confusing, though, but an error is expected there. OTOH, enabling features and then doing |
Ah, it seems to work as expected when I add the $ strings vips.wasm | grep exception-handling
exception-handling+ (the binary was linked with the I think the reason I used |
The features from the target features section are applied while parsing the module, then |
While parsing a binary file, there may be pops that need to be fixed up even if EH is not (yet) enabled because the target features section has not been parsed yet. Previously `EHUtils::handleBlockNestedPops` did not do anything if EH was not enabled, so the binary parser would fail to fix up pops in that case. Fix the utility to run no matter what features are enabled and fix up its users so it is only called from optimization passes when EH is enabled. Fixes #7127.
Since Emscripten 3.1.73 (https://chromium.googlesource.com/emscripten-releases/+/b363a83) I encounter errors similar to those described in #6918 when attempting to print the target features section of an already built Wasm binary.
For example:
However, with Emscripten 3.1.72, these errors do not occur for the same Wasm binary:
This indicates a possible(?) regression in this revision range:
69591de...b1c5a00
The Wasm binary in question is relatively large (~5.4 MiB) and is available for download here:
reproducer.zip
Alternatively, you can reproduce this issue using:
The text was updated successfully, but these errors were encountered: