microsoft / microsoft/vscode-cpptools
Failed to find thread 1 for break event
Open
Nobody has claimed this yet.
debugger
more info needed
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Environment
- Windows 7:
- VS Code - latest:
- C/C++ extension - latest 1.10.7:
- QNX6:
- GDB / LLDB version: GNU gdb 6.8 (rev. 506)
Bug Summary and Steps to Reproduce
Bug Summary:
Trying to debug application from win7 to virtual box machine with QNX6.
Got error
ERROR: Error while trying to enter break state. Debugging will now stop. Failed to find thread 1 for break event
Debugger Configurations
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "/home/Projects/PhWidgets/tests/bin/microGUI:microGUI",
"stopAtEntry": true,
"cwd": "/home/Projects/PhWidgets/",
"pipeTransport": {
"pipeCwd": "C:\\Program Files\\PuTTY",
"pipeProgram": "C:\\Program Files\\PuTTY\\plink",
"pipeArgs": [
"user@10.0.0.100"
],
"debuggerPath": "/usr/qnx650/host/qnx6/x86/usr/bin/gdb",
},
"sourceFileMap": {
// "remote": "local"
"/home/Projects/PhWidgets/": "X:\\home\\Projects\\PhWidgets\\"
},
"logging": {
"trace": true,
"traceResponse": true
},
"MIMode": "gdb",
"targetArchitecture": "x86",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
Debugger Logs
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.1.20608.1","VS.Diagnostics.Debugger.HostVersion":"17.1.20608.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":811,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"6.0.522.21309"}},"seq":2}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":4}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":6}
<-- C (setFunctionBreakpoints-3): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
--> R (setFunctionBreakpoints-3): {"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":9}
<-- C (setDataBreakpoints-4): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setDataBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":12}
<-- C (setInstructionBreakpoints-5): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
--> R (setInstructionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":15}
<-- C (setExceptionBreakpoints-6): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":6}
--> R (setExceptionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setExceptionBreakpoints","body":{},"seq":18}
<-- C (configurationDone-7): {"command":"configurationDone","type":"request","seq":7}
--> R (configurationDone-7): {"type":"response","request_seq":7,"success":true,"command":"configurationDone","body":{},"seq":21}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"GNU gdb 6.8 qnx-nto (rev. 506)\nCopyright (C) 2008 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"i486-pc-nto-qnx6.5.0\".\n"},"seq":23}
GNU gdb 6.8 qnx-nto (rev. 506)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-pc-nto-qnx6.5.0".
<-- C (threads-8): {"command":"threads","type":"request","seq":8}
--> R (threads-8): {"type":"response","request_seq":8,"success":true,"command":"threads","body":{"threads":[]},"seq":26}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New pid 8519724 tid 1]\n"},"seq":28}
[New pid 8519724 tid 1]
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: Error while trying to enter break state. Debugging will now stop. Failed to find thread 1 for break event\r\n"},"seq":30}
ERROR: Error while trying to enter break state. Debugging will now stop. Failed to find thread 1 for break event
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program '/home/Projects/PhWidgets/tests/bin/microGUI:microGUI' has exited with code 42 (0x0000002a).\r\n\r\n"},"seq":32}
The program '/home/Projects/PhWidgets/tests/bin/microGUI:microGUI' has exited with code 42 (0x0000002a).
--> E (exited): {"type":"event","event":"exited","body":{"exitCode":42},"seq":34}
--> E (terminated): {"type":"event","event":"terminated","body":{},"seq":36}
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.1.20608.1","VS.Diagnostics.Debugger.HostVersion":"17.1.20608.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":38}
<-- C (disconnect-9): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":9}
--> R (disconnect-9): {"type":"response","request_seq":9,"success":true,"command":"disconnect","body":{},"seq":41}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the QNX6 remote launch with the shown pipeTransport configuration, then inspect the GDB/MI log around the empty threads response and the subsequent tid 1 event. Done means determining why the break event cannot find thread 1 and verifying the debugger no longer stops at that point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100