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

    <tr>
        <th>Summary</th>
        <td>
            Segmentation fault (core dumped)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Experienced a seg fault when trying to format source code and clang format recommended I submit a ticket.  Can you help me with next steps?  Here is the stack trace:

Stack dump:
0.      Program arguments: clang-format -i -style=file:.clang_format ./ethernet_ip/projects/goal_eip/opener/01_simple_io/stmcubeide/port/stm32_cube_h743_eth_stand_alone_rtos/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h
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):
0 libLLVM-18.so.1    0x00007f49ab33e4f6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 54
1 libLLVM-18.so.1    0x00007f49ab33c4b0 llvm::sys::RunSignalHandlers() + 80
2  libLLVM-18.so.1    0x00007f49ab33ebbb
3  libc.so.6 0x00007f49a9e42520
4  libclang-cpp.so.18 0x00007f49b51e05ee clang::format::ContinuationIndenter::getNewLineColumn(clang::format::LineState const&) + 1022
5  libclang-cpp.so.18 0x00007f49b51df985 clang::format::ContinuationIndenter::mustBreak(clang::format::LineState const&) + 1349
6  libclang-cpp.so.18 0x00007f49b5243c70
7 libclang-cpp.so.18 0x00007f49b5242546 clang::format::UnwrappedLineFormatter::format(llvm::SmallVectorImpl<clang::format::AnnotatedLine*> const&, bool, int, bool, unsigned int, unsigned int, unsigned int) + 2070
8  libclang-cpp.so.18 0x00007f49b51f9eca
9  libclang-cpp.so.18 0x00007f49b522e696 clang::format::TokenAnalyzer::process(bool) + 1126
10 libclang-cpp.so.18 0x00007f49b520a2fd
11 libclang-cpp.so.18 0x00007f49b51f2304 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 2308
12 libclang-cpp.so.18 0x00007f49b51f3781 clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 81
13 clang-format 0x0000560a86a95f6f
14 clang-format       0x0000560a86a94a04
15 libc.so.6          0x00007f49a9e29d90
16 libc.so.6 0x00007f49a9e29e40 __libc_start_main + 128
17 clang-format 0x0000560a86a91bf5
Segmentation fault (core dumped)
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 -i -style=file:.clang_format ./ethernet_ip/projects/goal_eip/opener/01_simple_io/stmcubeide/port/stm32_cube_h723_eth_stand_alone_rtos/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h
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):
0 libLLVM-18.so.1    0x00007f9570b3e4f6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 54
1 libLLVM-18.so.1    0x00007f9570b3c4b0 llvm::sys::RunSignalHandlers() + 80
2  libLLVM-18.so.1    0x00007f9570b3ebbb
3  libc.so.6 0x00007f956f642520
4  libclang-cpp.so.18 0x00007f957a9e05ee clang::format::ContinuationIndenter::getNewLineColumn(clang::format::LineState const&) + 1022
5  libclang-cpp.so.18 0x00007f957a9df985 clang::format::ContinuationIndenter::mustBreak(clang::format::LineState const&) + 1349
6  libclang-cpp.so.18 0x00007f957aa43c70
7 libclang-cpp.so.18 0x00007f957aa42546 clang::format::UnwrappedLineFormatter::format(llvm::SmallVectorImpl<clang::format::AnnotatedLine*> const&, bool, int, bool, unsigned int, unsigned int, unsigned int) + 2070
8  libclang-cpp.so.18 0x00007f957a9f9eca
9  libclang-cpp.so.18 0x00007f957aa2e696 clang::format::TokenAnalyzer::process(bool) + 1126
10 libclang-cpp.so.18 0x00007f957aa0a2fd
11 libclang-cpp.so.18 0x00007f957a9f2304 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 2308
12 libclang-cpp.so.18 0x00007f957a9f3781 clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef, clang::format::FormattingAttemptStatus*) + 81
13 clang-format 0x000055bef8912f6f
14 clang-format       0x000055bef8911a04
15 libc.so.6          0x00007f956f629d90
16 libc.so.6 0x00007f956f629e40 __libc_start_main + 128
17 clang-format 0x000055bef890ebf5
Segmentation fault (core dumped)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsmFtv4ywaxz8NuUGNMD7EvshF2mk0lTr7Vk13pN0bC9uPHbYYLMBtM59-BTg9rCZNZrSzOyM1F00Mf3iOmJ_KjOGdBFii9Byln2ZstFull1bpAZ5mlWp2y8unATQHWUODGTbQ4ZaNwuLHLUhs9Y7LDluFW6V7ZrFRo64B16oBzGSDa8Fkt5_UUKu-B9lAg6-wGaueW8yw5fU92DnGF0zinRrxFsSAe8CP3G6xhCeLjYXBoHiN8WfQgLnBdgvYWFbfY6tZDSheIfIJkenvxs80Yz88T5A5IsWNVp1mPWa6G3uQ1qB4FXw8m3w84_jM2J0AFH9quftazb2gnARzRNdgt6Al2JIPiK4Hrf4FtTWIrjvFRAl-VA0gQSO6JlFpeD8IKLlCdG1sX48V8AbcUqVtGItp6YbL7SKJS7Db0lgmm5IJJaHUVrndv_CmEfDINLinuy3XTXnDtN0hul5rgNu7vzaIrje-BoiuuazF6O3UWo2WS5hv_zM_PslqtNjs-koJLFkPBiOagzSjhlAP9gBYiIf-LIj4N9CY-1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