vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Clang-tidy crash logging gets truncated on Linux/Mac

Open sean-mcmanus opened this issue 2 years ago • 1 comments

Discussed in https://github.com/microsoft/vscode-cpptools/discussions/9705

Originally posted by MathiasDeRoover August 9, 2022 Clang-tidy is consistently crashing when I add the -m32 compiler flag to my configuration. The message in the logs is truncated making it difficult to debug what is happening:

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
  Stack dump:
  0.	Program arguments: /home/mdo/.vscode/extensions/ms-vscode.cpptools-1.12.0-linux-x64/bin/../LLVM/bin/clang-tidy --checks=*,-modernize-use-trailing-return-type,-cppcoreguidelines-avoid-non-const-global-variables,-llvm-*,-llvmlibc-*,-bugprone-reserved-identifier,-cert-dcl37-c,-cert-dcl51-cpp,-hicpp-signed-bitwise,-misc-unused-parameters,-altera-*,-google-readability-todo,-android-*,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-type-vararg,-hicpp-vararg --header-filter=/home/mdo/develop/nhc-embedded --export-fixes=/tmp/loose/cpptools/11132614347462837328/fixes140073689401088.yaml --quiet /home/mdo/develop/nhc-embedded/applications/dalpluginnhc/test/diagnostics_test.cc -- -std=c++20 -xc++ -Wno-pragma-pack -DPROJECT_NAME -D__SSP_STRONG__=3 -D__DBL_MIN_EXP__=(-1021) -D__FLT32X_MAX_…

Could somebody point me in the right direction or tell me how to get the full message? Thank you in advance! PS: my config file for completion sake:

{
    "configurations": [
        {
            "name": "LinuxC",
            "includePath": [
                "${workspaceFolder}/**",
                ...
            ],
            "defines": [
                "PROJECT_NAME"
            ],
            "cStandard": "c99",
            "cppStandard": "c++20",
            "browse": {
                "path": [
                    "${workspaceFolder}"
                ]
            },
            "compilerArgs": [
                "-m32"
            ],
            "compilerPath": "/usr/bin/gcc"
        }
    ],
    "version": 4
}
```</div>

sean-mcmanus avatar Aug 09 '22 17:08 sean-mcmanus

Feel free to let me know if you require any more logs

MathiasDeRoover avatar Aug 09 '22 18:08 MathiasDeRoover