[llvm-bugs] [Bug 24543] New: [64-bit ms] clang-cl produced binary crashes with StackWalk64

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 21 15:07:48 PDT 2015


            Bug ID: 24543
           Summary: [64-bit ms] clang-cl produced binary crashes with
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

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

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- 

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150821/c6e0e670/attachment.html>

More information about the llvm-bugs mailing list