vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Condtional breakpoint problem #1059

Open hoyori opened 5 months ago

hoyori commented 5 months ago

OS: wsl2 VSCode version: 1.85.1 CodeLLDB version: 1.10.0 Compiler: rustc 1.77.0-nightly (x86_64-unknown-linux-gnu) Debuggee: qemu 8.2.0 (windows 10)

When hit the conditional breakpoint, crash debug adapter

Verbose log
[DEBUG codelldb::dap_codec] --> {"command":"continue","arguments":{"threadId":1},"type":"request","seq":22}
[DEBUG codelldb::debug_session] Debug event: 0x562c0b4cad60 Event: broadcaster = 0x562c0b479548 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x562c0b479510 (pid = 1), state = running}
[DEBUG codelldb::dap_codec] <-- {"seq":41,"type":"response","request_seq":22,"success":true,"command":"continue","body":{"allThreadsContinued":true}}
[DEBUG codelldb::dap_codec] <-- {"seq":42,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":1}}
[DEBUG codelldb::debug_session] Debug event: 0x7f7b7c010b40 Event: broadcaster = 0x562c0b479548 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x562c0b479510 (pid = 1), state = stopped}
[DEBUG codelldb::debug_session] Debug event: 0x7f7b7c016680 Event: broadcaster = 0x562c0b479548 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x562c0b479510 (pid = 1), state = running}
[DEBUG codelldb::dap_codec] <-- {"seq":43,"type":"event","event":"continued","body":{"allThreadsContinued":true,"threadId":1}}
Received signal: SIGSEGV
   0: codelldb::hook_crashes::handler
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: _ZN4lldb10SBListener12WaitForEventEjRNS_7SBEventE
  11: __cpp_closure_1725553361688648134
  12: lldb::sb::sblistener::SBListener::wait_for_event
  13:  as core::future::future::Future>::poll
  14: tokio::runtime::task::core::Core::poll
  15: tokio::runtime::task::harness::Harness::poll
  16: tokio::runtime::blocking::pool::Inner::run
  17: std::sys_common::backtrace::__rust_begin_short_backtrace
  18: core::ops::function::FnOnce::call_once{{vtable.shim}}
  19: std::sys::unix::thread::Thread::new::thread_start
  20: start_thread
             at ./nptl/pthread_create.c:442:8
  21: clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Debug adapter exit code=255 (0xff), signal=null.