Skip to content

The language server crashes in v1.21.x on macOS Big Sur or older #12511

@coshz

Description

@coshz

Environment

  • OS and Version: macOS 10.15.7
  • VS Code Version: 1.91.1
  • C/C++ Extension Version: v1.21.2, v1.21.3

Bug Summary and Steps to Reproduce

Bug Summary: The language server crashes.
Steps to reproduce: Install v1.21.2 or v1.21.3 and then open a c++ source file.
Expected behavior: No crash.

Configuration and Logs

  1. configurations in c_cpp_properties.json: default;
  2. logs from running c/c++: log Diagnostics: no response;
  3. logs from the language server logging:
[Error - 6:25:10 PM] Server process exited with signal SIGSEGV.
[Error - 6:25:10 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:25:10 PM] The language server crashed. Restarting...
[Error - 6:25:10 PM] cpptools client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

and

[Error - 6:25:11 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:25:11 PM] The language server crashed 5 times in the last 3 minutes. It will not be restarted.
[Error - 6:25:11 PM] cpptools client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:25:11 PM] Server process exited with signal SIGSEGV.

Metadata

Metadata

Assignees

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.reliabilityverifiedBug has been reproduced

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions