http://llvm.org/bugs/show_bug.cgi?id=15084

             Bug #: 15084
           Summary: TryAcquireSRWLockExclusive crashes under Windows 7
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9930
  --> http://llvm.org/bugs/attachment.cgi?id=9930
tiny app which causes crash on Win7

Tiny C program compiles but crashes. It uses Win32 function
TryAcquireSRWLockExclusive (available since Windows 7). While the function call
itself succeeds it somehow trashes the stack causing problems later. Other
SRWLock functions (Initialize/Acquire/Release) work OK.

The code is compiled as:
  c:\clang\bin\clang.exe -o a.exe -O0 a.c


The same code works with VC++ 2012 (both 32 and 64 bits) and Mingw (32 bit). 


Environment:
* Windows 7, 64 bit, AMD processor
* clang 3.2 together with MINGW libraries and headers

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to