-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[wasm] Exception filter clause evaluated at wrong time #52394
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsRepro: radekdoulik@0a454d2 The modified sample above tests the ordering of exception filter clause evaluation. When built with AOT, the clause is evaluated at wrong time. Looks like we are unwinding the stack (and thus running finnaly block) before evaluating the filter clause. That leads to unhandled exception in this test, as the finally block modifies the state (answer variable) and the clause is evaluated as false. Test output built with AOT:
When built without AOT, it works as expected and we don't get unhandled exception. Output with interpreter only:
Assigning to @BrzVlad as the filtering happens in interpreter. The origin of the issue might be in AOT though, as the handling of the exception starts in AOT code. /cc @vargaz
|
@radekdoulik I assume this was fixed by #52883 right ? |
Yes, it is fixed now. |
Repro: radekdoulik@0a454d2
The modified sample above tests the ordering of exception filter clause evaluation. When built with AOT, the clause is evaluated at wrong time.
Looks like we are unwinding the stack (and thus running finnaly block) before evaluating the filter clause. That leads to unhandled exception in this test, as the finally block modifies the state (answer variable) and the clause is evaluated as false.
Test output built with AOT:
When built without AOT, it works as expected and we don't get unhandled exception. Output with interpreter only:
Assigning to @BrzVlad as the filtering happens in interpreter. The origin of the issue might be in AOT though, as the handling of the exception starts in AOT code.
/cc @vargaz
The text was updated successfully, but these errors were encountered: