Skip to content

IntelliSense process crash when parsing C variable length arrays (in scan_function_body + 4256) #1785

@sean-mcmanus

Description

@sean-mcmanus

Top hitting IntelliSense parsing crash on Mac, probably Linux too (also repros on Windows, but less frequently). Might just be able to add a null check.

With 0.21.0-insiders, the top of the crashing thread call stack looks like:

Microsoft.VSCode.CPP.IntelliSense.Msvc.darwin
0 scan_function_body + 4240
1 function_definition + 4642
2 scan_nonmember_declaration + 16702
3 declaration + 212

On Windows, process_vla_parameters is at the top of the stack due to differences in inlining.

UPDATE: We'll have a fix for December's release, but we're not 100% sure it'll solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.more info neededThe issue report is not actionable in its current stateparserreliability

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions