[LLVMbugs] [Bug 8561] New: LLVM miscompiles a function from Wine

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 6 20:30:14 PDT 2010


           Summary: LLVM miscompiles a function from Wine
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: cdavis at mymail.mines.edu
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5742)
 --> (http://llvm.org/bugs/attachment.cgi?id=5742)
LLVM IR of miscompiled function from Wine

Now that PR8418 is fixed (thanks, Chris!), I took a stab at building Wine with
Clang at -O2. It builds successfully, but unfortunately, the resulting Wine
segfaults on start-up. This happens before Wine installs its own signal
handlers, so the OS picks it up and produces a backtrace. The backtrace pointed
to the "reserve_area" function.

I've isolated this function and compiled it to LLVM IR. I don't know where or
why this is happening, but this is preventing Wine from being usable when
compiled at -O2.

>From looking at the source, this function is a recursive function, so that
could have something to do with it.

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