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

clang-format crashes when formatting thousands of levels of nested blocks #55912

Closed
owenca opened this issue Jun 7, 2022 · 4 comments
Closed
Assignees
Labels
clang-format crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@owenca
Copy link
Contributor

owenca commented Jun 7, 2022

> clang-format.exe -version
clang-format version 15.0.0 (https://github.com/llvm/llvm-project cf88150c48df4e779edb91a8facf838bea3bd1b7)
> clang-format.exe clang\test\Parser\parser_overflow.c > NUL
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: clang-format.exe clang\\test\\Parser\\parser_overflow.c
@owenca owenca added clang-format crash Prefer [crash-on-valid] or [crash-on-invalid] labels Jun 7, 2022
@owenca owenca self-assigned this Jun 7, 2022
@llvmbot
Copy link
Collaborator

llvmbot commented Jun 7, 2022

@llvm/issue-subscribers-clang-format

@owenca
Copy link
Contributor Author

owenca commented Jun 7, 2022

@owenca owenca added the awaiting-review Has pending Phabricator review label Jun 7, 2022
@owenca owenca closed this as completed in b5b33fb Jun 7, 2022
@github-actions github-actions bot removed the awaiting-review Has pending Phabricator review label Jun 7, 2022
@panukulv
Copy link

panukulv commented Jun 7, 2022

> clang-format.exe -version

clang-format version 15.0.0 (https://github.com/llvm/llvm-project cf88150c48df4e779edb91a8facf838bea3bd1b7)

> clang-format.exe clang\test\Parser\parser_overflow.c > NUL

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.

Stack dump:

0.      Program arguments: clang-format.exe clang\\test\\Parser\\parser_overflow.c

@panukulv
Copy link

panukulv commented Jun 7, 2022

Close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang-format crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

3 participants