dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

Failures on Test some more corner cases of field promotion. #52956

Open alexmarkov opened 1 year ago

alexmarkov commented 1 year ago

There are new test failures on Test some more corner cases of field promotion..

The tests

co19/LanguageFeatures/Subtyping/dynamic/generated/function_type_function_global_variable_A10_t01 Crash (expected Pass)

are failing on configurations

vm-mac-debug-arm64

Log:

--- Command "vm" (took 73ms):
DART_CONFIGURATION=DebugARM64 xcodebuild/DebugARM64/dart --sound-null-safety -Dtest_runner.configuration=vm-mac-debug-arm64 --ignore-unrecognized-flags --packages=/Volumes/Work/s/w/ir/.dart_tool/package_config.json /Volumes/Work/s/w/ir/tests/co19/src/LanguageFeatures/Subtyping/dynamic/generated/function_type_function_global_variable_A10_t01.dart

exit code:
-6

stderr:
../../runtime/vm/raw_object.cc: 285: error: Size mismatch: 32 from class vs 48 from tags 59330

version=3.1.0-edge.5db0c2b5461e179a05e458f8869b5ded083b922e (be) (Mon Jul 17 18:06:16 2023 +0000) on "macos_arm64"
pid=67435, thread=8195, isolate_group=main(0x14800a400), isolate=(nil)(0x0)
os=macos, arch=arm64, comp=no, sim=no
isolate_instructions=1048f9dc0, vm_instructions=1048f9dc0
fp=16b996be0, sp=16b996bb8, pc=104ca98d0
  pc 0x0000000104ca98d0 fp 0x000000016b996be0 dart::Profiler::DumpStackTrace(void*)+0x68
  pc 0x00000001048f9f88 fp 0x000000016b996c00 dart::Assert::Fail(char const*, ...) const+0x28
  pc 0x0000000104cc5dc0 fp 0x000000016b996c70 dart::UntaggedObject::HeapSizeFromClass(unsigned long) const+0x474
  pc 0x0000000104a355a4 fp 0x000000016b996cc0 dart::UntaggedObject::HeapSize() const+0x2c
  pc 0x0000000104cc6000 fp 0x000000016b996d20 dart::UntaggedObject::VisitPointersPredefined(dart::ObjectPointerVisitor*, long)+0x78
  pc 0x0000000104da3f68 fp 0x000000016b996d90 dart::MarkingVisitorBase<true>::DrainMarkingStackWithPauseChecks()+0x118
  pc 0x0000000104da3b98 fp 0x000000016b996e40 dart::ConcurrentMarkTask::Run()+0x80
  pc 0x0000000104d654dc fp 0x000000016b996ef0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x17c
  pc 0x0000000104d65d9c fp 0x000000016b996f50 dart::ThreadPool::Worker::Main(unsigned long)+0x124
  pc 0x0000000104ca2a38 fp 0x000000016b996fc0 dart::ThreadStart(void*)+0xcc
  pc 0x00000001a7fd026c fp 0x000000016b996fe0 _pthread_start+0x94
-- End of DumpStackTrace

--- Re-run this test:
python3 tools/test.py -n vm-mac-debug-arm64 co19/LanguageFeatures/Subtyping/dynamic/generated/function_type_function_global_variable_A10_t01

https://dart-ci.appspot.com/log/vm-mac-debug-arm64/vm-mac-debug-arm64/755/co19/LanguageFeatures/Subtyping/dynamic/generated/function_type_function_global_variable_A10_t01

The change looks unrelated. The failure could be flaky as deflaking doesn't work at the moment.

alexmarkov commented 1 year ago

I wasn't able to reproduce the crash locally (even with 2000 runs).