microsoft / microsoft/vscode-cpptools

stack walk fail: current thread changes after break

未关闭
#8,367 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

debugger embedded
主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
14 小时 46 分钟
30 天内合并 PR
61

描述

Bug type: Debugger

Describe the bug

  • OS and Version: ubuntu 18.04
  • VS Code Version: 1.61.2
  • C/C++ Extension Version: 1.7.1
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is : The current thread changes right after break causing the command stack-list-frames to fail.

To Reproduce
Embedded linux kernel debugging

1: (49668) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0xffffff80037a3390",func="kvx_eth_get_ethtool_stats",args=[{name="netdev",value="0xffffff804a0f0000"},{name="stats",value="0xffffff80495afbe8"},{name="data",value="0xffffff90400d5000"}],file="<path>",fullname="<path>",line="116",arch="kvx:kv3-1:64"},thread-id="10",stopped-threads=["10"]
116	{
1: (49668) <-1035-stack-list-frames 0 1000
1: (49668) ->1035^error,msg="Selected thread is running."
1: (49668) ->(gdb)
1: (49669) 1035: elapsed time 0
1: (49669) Stack walk failed on thread: 10
1: (49670) Send Event AD7MessageEvent
ERROR: Error while trying to enter break state. Debugging will now stop. Failed to find thread 10 for break event
1: (49671) <--gdb-exit

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

复现 issue 中描述的嵌入式 Linux 内核调试案例,重点关注断点停止事件、stack-list-frames 命令以及报告的线程切换错误。跟踪调试器对线程 10 的处理,并验证断点之后栈回溯能够成功,且不会将选中的线程报告为正在运行。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, linux, typescript, vscode
领域
devtools, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。