[LLVMbugs] [Bug 15084] New: TryAcquireSRWLockExclusive crashes under Windows 7
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 27 11:57:55 PST 2013
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: unassignedclangbugs at nondot.org
ReportedBy: pavel_vozenilek at yahoo.co.uk
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list