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

           Summary: Clang produced qmake.exe crashes on exit
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


I built clang with GCC 4.6 for x86_64-w64-mingw32 (64-bit Windows) in Cmake's
"Release" mode, modified InitHeaderSearch.cpp to point at all the headers,
(applied some patches that were required to Clang and mingw-w64's float.h, see
my email on cfe-dev) and modified Qt's qmake/makefile.win32-g++ to use clang++
instead of g++, changed the optimization to "-O0 -ggdb3" and removed the "-s"
from the link line.  I used the plain win32-g++ mkspec.

The resulting qmake binary runs OK seemingly (it starts processing Qt's pro
files, and only crashes on exit), but segfaults for sure when invoked with
"qmake --version" with this short backtrace:

#0  0x00000000005fd015 in QBasicAtomicInt::deref (this=0x0)
#1  0x0000000000000000 in ?? ()

This, of course, does not happen with plain GCC compiled qmake.

The crash on exit does not seem to affect qmake's runtime operation. The
generated makefiles are fine and can be used to attempt building Qt (however,
that's another story, euh bug report)

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