Open alexmarkov opened 4 years ago
Also flakes on mac
/=====================================================================================================\
| dartk-weak-asserts-mac-debug-x64:vm/cc/DartAPI_NotifyLowMemory broke (Pass -> Crash, expected Pass) |
\=====================================================================================================/
--- Command "run_vm_unittest" (took 12.000824s):
DART_CONFIGURATION=DebugX64 xcodebuild/DebugX64/run_vm_tests --dfe=/b/s/w/ir/xcodebuild/DebugX64/gen/kernel-service.dart.snapshot --ignore-unrecognized-flags DartAPI_NotifyLowMemory
exit code:
-6
stdout:
Running test: DartAPI_NotifyLowMemory
stderr:
../../runtime/vm/heap/safepoint.h: 238: error: expected: T->execution_state() == Thread::kThreadInVM
version=2.12.0-edge.3a73870244cfe80b78f56102438b10e9a0f1a810 (be) (Mon Nov 23 22:07:07 2020 +0000) on "macos_x64"
pid=44315, thread=775, isolate_group=isolate(0x7f898502c200), isolate=isolate(0x7f8985038200)
isolate_instructions=100a2de20, vm_instructions=100a2de20
pc 0x0000000100dddbb4 fp 0x00007ffeef497ad0 dart::Profiler::DumpStackTrace(void*)+0x64
pc 0x0000000100b8e902 fp 0x00007ffeef497bb0 dart::Assert::Fail(char const*, ...)+0x82
pc 0x000000010094e102 fp 0x00007ffeef497be0 dart::TransitionVMToBlocked::TransitionVMToBlocked(dart::Thread*)+0x112
pc 0x0000000100cebd29 fp 0x00007ffeef497c20 dart::SafepointMonitorLocker::SafepointMonitorLocker(dart::Monitor*)+0x49
pc 0x000000010094f40c fp 0x00007ffeef497c70 dart::SafepointRwLock::EnterRead()+0x1c
pc 0x0000000100cb16f2 fp 0x00007ffeef497ce0 dart::IsolateGroup::ForEachIsolate(std::__2::function<void (dart::Isolate*)>, bool)+0x112
pc 0x0000000100cb82e4 fp 0x00007ffeef497d20 void std::__2::__function::__policy_invoker<void (dart::IsolateGroup*)>::__call_impl<std::__2::__function::__default_alloc_func<dart::Isolate::VisitIsolates(dart::IsolateVisitor*)::$_6, void (dart::IsolateGroup*)> >(std::__2::__function::__policy_storage const*, dart::IsolateGroup*)+0x44
pc 0x0000000100caffd9 fp 0x00007ffeef497da0 dart::Isolate::VisitIsolates(dart::IsolateVisitor*)+0x99
pc 0x0000000100cb25bf fp 0x00007ffeef497dd0 dart::Isolate::NotifyLowMemory()+0x2f
pc 0x0000000101382cc0 fp 0x00007ffeef497e30 Dart_NotifyLowMemory+0x30
pc 0x0000000100cf3a17 fp 0x00007ffeef497e90 dart::NativeEntry::AutoScopeNativeCallWrapperNoStackCheck(_Dart_NativeArguments*, void (*)(_Dart_NativeArguments*))+0xe7
pc 0x0000000105802614 fp 0x00007ffeef497ed0 Unknown symbol
pc 0x0000000105e02110 fp 0x00007ffeef497f00 Unknown symbol
pc 0x0000000105e02a20 fp 0x00007ffeef497f50 Unknown symbol
pc 0x000000010580286d fp 0x00007ffeef497fb8 Unknown symbol
pc 0x0000000100c657fc fp 0x00007ffeef498050 dart::DartEntry::InvokeCode(dart::Code const&, dart::Array const&, dart::Array const&, dart::Thread*)+0xfc
pc 0x0000000100c6555d fp 0x00007ffeef4980c0 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x11d
pc 0x0000000100d537f5 fp 0x00007ffeef498140 dart::Library::Invoke(dart::String const&, dart::Array const&, dart::Array const&, bool, bool) const+0x215
pc 0x0000000101398ded fp 0x00007ffeef498240 Dart_Invoke+0x59d
pc 0x000000010085bd46 fp 0x00007ffeef498300 dart::Dart_TestDartAPI_NotifyLowMemory()+0x176
pc 0x00000001007e13ee fp 0x00007ffeef498320 dart::TestCase::Run()+0x1e
pc 0x00000001007e1553 fp 0x00007ffeef498350 dart::TestCaseBase::RunTest()+0x53
pc 0x0000000100963de7 fp 0x00007ffeef498370 dart::TestCaseBase::RunAll()+0x27
pc 0x00000001007e1b79 fp 0x00007ffeef4983b0 dart::Main(int, char const**)+0x469
pc 0x00000001007e1709 fp 0x00007ffeef4983c0 main+0x9
pc 0x00007fff5f62a015 fp 0x00007ffeef4983d0 start+0x1
-- End of DumpStackTrace
[exit : sp(0) fp(0x7ffeef497ed0) pc(0)]
[dart : sp(0x7ffeef497ee0) fp(0x7ffeef497f00) pc(0x105e02110) file:///test-lib_::_notifyLowMemory ]
[dart : sp(0x7ffeef497f10) fp(0x7ffeef497f50) pc(0x105e02a20) *file:///test-lib_::_main ]
[entry : sp(0x7ffeef497f60) fp(0x7ffeef497fb8) pc(0x10580286d)]
--- Re-run this test:
python tools/test.py -n dartk-weak-asserts-mac-debug-x64 vm/cc/DartAPI_NotifyLowMemory
The following flaky crashes can be reproduced in running all
vm/cc
tests in a loop:These crashes appear on flakiness dashboard as well. I was not able to reproduce them when running test cases separately.
/cc @rmacnak-google @aam