Skip to content

cpptools-srv too many zombie processes causing laptop to crash #12694

Closed
@jacob-02

Description

@jacob-02

Environment

  • OS and version: Ubuntu 22.04
  • VS Code: 1.93.0
  • C/C++ extension: v1.22.2 (pre-release)
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version: GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1

Bug Summary and Steps to Reproduce

Bug Summary:
On performing any form of action like replacing all the words with another word using vscode multiple cpptools-srv processes are created with use close to 0.5 GB of RAM each causing the laptop to crash. The CPU utilisation also goes up.

Steps to reproduce:

  1. Open any cpp project
  2. With default config
  3. Search and replace a word that is there across all files
  4. Check the system monitor to see multiple processes

Debugger Configurations

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "cppbuild",
			"label": "C/C++: clang-14 build active file",
			"command": "/usr/bin/clang-14",
			"args": [
				"-fcolor-diagnostics",
				"-fansi-escape-codes",
				"-g",
				"${file}",
				"-o",
				"${fileDirname}/${fileBasenameNoExtension}"
			],
			"options": {
				"cwd": "${fileDirname}"
			},
			"problemMatcher": [
				"$gcc"
			],
			"group": "build",
			"detail": "compiler: /usr/bin/clang-14"
		}
	]
}

Debugger Logs

NIL

Other Extensions

No response

Additional Information

Screenshot from 2024-09-09 14-58-42

Before

Screenshot from 2024-09-09 14-59-02

After

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions