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

    <tr>
        <th>Summary</th>
        <td>
            clangd - Crash updating the AST
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Clang 19 from the repository at https://apt.llvm.org
```
$ clang --version
Ubuntu clang version 19.1.0 (++20240903024228+0c641568515a-1~exp1~20240903144250.30)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin
```

Crash within clangd analyzing code:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
 #0 0x000075eb0e08abdf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-19/bin/../lib/libLLVM.so.19.1+0xec6bdf)
 #1 0x000075eb0e0888e9 llvm::sys::RunSignalHandlers() (/usr/lib/llvm-19/bin/../lib/libLLVM.so.19.1+0xec48e9)
 #2 0x000075eb0e08b330 (/usr/lib/llvm-19/bin/../lib/libLLVM.so.19.1+0xec7330)
 #3 0x000075eb0c321320 (/lib/x86_64-linux-gnu/libc.so.6+0x45320)
 #4 0x000075eb0e022598 llvm::StringMapImpl::LookupBucketFor(llvm::StringRef, unsigned int) (/usr/lib/llvm-19/bin/../lib/libLLVM.so.19.1+0xe5e598)
 #5 0x000062213975bf26 (/usr/bin/clangd+0x66cf26)
 #6 0x000062213975a408 (/usr/bin/clangd+0x66b408)
 #7 0x0000622139d7ac5f (/usr/bin/clangd+0xc8bc5f)
 #8 0x00006221394db096 (/usr/bin/clangd+0x3ec096)
 #9 0x000062213957d989 (/usr/bin/clangd+0x48e989)
#10 0x0000622139580d7d (/usr/bin/clangd+0x491d7d)
#11 0x0000622139579b90 (/usr/bin/clangd+0x48ab90)
#12 0x00006221395796eb (/usr/bin/clangd+0x48a6eb)
#13 0x00006221396e2841 (/usr/bin/clangd+0x5f3841)
#14 0x000075eb0c378a94 (/lib/x86_64-linux-gnu/libc.so.6+0x9ca94)
#15 0x000075eb0c405c3c (/lib/x86_64-linux-gnu/libc.so.6+0x129c3c)
Signalled during AST worker action: Update
```

Please let me know what else I should provide
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslk1v2zgQhn8NfSEs8EOUxIMOTltjC6RA0aR7LfgxkrmhJIOkYmcP_e0LSW4TGUWCLgoYgq2hn3lJvsOhitG1PUCNxA0S7zdqTIch1LqFrnPeb_Rgn-p3XvUtphI3YehwOgAOcByiS0N4wirhQ0rHiPgOsT1ie3VMmfePXTaEFpH3iOxQQS6f5SfLsZmR2-0jhOiGfgl81WOfxkvsEsFUZjQjGLEKsRvEbhhhOZGEE5az-R0xRU5FUQkq1JZ-h_ORfv8xiOY5EyTjBDG55LhXoYWE-A6fq-JbkW-PZutdP563bT9ehhwCKIu7wYKfBk5TPS-hj31Mynuw712YQojtxxgQ23unp6d_7LZUIrbXrv_13Ofnu6DiAZ9cOrh-ma7Fqlf-6V_Xt9gMFqbV_NX_P99-2N19wHHUnUtYYT2282aEhNNwtRGtS4dRZ2boLtJ-KDyG4R8wCbG9i3GEiNgeq95i1xs_Wph32MwStTIPKSgD2ZIeI8YJJmdCCCkFaAKkUto2eMbzHeK7-BSXL5-D69NdUubhfiIgVj0PCur0bYgpgOoQKxB7h12fEJPLNr-ypmyfZc8hp29v__6UxSGbXDJ54Qym0Lb5ud2TYHoluKpA_krwl7G_c22v_F-qtx5CnMX8EU15BXKliV1p0pyTP5Go5C-8PiXiLxMZzihnPxItnEsZPNfAHDATt5ihueBszczX4hkTsnqxoHcpuL79pI4fu6NfXt0Ow8N4vBnNA6T9EFZeWIZ_gWaywdjP55H9c34QIGS1ki8u8gvGKJel0A0rVokW8FKXM6QoTDPZ9AWkuIKonFRvQX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