Skip to content

Clang produced qmake.exe and moc.exe crash #10524

Closed
@rubenvb

Description

@rubenvb
Bugzilla Link 10152
Resolution FIXED
Resolved on Oct 16, 2013 23:51
Version trunk
OS Windows NT
Depends On #9965
CC @AaronBallman,@asl,@isanbard

Extended Description

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions