<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - [64-bit ms] clang-cl produced binary crashes with StackWalk64"
   href="https://llvm.org/bugs/show_bug.cgi?id=24543">24543</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[64-bit ms] clang-cl produced binary crashes with StackWalk64
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The attached program sets up a crash handler that calls StackWalk64 to print
stacks on crash, and the calls __debugbreak(). This crashes once (for the
__debugbreak) when the program is built with cl but twice if it's built with
clang-cl. Only happens in 64-bit and only with optimizations enabled.

I think this is the cause of
<a href="https://code.google.com/p/chromium/issues/detail?id=520982">https://code.google.com/p/chromium/issues/detail?id=520982</a>

C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
test.cc dbghelp.lib /Zi /O2 /Zc:inline /Oy- /D_HAS_EXCEPTIONS=0 -m64

C:\src\chrome\src>cl test.cc  dbghelp.lib /Zi /O2 /Zc:inline /Oy- 
/D_HAS_EXCEPTIONS=0</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>