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

Debugger crashes in expression evaluation #35095

Open
a-siva opened this Issue Nov 7, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@a-siva
Contributor

a-siva commented Nov 7, 2018

Here is an example of more debugger crashiness while exploring mirrors (SDK at head yesterday, before the revert of the type checking). Modified parseListProperty to be the following, with a breakpoint on the return and I tried to have the debugger evaluate the expression at that line.

(Please see #35009 (comment) for more context)

Testing started at 9:53 AM ...
/usr/local/google/home/jcollins/dart/all_sdks/current/bin/dart --pause_isolates_on_start --enable-vm-service:39605 /usr/local/google/home/jcollins/dart/all_sdks/current/bin/snapshots/pub.dart.snapshot run test -r json /usr/local/google/home/jcollins/dart/rpc/test/api_config_test.dart -N request-parsing
Observatory listening on http://127.0.0.1:39605/

===== CRASH =====
version=2.1.0-edge.e58560548881093042a59faba2e074af44d63f11 (Tue Nov 6 17:43:40 2018 +0000) on "linux_x64"
si_signo=Segmentation fault(11), si_code=2, si_addr=0x7f7ea0ec0041
Dumping native stack trace for thread 3a8b7
  [0x00007f7ea0ec0041] Unknown symbol
  [0x00007f7ea0ec0041] Unknown symbol
  [0x000055c8f9fab955] dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)
  [0x000055c8fa236e1f] dart::kernel::ConstantEvaluator::RunFunction(dart::TokenPosition, dart::Function const&, dart::Array const&, dart::Array const&)
  [0x000055c8fa236cc6] dart::kernel::ConstantEvaluator::RunFunction(dart::TokenPosition, dart::Function const&, long, dart::Instance const*, dart::TypeArguments const*)
  [0x000055c8fa2335a0] dart::kernel::ConstantEvaluator::EvaluateStaticInvocation()
  [0x000055c8fa23624c] dart::kernel::ConstantEvaluator::EvaluateStaticInvocation(long, bool)
  [0x000055c8fa248826] dart::kernel::StreamingFlowGraphBuilder::BuildStaticInvocation(bool, dart::TokenPosition*)
  [0x000055c8fa23b38e] dart::kernel::StreamingFlowGraphBuilder::BuildExpression(dart::TokenPosition*)
  [0x000055c8fa25133a] dart::kernel::StreamingFlowGraphBuilder::BuildArgumentsFromActualArguments(dart::Array*, bool, bool)
  [0x000055c8fa2472d7] dart::kernel::StreamingFlowGraphBuilder::BuildMethodInvocation(dart::TokenPosition*)
  [0x000055c8fa23b36c] dart::kernel::StreamingFlowGraphBuilder::BuildExpression(dart::TokenPosition*)
  [0x000055c8fa2447c3] dart::kernel::StreamingFlowGraphBuilder::BuildPropertyGet(dart::TokenPosition*)
  [0x000055c8fa23b0fd] dart::kernel::StreamingFlowGraphBuilder::BuildExpression(dart::TokenPosition*)
  [0x000055c8fa24e8b0] dart::kernel::StreamingFlowGraphBuilder::BuildReturnStatement()
  [0x000055c8fa23d39e] dart::kernel::StreamingFlowGraphBuilder::BuildStatement()
  [0x000055c8fa242c03] dart::kernel::StreamingFlowGraphBuilder::BuildFunctionBody(dart::Function const&, dart::LocalVariable*, bool)
  [0x000055c8fa243902] dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool)
  [0x000055c8fa244107] dart::kernel::StreamingFlowGraphBuilder::BuildGraph()
  [0x000055c8fa259149] dart::kernel::FlowGraphBuilder::BuildGraph()
  [0x000055c8fa28ca3a] dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool)
  [0x000055c8fa28f7e1] dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
  [0x000055c8fa290820] Unknown symbol
  [0x000055c8fa290198] dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&)
  [0x000055c8f9fab79d] dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)
  [0x000055c8fa03cd0d] Unknown symbol
  [0x000055c8f9fb8161] dart::ActivationFrame::EvaluateCompiledExpression(unsigned char const*, long, dart::Array const&, dart::Array const&, dart::TypeArguments const&)
  [0x000055c8fa131013] Unknown symbol
  [0x000055c8fa126be8] dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)
  [0x000055c8fa127375] dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&)
  [0x000055c8f9fe01e3] dart::IsolateMessageHandler::HandleMessage(dart::Message*)
  [0x000055c8fa011efe] dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)
  [0x000055c8fa012157] dart::MessageHandler::HandleOOBMessages()
  [0x000055c8fa2ca84a] Dart_HandleServiceMessages
  [0x000055c8f9fe79f0] dart::Isolate::PauseEventHandler()
  [0x000055c8f9fb281b] dart::Debugger::Pause(dart::ServiceEvent*)
  [0x000055c8f9fc105a] dart::Debugger::PauseBreakpoint()
  [0x000055c8fa111910] dart::DRT_BreakpointRuntimeHandler(dart::NativeArguments)
  [0x00007f7ea0e40f02] Unknown symbol
  [0x00007f7ea0e41e41] Unknown symbol
  [0x00007f7e8ebf25ce] Unknown symbol
  [0x00007f7e8ebe9596] Unknown symbol
  [0x00007f7e8ebe6230] Unknown symbol
  [0x00007f7e8ebe5a9c] Unknown symbol
  [0x00007f7e8ebe5584] Unknown symbol
  [0x00007f7e8ebd959a] Unknown symbol
  [0x00007f7e8ebd3cb6] Unknown symbol
  [0x00007f7e9437f4b6] Unknown symbol
  [0x00007f7e8ebcfe79] Unknown symbol
  [0x00007f7e87af317f] Unknown symbol
  [0x00007f7e87af3062] Unknown symbol
  [0x00007f7e943498b9] Unknown symbol
  [0x00007f7e8ebd1eb8] Unknown symbol
  [0x00007f7e9437f4b6] Unknown symbol
  [0x00007f7e8ebc994b] Unknown symbol
  [0x00007f7e8ebd1cfe] Unknown symbol
  [0x00007f7e87aebaa8] Unknown symbol
  [0x00007f7e87aeb895] Unknown symbol
  [0x00007f7e87aeb1b6] Unknown symbol
  [0x00007f7e87af2c66] Unknown symbol
  [0x00007f7e87af28a5] Unknown symbol
  [0x00007f7e87af1979] Unknown symbol
  [0x00007f7e8732d5ac] Unknown symbol
  [0x00007f7e8732cbe5] Unknown symbol
  [0x00007f7e8732c527] Unknown symbol
  [0x00007f7e8732c0c7] Unknown symbol
  [0x00007f7e8ebd0c2d] Unknown symbol
  [0x00007f7e87af317f] Unknown symbol
  [0x00007f7e87af3062] Unknown symbol
  [0x00007f7e943498b9] Unknown symbol
  [0x00007f7e8ebd1eb8] Unknown symbol
  [0x00007f7e9437f4b6] Unknown symbol
  [0x00007f7e8ebc994b] Unknown symbol
  [0x00007f7e8ebd1cfe] Unknown symbol
  [0x00007f7e87aebaa8] Unknown symbol
  [0x00007f7e87aeb895] Unknown symbol
  [0x00007f7e87aeb1b6] Unknown symbol
  [0x00007f7e87af2c66] Unknown symbol
  [0x00007f7e87af28a5] Unknown symbol
  [0x00007f7e87af1979] Unknown symbol
  [0x00007f7e876d0f80] Unknown symbol
  [0x00007f7e9437f4b6] Unknown symbol
  [0x00007f7e8ebc994b] Unknown symbol
  [0x00007f7e8ebc973e] Unknown symbol
  [0x00007f7e87ace07f] Unknown symbol
  [0x00007f7e87acddff] Unknown symbol
  [0x00007f7e87acd453] Unknown symbol
  [0x00007f7e87af01ff] Unknown symbol
  [0x00007f7e87af00c0] Unknown symbol
  [0x00007f7e87ae5589] Unknown symbol
  [0x00007f7e87ae513f] Unknown symbol
  [0x00007f7e87ae5017] Unknown symbol
  [0x00007f7e8ebc87e7] Unknown symbol
  [0x00007f7e8ebc6bb8] Unknown symbol
  [0x00007f7e8ebc679a] Unknown symbol
  [0x00007f7e943498b9] Unknown symbol
  [0x00007f7e9436b250] Unknown symbol
  [0x00007f7ea0e41363] Unknown symbol
  [0x000055c8f9fab955] dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)
  [0x000055c8f9faedb0] dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&)
  [0x000055c8f9fdfffb] dart::IsolateMessageHandler::HandleMessage(dart::Message*)
  [0x000055c8fa011e2a] dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)
  [0x000055c8fa0125bc] dart::MessageHandler::TaskCallback()
  [0x000055c8fa15f10d] dart::ThreadPool::Worker::Loop()
  [0x000055c8fa15efa4] dart::ThreadPool::Worker::Main(unsigned long)
  [0x000055c8fa0ba6f9] Unknown symbol
-- End of DumpStackTrace

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

@a-siva a-siva added the area-vm label Nov 7, 2018

@a-siva

This comment has been minimized.

Contributor

a-siva commented Nov 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment