-
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
[browser][MT] fix stale memory on suspended thread #94299
[browser][MT] fix stale memory on suspended thread #94299
Conversation
Tagging subscribers to 'arch-wasm': @lewing Issue Detailstesting alternative to #90771 Problem: when WebWorker is suspended in the browser, the other running threads could We believe that described problem is cause of MT problems with debugger tests, example log
|
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
ec0a5ca
to
aaed9b6
Compare
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
@thaystg I will wait for your feedback/approval |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Hmm, so now all errors are @thaystg does that mean my fix didn't help ? Or it means there is another issue ? Is debugger making the app to download something ? Does suspending thread while fetching break the fetch ? |
I also remember to have already tried it and it didn't help. But for me it's okay to try again. :) |
Where is "there" ? More details would help.
Could you please elaborate on what you tried ? |
4cb31ff
to
6ebae17
Compare
Look at artifacts tab here: https://dev.azure.com/dnceng-public/public/_build/results?buildId=459235&view=ms.vss-test-web.build-test-results-tab&runId=10361536&resultId=100252&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab |
Unfortunately I don't remember details of what I tested, I tried a lot of things before the workaround in that PR. |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
I think that the fix for memory views is good. Solid 10/10 There are problems with #89409 but that's unrelated issue
|
@pavelsavara thanks a lot and congrats for this fix!!! |
Alternative to #90771
Problem: when WebWorker is suspended in the browser, the other running threads could
grow
the linear memory in the meantime. After the thread is un-suspended it may to try to de-reference pointer which is beyond it's known view. This is likely V8 bug.We believe that described problem is cause of MT problems with debugger tests, example log