codelldb
codelldb copied to clipboard
debugger adapter crashes randomly when debugging native code
OS: macos 11.6.1 VSCode version: 1.62.3 CodeLLDB version: v1.6.10 Compiler: Apple clang version 11.0.3 (clang-1103.0.32.29) Debuggee: native c++ Target: x86_64-apple-darwin20.6.0
debugger adapter keeps crashing
Verbose log
configuration: { name: 'test-lldb', type: 'lldb', request: 'launch', program: '${workspaceFolder}/bin/test', args: [ '*empty', '--run', '--trace' ], stdio: null, terminal: 'integrated', initCommands: [], __configurationTarget: 5, relativePathBase: '/Users/valery/Src/Exif' } Listening on port 63439 ERROR(Python) 09:31:58 codelldb: Traceback (most recent call last): File "/Users/valery/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/adapter/codelldb.py", line 152, in evaluate value = evaluate_in_context(pycode, is_simple_expr, context) File "/Users/valery/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/adapter/codelldb.py", line 288, in evaluate_in_context return eval(code, eval_globals, eval_locals) File "", line 1, inFile "/Users/valery/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/adapter/codelldb.py", line 269, in __missing__ raise VariableNotFound(name) codelldb.VariableNotFound: Variable 'r' not found [2021-11-29T17:31:58.601Z ERROR codelldb::debug_session] Variable 'r' not found Received signal: SIGSEGV 0: backtrace::backtrace::trace 1: backtrace::capture::Backtrace::new 2: codelldb::hook_crashes::handler 3: __sigtramp 4: __ZN15SymbolFileDWARF13GetTypeSystemER9DWARFUnit 5: __ZN15SymbolFileDWARF14GetDWARFParserER9DWARFUnit 6: __ZN19DWARFASTParserClang26CopyUniqueClassMethodTypesERK8DWARFDIES2_PN12lldb_private4TypeERNSt3__16vectorIS0_NS6_9allocatorIS0_EEEE 7: __ZN19DWARFASTParserClang15ParseSubroutineERK8DWARFDIER25ParsedDWARFTypeAttributes 8: __ZN19DWARFASTParserClang18ParseTypeFromDWARFERKN12lldb_private13SymbolContextERK8DWARFDIEPb 9: __ZN15SymbolFileDWARF9ParseTypeERKN12lldb_private13SymbolContextERK8DWARFDIEPb 10: __ZN15SymbolFileDWARF13GetTypeForDIEERK8DWARFDIEb 11: __ZN15SymbolFileDWARF11ResolveTypeERK8DWARFDIEbb 12: __ZN19DWARFASTParserClang25GetClangDeclContextForDIEERK8DWARFDIE 13: __ZN19DWARFASTParserClang29GetDeclContextForUIDFromDWARFERK8DWARFDIE 14: __ZN15SymbolFileDWARF14GetDeclContextERK8DWARFDIE 15: __ZN15SymbolFileDWARF20GetDeclContextForUIDEy 16: __ZN23SymbolFileDWARFDebugMap20GetDeclContextForUIDEy 17: __ZN12lldb_private5Block14GetDeclContextEv 18: __ZN12lldb_private13SymbolContext21GetFunctionMethodInfoERN4lldb12LanguageTypeERbRNS_11ConstStringE 19: __ZN12lldb_private10StackFrame33GetValueForVariableExpressionPathEN4llvm9StringRefEN4lldb16DynamicValueTypeEjRNSt3__110shared_ptrINS_8VariableEEERNS_6StatusE 20: __ZN4lldb7SBFrame23GetValueForVariablePathEPKcNS_16DynamicValueTypeE 21: __ZN4lldb7SBFrame23GetValueForVariablePathEPKc 22: _ZL37_wrap_SBFrame_GetValueForVariablePathP7_objectS0 23: _cfunction_call 24: __PyObject_Call 25: __PyEval_EvalFrameDefault 26: __PyEval_EvalCode 27: __PyFunction_Vectorcall 28: _call_function 29: __PyEval_EvalFrameDefault 30: __PyFunction_Vectorcall 31: _call_function 32: __PyEval_EvalFrameDefault 33: __PyFunction_Vectorcall 34: _method_vectorcall 35: _dict_subscript 36: _method_vectorcall_O 37: _vectorcall_method 38: _slot_mp_subscript 39: __PyEval_EvalFrameDefault 40: __PyEval_EvalCode 41: _PyEval_EvalCode 42: _builtin_eval 43: _cfunction_vectorcall_FASTCALL 44: _call_function 45: __PyEval_EvalFrameDefault 46: __PyFunction_Vectorcall 47: _call_function 48: __PyEval_EvalFrameDefault 49: __PyFunction_Vectorcall 50: __CallPythonObject 51: _closure_fcn 52: _ffi_closure_unix64_inner 53: _ffi_closure_unix64 54: codelldb::python::PythonInterface::evaluate 55: codelldb::debug_session::variables::<impl codelldb::debug_session::DebugSession>::evaluate_expr_in_frame 56: codelldb::debug_session::variables::<impl codelldb::debug_session::DebugSession>::handle_evaluate_expression 57: codelldb::debug_session::DebugSession::handle_request_args 58: codelldb::debug_session::DebugSession::handle_request 59: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut 60: tokio::runtime::task::core::CoreStage<T>::poll 61: tokio::runtime::task::harness::Harness<T,S>::poll 62: std::thread::local::LocalKey<T>::with 63: tokio::task::local::LocalSet::tick 64: <tokio::task::local::LocalSet as core::future::future::Future>::poll 65: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll 66: tokio::park::thread::CachedParkThread::block_on 67: tokio::runtime::thread_pool::ThreadPool::block_on 68: tokio::runtime::Runtime::block_on 69: _entry 70: codelldb::main 71: std::sys_common::backtrace::__rust_begin_short_backtrace 72: std::rt::lang_start::{{closure}} 73: std::rt::lang_start_internal 74: _main
Debug adapter exit code=255, signal=null.