Skip to content
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

Flaky crash with error: expected: IsWellFormed() - possibly GC / memory corruption #59905

Open
mkustermann opened this issue Jan 14, 2025 · 0 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. gardening triaged Issue has been triaged by sub team

Comments

@mkustermann
Copy link
Member

From the flaky failure in log:


/============================================================================\
| language/deferred/no_such_method_test broke (Pass -> Crash, expected Pass) |
\============================================================================/

--- Command "vm_compile_to_kernel" (took 01.000318s):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & C:\b\s\w\ir\pkg\vm\tool\gen_kernel.bat --aot --platform=out/DebugX64/vm_platform_strong.dill -o C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_no_such_method_test\out.dill C:\b\s\w\ir\tests\language\deferred\no_such_method_test.dart -Dtest_runner.configuration=vm-aot-win-debug-x64 --packages=C:\b\s\w\ir\.dart_tool\package_config.json -Ddart.vm.product=false --sound-null-safety

exit code:
0

--- Command "precompiler" (took 07.000990s):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & out\DebugX64\gen_snapshot --snapshot-kind=app-aot-elf --elf=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_no_such_method_test/out.aotsnapshot --loading-unit-manifest=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_no_such_method_test/ignored.json --sound-null-safety -Dtest_runner.configuration=vm-aot-win-debug-x64 --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.dart_tool\package_config.json C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_no_such_method_test\out.dill

exit code:
0

--- Command "remove_kernel_file" (took 20ms):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & cmd.exe /c del C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_no_such_method_test\out.dill

exit code:
0

--- Command "vm" (took 248ms):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & set TEST_COMPILATION_DIR=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_no_such_method_test & out\DebugX64\dartaotruntime.exe --sound-null-safety -Dtest_runner.configuration=vm-aot-win-debug-x64 --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.dart_tool\package_config.json C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_no_such_method_test/out.aotsnapshot

exit code:
1073741845

stdout:
unittest-suite-wait-for-done
unittest-suite-success

stderr:
../../runtime/vm/tagged_pointer.h: 103: error: expected: IsWellFormed()
version=3.7.0-edge (main) (Unknown timestamp) on "windows_x64"
pid=7372, thread=1156, isolate_group=vm-service(0000021ECADAE070), isolate=vm-service(0000021ECADB7250)
os=windows, arch=x64, comp=no, sim=no
isolate_instructions=21eca0a7c40, vm_instructions=21eca0a0000
fp=a27e0fdd38, sp=a27e0fdd38, pc=7ff7754b9542
  pc 0x00007ff7754b9542 fp 0x000000a27e0fdd38 Unknown symbol
-- End of DumpStackTrace

--- Re-run this test:
python3 tools/test.py -n vm-aot-win-debug-x64 language/deferred/no_such_method_test


/================================================================================\
| language/deferred/redirecting_factory_test failed again (Crash, expected Pass) |
\================================================================================/

--- Command "vm_compile_to_kernel" (took 01.000169s):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & C:\b\s\w\ir\pkg\vm\tool\gen_kernel.bat --aot --platform=out/DebugX64/vm_platform_strong.dill -o C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_redirecting_factory_test\out.dill C:\b\s\w\ir\tests\language\deferred\redirecting_factory_test.dart -Dtest_runner.configuration=vm-aot-win-debug-x64 --packages=C:\b\s\w\ir\.dart_tool\package_config.json -Ddart.vm.product=false --sound-null-safety

exit code:
0

--- Command "precompiler" (took 08.000373s):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & out\DebugX64\gen_snapshot --snapshot-kind=app-aot-elf --elf=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_redirecting_factory_test/out.aotsnapshot --loading-unit-manifest=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_redirecting_factory_test/ignored.json --sound-null-safety -Dtest_runner.configuration=vm-aot-win-debug-x64 --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.dart_tool\package_config.json C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_redirecting_factory_test\out.dill

exit code:
0

--- Command "remove_kernel_file" (took 62ms):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & cmd.exe /c del C:\b\s\w\ir\out\DebugX64\generated_compilations\vm-aot-win-debug-x64\tests_language_deferred_redirecting_factory_test\out.dill

exit code:
0

--- Command "vm" (took 273ms):
set DART_CONFIGURATION=DebugX64 & set DART_SUPPRESS_WER=1 & set DART_CRASHPAD_HANDLER=C:\b\s\w\ir\out\DebugX64\crashpad_handler.exe & set TEST_COMPILATION_DIR=C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_redirecting_factory_test & out\DebugX64\dartaotruntime.exe --sound-null-safety -Dtest_runner.configuration=vm-aot-win-debug-x64 --ignore-unrecognized-flags --packages=C:\b\s\w\ir\.dart_tool\package_config.json C:/b/s/w/ir/out/DebugX64/generated_compilations/vm-aot-win-debug-x64/tests_language_deferred_redirecting_factory_test/out.aotsnapshot

exit code:
1073741845

stdout:
unittest-suite-wait-for-done

stderr:
Unhandled exception:
Expect.throws fails: Did not throw
#0      Expect._fail (package:expect/expect.dart:887)
#1      Expect.throws (package:expect/expect.dart:772)
#2      test1 (file:///C:/b/s/w/ir/tests/language/deferred/redirecting_factory_test.dart:18)
#3      test (file:///C:/b/s/w/ir/tests/language/deferred/redirecting_factory_test.dart:42)
#4      main (file:///C:/b/s/w/ir/tests/language/deferred/redirecting_factory_test.dart:49)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:315)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194)
../../runtime/vm/tagged_pointer.h: 103: error: expected: IsWellFormed()
version=3.7.0-edge (main) (Unknown timestamp) on "windows_x64"
pid=9852, thread=13336, isolate_group=vm-service(000002374362F290), isolate=vm-service(000002374363A510)
os=windows, arch=x64, comp=no, sim=no
isolate_instructions=23742927c40, vm_instructions=23742920000
fp=fb0a3fe188, sp=fb0a3fe188, pc=7ff6711f9542
  pc 0x00007ff6711f9542 fp 0x000000fb0a3fe188 Unknown symbol
-- End of DumpStackTrace

--- Re-run this test:
python3 tools/test.py -n vm-aot-win-debug-x64 language/deferred/redirecting_factory_test

/cc @rmacnak-google

@mkustermann mkustermann added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. gardening labels Jan 14, 2025
@a-siva a-siva added the triaged Issue has been triaged by sub team label Jan 15, 2025
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. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. gardening triaged Issue has been triaged by sub team
Projects
None yet
Development

No branches or pull requests

2 participants