<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash in clang::Sema::CreateBuiltinBinOp during clangd 11.0.0 background indexing of Firefox"
   href="https://bugs.llvm.org/show_bug.cgi?id=47641">47641</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in clang::Sema::CreateBuiltinBinOp during clangd 11.0.0 background indexing of Firefox
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mstange@themasta.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24000" name="attach_24000" title="crash stack">attachment 24000</a> <a href="attachment.cgi?id=24000&action=edit" title="crash stack">[details]</a></span>
crash stack

I don't have steps to reproduce here unfortunately.
I have a Firefox build on macOS and am using clangd with VSCode for Firefox
development. clangd keeps crashing in the background during indexing. I
attached lldb and captured the stack for one of these crashes.

I'm using clangd version 11.0.0.

Top 4 frames of the crash:

<span class="quote">> * thread #6, name = 'background-worker-5', stop reason = EXC_BAD_ACCESS (code=2, address=0x700000ec7e80)
>   * frame #0: 0x00000001102cce6e libclang-cpp.dylib`clang::Sema::CreateBuiltinBinOp(clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) + 46
>     frame #1: 0x00000001102d2509 libclang-cpp.dylib`clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) + 297
>     frame #2: 0x00000001106034a0 libclang-cpp.dylib`clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformBinaryOperator(clang::BinaryOperator*) + 144
>     frame #3: 0x000000011060ea51 libclang-cpp.dylib`clang::TreeTransform<(anonymous namespace)::TemplateInstantiator>::TransformTemplateArgument(clang::TemplateArgumentLoc const&, clang::TemplateArgumentLoc&, bool) + 177</span ></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>