[LLVMbugs] [Bug 22365] New: [ms] longjmp doesn't work with /MD (or /MDd) in 64-bit binaries

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 27 19:07:29 PST 2015


            Bug ID: 22365
           Summary: [ms] longjmp doesn't work with /MD (or /MDd) in 64-bit
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

D:\src\llvm-ninja-rel64>type jmp_set.cc
#include <setjmp.h>

int main() {
  jmp_buf buf;
  if (setjmp(buf))
      return 4;

  longjmp(buf, 1);

D:\src\llvm-ninja-rel64>bin\clang-cl -m64 jmp_set.cc /MD

>	ntdll.dll!string "Enabling heap debug options\n"()	Unknown
     kernel32.dll!RtlUnwindExStub()    Unknown
     msvcr120.dll!longjmp()    Unknown
     jmp_set.exe!000000013f1f104c()    Unknown
     jmp_set.exe!000000013f1f129b()    Unknown
     [External Code]    

Works fine either without /MD or in -m32 mode.

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/20150128/13131ea2/attachment.html>

More information about the llvm-bugs mailing list