-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
test_async_hello_stack_switching fails under v8 10.7.187 and above: #17846
Comments
My local version is failing now too after updating v8. I'm not sure what has changed, I'll ask Thibaud. |
brendandahl
added a commit
to brendandahl/binaryen
that referenced
this issue
Sep 15, 2022
Fixes: emscripten-core/emscripten#17846 More detailed explanation of the issue from Thibaud: - A promising export is entered, generating a suspender s1, which is stored in the global - The wasm code calls a wrapped import, passing it the value in the global (s1) and suspends - Another export is entered, generating suspender s2, which is stored in the global - We call another wrapped import, which suspends s2 (so far so good) - We return to the event loop and s1 is resumed And now we are in an inconsistent state: the active suspender is "s1", but the object in the global is "s2". So the next time we call a wrapped import, there is a mismatch, which is what this runtime error reports.
brendandahl
added a commit
to WebAssembly/binaryen
that referenced
this issue
Sep 16, 2022
Fixes: emscripten-core/emscripten#17846 More detailed explanation of the issue from Thibaud: - A promising export is entered, generating a suspender s1, which is stored in the global - The wasm code calls a wrapped import, passing it the value in the global (s1) and suspends - Another export is entered, generating suspender s2, which is stored in the global - We call another wrapped import, which suspends s2 (so far so good) - We return to the event loop and s1 is resumed And now we are in an inconsistent state: the active suspender is "s1", but the object in the global is "s2". So the next time we call a wrapped import, there is a mismatch, which is what this runtime error reports.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://app.circleci.com/pipelines/github/emscripten-core/emscripten/23491/workflows/498e0d1d-cdbf-4e94-bcb3-b03a94d72763/jobs/566465
The text was updated successfully, but these errors were encountered: