[LLVMbugs] [Bug 10679] New: Dragonegg miscompiles dlls/kernel32/tests/debugger.c from Wine

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 16 18:28:11 PDT 2011


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

           Summary: Dragonegg miscompiles dlls/kernel32/tests/debugger.c
                    from Wine
           Product: dragonegg
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: miscompilation
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: austinenglish at gmail.com
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 10639


Created an attachment (id=7080)
 --> (http://llvm.org/bugs/attachment.cgi?id=7080)
preprocessed gcc and dragonegg files

Dragonegg can compile wine successfully, aside from
http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however,
shows a few problems. This is the second one (8 potential).

To reproduce, compile wine with:
$ CC=llvm-gcc ./configure
$ make

then run the test:
$ cd dlls/kernel32/tests
$ make debugger.ok

this will fail:
austin at debian:~/wine-llvmgcc/dlls/kernel32/tests$ make debugger.ok
...
debugger.c:412: Test failed: exit code = c000001d
debugger.c:480: Tests skipped: "none" debugger test needs user interaction
wine: Unhandled illegal instruction at address 0x68776a23 (thread 0025),
starting debugger...
debugger.c:345: Test failed: wrong exit code : c000001d
wine: Unhandled illegal instruction at address 0x68776a23 (thread 0029),
starting debugger...
wine: Unhandled illegal instruction at address 0x68776a23 (thread 002d),
starting debugger...
debugger.c:345: Test failed: wrong exit code : c000001d
wine: Unhandled illegal instruction at address 0x68776a23 (thread 0031),
starting debugger...
debugger.c:345: Test failed: wrong exit code : c000001d
make: *** [debugger.ok] Error 4

compiling that file with gcc-4.5 with gcc, or using -O0 instead works around
the issue. I'll attach preprocessed source files from draognegg and gcc
(versions below). If more info is needed, please don't hesitate to ask.

austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ svn info
~/src/dragonegg/
Path: /home/austin/src/dragonegg
URL: http://llvm.org/svn/llvm-project/dragonegg/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 137784
Node Kind: directory
Schedule: normal
Last Changed Author: baldrick
Last Changed Rev: 137718
Last Changed Date: 2011-08-16 07:08:18 -0700 (Tue, 16 Aug 2011)

austin at debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ gcc-4.5 --version
gcc-4.5 (Debian 4.5.3-5) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
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