-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[ffi] Async sample crashes on Windows precompiled #40564
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
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
Comments
Update, it's trying to use Changing the way we build the dll makes it work in AOT, but not in JIT: shared_library("ffi_test_functions") {
deps = [
":dart",
]
# The two files here do not depend on each other.
# flutter/flutter integration tests will only use `ffi_test_functions.cc` -
# any test functionality using `dart_api.h` has to go into
# `ffi_test_functions_vmspecific.cc`.
sources = [
"ffi_test/ffi_test_functions.cc",
"ffi_test/ffi_test_functions_vmspecific.cc",
]
if (is_win && current_cpu == "x64") {
sources += [ "ffi_test/clobber_x64_win.S" ]
} else if (!is_win) {
sources += [ "ffi_test/clobber_$current_cpu.S" ]
}
include_dirs = [ ".." ]
defines = [
# The only effect of DART_SHARED_LIB is to export the Dart API.
"DART_SHARED_LIB",
]
if (is_linux || is_android) {
cflags = [ "-fPIC" ]
}
if (is_win) {
libs = [ "dart_precompiled_runtime.lib" ] # changed this one
abs_root_out_dir = rebase_path(root_out_dir)
ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
}
} |
I filed an issue for the root cause: #40579. |
copybara-service bot
pushed a commit
that referenced
this issue
Oct 14, 2021
Splits up tests/ffi/function_structs_by_value_generated_test.dart in - compounds - non-leaf calls - leaf calls We could also consider splitting on chunks from the `functions` from tests/ffi/generator/structs_by_value_tests_configuration.dart as a follow up. TEST=This only splits up the tests, please reapprove failures. Expected failures: https://dart-ci.firebaseapp.com/current_results/#/filter=ffi - windows precompiled #40564 - mac arm64 #46349 Bug: #45007 Change-Id: Id3d9987cbc1e09f579b8cc68ce72fe5d36348b80 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-nnbd-win-release-x64-try,vm-kernel-precomp-win-release-x64-try,vm-kernel-precomp-win-debug-x64c-try,pkg-mac-release-arm64-try,vm-kernel-mac-release-arm64-try,vm-kernel-nnbd-mac-debug-arm64-try,vm-kernel-nnbd-mac-release-arm64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216666 Reviewed-by: Clement Skau <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
Uh oh!
There was an error while loading. Please reload this page.
Test crashes on Windows in precompiled mode, but runs fine in JIT mode.
https://dart-review.googlesource.com/c/sdk/+/134704
From VS debugger:
Exception thrown at 0x00000000015510F6 in dart_precompiled_runtime.exe: 0xC0000005: Access violation executing location 0x00000000015510F6.
0000000004C86C41 call qword ptr [__imp_EnterCriticalSection (0538F4F0h)]
cc @mkustermann
The
alloc
that is used:N.b. it also fails in Release mode.
runtime\vm\datastream.h:324
Debugger is at some locking step.
The text was updated successfully, but these errors were encountered: