-
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
Dangling pointer observed in service heap snapshot test - possible compactor bug #34934
Comments
Possibly related: same test with compactor encountered an illegal cid in the parallel marker.
|
Another failure of the same test:
Core dumps are available: https://isolateserver.appspot.com/browse?namespace=default-gzip&hash=8eeb0289b745871e5be9981320d83f4ea9fcc971 |
|
#31421 also failed in |
another stack trace from 12 days ago with a crash in FAILED: dartk-vm release_ia32 standalone_2/io/http_outgoing_size_test
Expected: Pass
Actual: Crash
--- Command "vm" (took 05.000854s):
DART_CONFIGURATION=ReleaseIA32 out/ReleaseIA32/dart --short_socket_write --optimization-counter-threshold=5 --sync-async --ignore-unrecognized-flags --packages=/b/s/w/ir/.packages /b/s/w/ir/tests/standalone_2/io/http_outgoing_size_test.dart
exit code:
-6
stderr:
Class Id: 0
../../runtime/vm/raw_object.cc: 298: error: unreachable code
Dumping native stack trace for thread 565d
[0x010893ec] dart::Profiler::DumpStackTrace(void*)
[0x010893ec] dart::Profiler::DumpStackTrace(void*)
[0x012896b4] Dart_DumpNativeStackTrace
[0x0128adab] dart::Assert::Fail(char const*, ...)
[0x0109a9e9] dart::RawObject::VisitPointersPredefined(dart::ObjectPointerVisitor*, int)
[0x01254365] dart::Scavenger::ProcessToSpace(dart::ScavengerVisitor*)
[0x01254c90] dart::Scavenger::Scavenge()
[0x01249073] dart::Heap::CollectNewSpaceGarbage(dart::Thread*, dart::Heap::GCReason)
[0x01247bff] dart::Heap::AllocateOld(int, dart::HeapPage::PageType)
[0x00ffba6e] dart::Object::Allocate(int, int, dart::Heap::Space)
[0x01011d67] dart::Function::New(dart::String const&, dart::RawFunction::Kind, bool, bool, bool, bool, bool, dart::Object const&, dart::TokenPosition, dart::Heap::Space)
[0x0102c28b] dart::Function::NewSignatureFunction(dart::Object const&, dart::Function const&, dart::TokenPosition, dart::Heap::Space)
[0x01212576] dart::kernel::TypeTranslator::BuildFunctionType(bool)
[0x01211ed9] dart::kernel::TypeTranslator::BuildTypeInternal(bool)
[0x0121212f] dart::kernel::TypeTranslator::BuildVariableType()
[0x0121b455] dart::kernel::ScopeBuilder::AddVariableDeclarationParameter(int, dart::kernel::ScopeBuilder::ParameterTypeCheckMode, dart::kernel::ProcedureAttributesMetadata const&)
[0x0121719c] dart::kernel::ScopeBuilder::BuildScopes()
[0x01086660] dart::ParsedFunction::EnsureKernelScopes()
[0x011eb63e] dart::kernel::StreamingFlowGraphBuilder::BuildGraph()
[0x01200786] dart::kernel::FlowGraphBuilder::BuildGraph()
[0x0122e15c] dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, int, bool)
[0x01230ae9] dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
[0x01231b90] Unknown symbol
[0x01232a08] dart::Compiler::CompileOptimizedFunction(dart::Thread*, dart::Function const&, int)
[0x012344a8] dart::BackgroundCompiler::Run()
[0x01234bd7] Unknown symbol
[0x01118ada] dart::ThreadPool::Worker::Loop()
[0x0111899e] dart::ThreadPool::Worker::Main(unsigned int)
[0x010858a3] Unknown symbol
[0xf7740f72] Unknown symbol
-- End of DumpStackTrace
--- Re-run this test:
python tools/test.py -m release -a ia32 -n dartk-optcounter-linux-release-ia32 standalone_2/io/http_outgoing_size_test |
I saw a similar crash in one of the configurations when I was submitting a CL: The stack trace
|
StubEntry was holding raw pointers across safepoints in several places in the compiler. Bug: #34934 Change-Id: Id17cb7651f4d3508915c8cb90f5cb2353df6dac0 Reviewed-on: https://dart-review.googlesource.com/c/85040 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
Bug: #34934 Change-Id: Ibba2ae5837985a32bd84da4b33bd091dcec3427d Reviewed-on: https://dart-review.googlesource.com/c/85141 Reviewed-by: Régis Crelier <regis@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
I haven't seen this fail since the StubEntry change, so I'll assume that's what the bots were encountering. |
StubEntry was holding raw pointers across safepoints in several places in the compiler. Bug: dart-lang#34934 Change-Id: Id17cb7651f4d3508915c8cb90f5cb2353df6dac0 Reviewed-on: https://dart-review.googlesource.com/c/85040 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This test was running with the compactor enabled for all major collections. It's possible the compactor failed to update some pointer.
The text was updated successfully, but these errors were encountered: