<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 - Segmentation fault in frontend while parsing spdlog"
   href="https://bugs.llvm.org/show_bug.cgi?id=51456">51456</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segmentation fault in frontend while parsing spdlog
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>mail@timur.audio
          </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=25126" name="attach_25126" title="Zip file containing preprocessed source, associated run script, and crash backtrace">attachment 25126</a> <a href="attachment.cgi?id=25126&action=edit" title="Zip file containing preprocessed source, associated run script, and crash backtrace">[details]</a></span>
Zip file containing preprocessed source, associated run script, and crash
backtrace

Ran into this frontend crash when compiling the spdlog library on the current
version of Apple Clang. The only workaround I have found so far is to downgrade
from Xcode 12.5.1 to Xcode 12.4 (which comes with an earlier version of clang).

Building CXX object spdlog/spdlog/CMakeFiles/spdlog.dir/src/file_sinks.cpp.o
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Zip file containing preprocessed source, associated run script, and crash
backtrace attached.</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>