codelldb: Process exited with status -1 when using native or bundled adapter only
Which OS: Mac OS X 10.14.5 Which VSCode version: 1.37.0 Which extension version: 1.3.0 Which adapter type: native and bundled Which LLDB version: lldb-1001.0.13.3 Swift-5.0
What is the problem and how did you get there:
In either native or bundled adapter, I get the process exited with status -1 error when attempting to debug. However, debugging works fine on classic mode as well as with the Microsoft C/C++ extension so I know the executable is fine. Here’s the debug output:
configuration: { name: '(lldb) Launch',
type: 'lldb',
request: 'launch',
program: '${command:cmake.launchTargetPath}',
env: { RUST_BACKTRACE: '1' },
args: [],
cwd: '${workspaceFolder}',
relativePathBase: '/Users/yokuyuki/Dev/client' }
library: /Users/yokuyuki/.vscode/extensions/vadimcn.vscode-lldb-1.3.0/lldb/lib/liblldb.8.0.1-custom.dylib
environment: {}
params: {}
Listening on port 65222
[2019-08-13T21:21:46Z DEBUG codelldb] New debug session
[2019-08-13T21:21:46Z DEBUG codelldb::wire_protocol] --> {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us"},"type":"request","seq":1}
[2019-08-13T21:21:46Z INFO codelldb::python] Error: Success
INFO(Python) 17:21:46 rust: Initializing, module name=rust
DEBUG(Python) 17:21:46 rust: attaching summary get_tuple_summary to "^\(.*\)$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "&str", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StrSliceSynthProvider to "str*", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "collections::string::String", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdStringSynthProvider to "alloc::string::String", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^collections::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdVectorSynthProvider to "^alloc::vec::Vec<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^&(mut\s*)?\[.*\]$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_SliceSynthProvider to "^slice<.+>.*$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdCStringSynthProvider to "std::ffi::c_str::CString", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdCStrSynthProvider to "std::ffi::c_str::CStr", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdOsStringSynthProvider to "std::ffi::os_str::OsString", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdOsStrSynthProvider to "std::ffi::os_str::OsStr", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdPathBufSynthProvider to "std::path::PathBuf", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdPathSynthProvider to "std::path::Path", is_regex=False
DEBUG(Python) 17:21:46 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Rc<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdRcSynthProvider to "^alloc::rc::Weak<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Arc<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdArcSynthProvider to "^alloc::(sync|arc)::Weak<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdMutexSynthProvider to "^std::sync::mutex::Mutex<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdCellSynthProvider to "^core::cell::Cell<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdRefCellSynthProvider to "^core::cell::RefCell<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::Ref<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching synthetic StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
DEBUG(Python) 17:21:46 rust: attaching summary _get_synth_summary_StdRefCellBorrowSynthProvider to "^core::cell::RefMut<.+>$", is_regex=True
[2019-08-13T21:21:46Z INFO codelldb::python] Error: Success
[2019-08-13T21:21:46Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"exceptionBreakpointFilters":[{"default":true,"filter":"cpp_throw","label":"C++: on throw"},{"default":false,"filter":"cpp_catch","label":"C++: on catch"}],"supportTerminateDebuggee":true,"supportsCompletionsRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsDelayedStackTraceLoading":true,"supportsEvaluateForHovers":true,"supportsFunctionBreakpoints":true,"supportsGotoTargetsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsSetVariable":true}}
[2019-08-13T21:21:46Z DEBUG codelldb::wire_protocol] --> {"command":"launch","arguments":{"name":"(lldb) Launch","type":"lldb","request":"launch","program":"/Users/yokuyuki/Dev/client/build/foo/cpp/tests/foo_test","env":{"RUST_BACKTRACE":"1"},"args":[],"cwd":"/Users/yokuyuki/Dev/client","relativePathBase":"/Users/yokuyuki/Dev/client","_adapterSettings":{"displayFormat":"auto","showDisassembly":"auto","dereferencePointers":true,"suppressMissingSourceFiles":true,"evaluationTimeout":5,"consoleMode":"commands","sourceLanguages":null},"__sessionId":"ee621557-7ba9-49f8-abb3-04e08497740e"},"type":"request","seq":2}
[2019-08-13T21:21:47Z DEBUG codelldb::wire_protocol] <-- {"type":"event","seq":1,"event":"initialized"}
[2019-08-13T21:21:47Z DEBUG codelldb::wire_protocol] --> {"command":"setBreakpoints","arguments":{"source":{"name":"provider_test.cpp","path":"/Users/yokuyuki/Dev/client/foo/cpp/tests/provider_test.cpp"},"lines":[272],"breakpoints":[{"line":272}],"sourceModified":false},"type":"request","seq":3}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"line":272,"message":"Locations: 1","source":{"name":"provider_test.cpp","path":"/Users/yokuyuki/Dev/client/foo/cpp/tests/provider_test.cpp"},"verified":true}]}}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":5}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":5,"success":true,"command":"setExceptionBreakpoints"}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"command":"configurationDone","type":"request","seq":6}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"request","seq":2,"command":"runInTerminal","arguments":{"args":["\n","/Users/yokuyuki/.vscode/extensions/vadimcn.vscode-lldb-1.3.0/adapter2/codelldb","terminal-agent","--port=65224"],"cwd":"","kind":"integrated","title":"(lldb) Launch"}}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"type":"response","seq":7,"command":"runInTerminal","request_seq":2,"success":true,"body":{"shellProcessId":86698}}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"event","seq":3,"event":"output","body":{"output":"Launching: /Users/yokuyuki/Dev/client/build/foo/cpp/tests/foo_test\n"}}
[2019-08-13T21:21:48Z ERROR codelldb::debug_session] process exited with status -1 (Error 1)
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":2,"success":false,"message":"process exited with status -1 (Error 1)","show_user":true}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":6,"success":true,"command":"configurationDone"}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"command":"threads","type":"request","seq":8}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] --> {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":8,"success":true,"command":"threads","body":{"threads":[]}}
[2019-08-13T21:21:48Z DEBUG codelldb::wire_protocol] <-- {"type":"response","request_seq":9,"success":true,"command":"disconnect"}
[2019-08-13T21:21:48Z ERROR codelldb::debug_session] Stream::poll after shutdown
[2019-08-13T21:21:48Z DEBUG codelldb] ### session_to_client stream terminated
[2019-08-13T21:21:48Z INFO codelldb] ### server resolved: Ok(())
[2019-08-13T21:21:48Z INFO codelldb] ### client_to_session stream terminated
[2019-08-13T21:21:48Z DEBUG codelldb::debug_session] ### AsyncDebugSession::drop()
[2019-08-13T21:21:48Z DEBUG codelldb] ### Exiting
Debug adapter exit code=0, signal=null.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
I got