[Lldb-commits] [lldb] [lldb-dap] Restore the override FD used by the output redirect on stop. (PR #129964)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 5 17:20:36 PST 2025
ashgti wrote:
Checking this with:
```
$ echo 'Content-Length: 51\r\n\r\n{"command":"disconnect","seq": 1,"type": "request"' > /tmp/partial_message
$ lldb lldb-dap
(lldb) process handle -s true SIGPIPE
(lldb) process launch -i /tmp/partial_message
```
Without the `LLDBDAP_LOG` env set is how I found the crash and the SIGPIPE write error. It was from logging here https://github.com/llvm/llvm-project/blob/12c5a46c300eedb6cafc68b987abb9c1fa913e96/lldb/tools/lldb-dap/lldb-dap.cpp#L596
https://github.com/llvm/llvm-project/pull/129964
More information about the lldb-commits
mailing list