[LLVMbugs] [Bug 9830] New: Clang doesn't like ZeroMemory, causes crash in Wine

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 2 09:15:24 PDT 2011


           Summary: Clang doesn't like ZeroMemory, causes crash in Wine
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: austinenglish at gmail.com
                CC: llvmbugs at cs.uiuc.edu

See: http://bugs.winehq.org/show_bug.cgi?id=26754

likely a regression, though haven't retested with an older Clang yet. Compiling
Wine with clang from trunk (clang version 3.0 (trunk 130453)), and running
wine's builtin 'regedit' program causes a crash. The crash can be avoided by
not using ZeroMemory, or compiling the particular file with gcc instead of

Occurs with/without integrated assembler.

clang -E -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_COMCTL32_
-D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing
-Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings
-Wpointer-arith  -std=gnu89 -g -O0 -o imagelist.i imagelist.c

preprocessed .i file attached (for Clang and gcc).attached

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