Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpptools generate coredump sometimes #7161

Closed
Modnars opened this issue Mar 12, 2021 · 9 comments
Closed

cpptools generate coredump sometimes #7161

Modnars opened this issue Mar 12, 2021 · 9 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability
Milestone

Comments

@Modnars
Copy link

Modnars commented Mar 12, 2021

使用vs-code插件时,偶尔会出现coredump文件,我的使用方式是Remote-SSH连接远程开发机。
对于何时会出现coredump,暂未发现明显的规律,使用gdb调试core可以观察到下面的信息:
image
原谅我对gdb使用不太熟悉,只能从中看到这个coredump是cpptool是抛出来的。

@sean-mcmanus
Copy link
Collaborator

Can you provide the call stack from the core dump? Such as via something like gdb ~/.vscode-server/extension/ms-vscode.cpptools-1.2.2/bin/cpptools-srv core.4751 ? Our binary should have symbols.

@sean-mcmanus sean-mcmanus added the more info needed The issue report is not actionable in its current state label Mar 12, 2021
@sean-mcmanus sean-mcmanus self-assigned this Mar 12, 2021
@Modnars
Copy link
Author

Modnars commented Mar 12, 2021

抱歉,这个是偶尔会出现的问题。但最近一段时间出现得很频繁,以至于我需要将它们remove掉才能让我的工作目录更加整洁。所以很抱歉,最近一次的coredump文件已经被我remove掉了,再出现的话我会立即反馈相关gdb调试信息的。

@Modnars
Copy link
Author

Modnars commented Mar 12, 2021

它又一次出现了!按照你说的binary位置,我启动gdb调试了一下,信息如下:
image
似乎,我还需要再安装其他的一些工具?
查看堆栈信息如下:
image

@sean-mcmanus
Copy link
Collaborator

Yes, that is one crash we are aware of (i.e. one of our highest hitting crashes), but we believe it happens during shutdown without much user impact so have not given it a high priority to fix. Are you able to provide any more repro info as to when that occurs? Does it just randomly happen? Do you know what actions causes it? After closing a file or after closing VS Code?

@Modnars
Copy link
Author

Modnars commented Mar 15, 2021

我在开发过程中都是一直打开着远程SSH连接的,所以如果说coredump发生可能是由于关闭文件或VS Code导致的,那我觉得更可能是关闭文件造成的。此外,最近发现cpptools-srv的CPU占有率常常突然很高,希望这个问题也能引起你们的重视,谢谢!

@sean-mcmanus sean-mcmanus removed the more info needed The issue report is not actionable in its current state label Mar 15, 2021
@sean-mcmanus sean-mcmanus added this to the 1.3.0 milestone Mar 15, 2021
@sean-mcmanus sean-mcmanus removed their assignment Mar 15, 2021
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Mar 15, 2021

The CPU issue is different. We might need some perf logs (https://github.com/microsoft/vscode-cpptools/wiki/Troubleshooting-Performance-Issues) or a call stack (https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv) to identify what is going on (setting C_Cpp.loggingLevel to "Debug" may also show what is using CPU).

UPDATE: Fix is not in 1.3.0-insiders, but should be for 1.3.0-insiders2.

@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Mar 19, 2021
@Modnars
Copy link
Author

Modnars commented Apr 13, 2021

你好,今天我又尝试用gdb查看了core文件的堆栈信息,希望这些内容能够对你们起到帮助。
image

@sean-mcmanus
Copy link
Collaborator

@Modnars That is a different crash. I've opened #7354 to track that.

@michelleangela
Copy link
Contributor

Fix is released in the 1.3.0 release version https://github.com/microsoft/vscode-cpptools/releases/tag/1.3.0

@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability
Projects
None yet
Development

No branches or pull requests

3 participants