<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/83852>83852</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `clang-tidy --dump-config` SEGFAULT
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ronwellman
      </td>
    </tr>
</table>

<pre>
    As far as I know, `clang-tidy` is functional since I can still use it to check files. However, I got a _SEGFAULT_ recently when trying to generate a new `clang-tidy` config.

$ clang-tidy --version
Ubuntu LLVM version 14.0.0
  
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: skylake

$ uname -a
Linux XXX 6.6.10-76060610-generic #202401051437~1704728131~22.04~24d69e2 SMP PREEMPT_DYNAMIC Mon J x86_64 x86_64 x86_64 GNU/Linux

$ clang-tidy --dump-config --format-style=llvm
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: clang-tidy --dump-config --format-style=llvm
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/lib/x86_64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x31)[0x75d40403fd01]
/lib/x86_64-linux-gnu/libLLVM-14.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0xee)[0x75d40403da3e]
/lib/x86_64-linux-gnu/libLLVM-14.so.1(+0xe40236)[0x75d404040236]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x75d402a42520]
clang-tidy(_ZN5clang4tidy16ClangTidyContext4diagEN4llvm9StringRefES3_NS_13DiagnosticIDs5LevelE+0x39)[0xbc2e69]
clang-tidy(_ZN5clang4tidy16ClangTidyContext17configurationDiagEN4llvm9StringRefENS_13DiagnosticIDs5LevelE+0x26)[0xbc31d6]
clang-tidy(_ZNK5clang4tidy14ClangTidyCheck11OptionsView24diagnoseBadIntegerOptionERKN4llvm5TwineENS3_9StringRefE+0x5e)[0xbc1ade]
clang-tidy[0x6a4b63]
clang-tidy(_ZN5clang4tidy4misc33ThrowByValueCatchByReferenceCheckC1EN4llvm9StringRefEPNS0_16ClangTidyContextE+0x86)[0x821026]
clang-tidy[0x7748c4]
clang-tidy(_ZN5clang4tidy23ClangTidyCheckFactories12createChecksEPNS0_16ClangTidyContextE+0xcf)[0xbc20cf]
clang-tidy(_ZN5clang4tidy15getCheckOptionsERKNS0_16ClangTidyOptionsEb+0x10c)[0xbb2a9c]
clang-tidy(_ZN5clang4tidy13clangTidyMainEiPPKc+0x1c2e)[0x5aff3e]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x75d402a29d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x75d402a29e40]
clang-tidy(_start+0x25)[0x5ac1c5]
Segmentation fault (core dumped)


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVs9z4rgS_mvMpQtKkmWDDxxIgJ28SbJUSKZm9-KS5bbRi5FSkgxhD_O3v5IdQn7MTOVlL3Holr7--uuWWsI5VWvEaZScRcl8IFq_MXZqjd5j02yFHhSmPExnDiphQTi4gHtt9hE7hyglshG6HnpVHqKUgHJQtVp6ZbRowCktES5ACg3Oq6aB1iEoD96A3KC8h0o16EbwxexxhzZAXkBtPAjI14s_lrO7y9scLErUvjnAfoMavD0oXQeIGjVa4REEaNy_JyONrlQ9isg8IrOnv4zDaREMhzu0Thnde--KVvsWLi-_XcGTAygfkRHp_QDH758PXm3VP1hC0aqmHB3tc6xE23jwwtboo3gGj5M0T_nwQQ4bpdvHYa3b4-Ivxnk4X92FZe7-0Ih7fMu11WKLMBS95TIgwPfv3yEdpSNKhuOUpCSlZNhJoSRELGaEcUJJQnk8_kHHhI_ZhMb0B2Mjwn8wXqYZMlhfr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