-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dart_ExecuteInternalCommand("gc-now") broken on *-precomp-win-* #46061
Comments
With the caveat that I'm entirely new to debugging on Windows, here are some preliminary findings on this issue. Reproducing steps:
Opening the resulting
Thread 6:
Which makes it look like an issue with |
@mraleph this seems like something that might be up your alley. Any ideas what's going on here? |
The code executing at the time is: sdk/runtime/vm/os_thread_win.cc Lines 247 to 248 in 99679b5
Which is Windows API. My guess is that it's a runtime linking issue (not too dissimilar to #40579), and we end up calling some garbage address where the Win. API should be? |
On dcharkes' suggestion I tried Debug in VisualStudio. More speculation: perhaps we need to produce two different Edit: Lines 1050 to 1052 in 28c784d
Switching the above line over to dart_precompiled_runtime.lib also fixes the issue, confirming the theory.
|
This issue's title suggests that Could we close this as duplicate of #40579? |
This removes the need for passing the flag to use Dart_ExecuteInternalCommand, which is done in several tests that otherwise have nothing to do with testing pragmas. Also adds status file skips for precomp-win targets that currently crash due to #40579. TEST=CQ Bug: #46059, #46061 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-win-release-x64-try,vm-kernel-precomp-nnbd-win-release-x64-try,vm-kernel-win-debug-x64-try Change-Id: I3024ad9bedb7a74abaaaa1020b7525e5d8b1bd47 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200461 Commit-Queue: Clement Skau <cskau@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
Several test are crashing on precompiled Windows, while calling
Dart_ExecuteInternalCommand("gc-now")
:To replicate this, you will currently need to remove a condition as described in #46059, after which the tests above will fail.
Edit: This appears to likewise affect other
Dart_ExecuteInternalCommand(..)
calls, and probably other functions as well.The text was updated successfully, but these errors were encountered: