Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
4.7.2, 4.8.x, 5.0.0
-
None
-
Mac OSX 10.6
-
-
4875ecd930e47048a49eb17e4dadfa5d75e01a84
Description
Running configure in Mac(OSX 10.6) causes following internal error:
>>qmake(8096,0xa076d540) malloc: *** error for object 0xbfffcb60: pointer being freed was not allocated
It looks like that the memory was supposed to be allocated in
src/corelib/io/qfilesystemengine_unix.cpp
While calling:
ret = realpath(entry.nativeFilePath().constData(), (char*)0);
Debugger points to line, where we are calling free(ret).
On same file we have comment that :
// Mac OS X 10.5.x doesn't support the realpath(X,0) extension we use here.
And it looks like that Mac OS X 10.6 doesn't support that either.
This does not occur with older Mac OSX versions.
Other issues related to this is that documentation claims(http://doc.qt.nokia.com/4.7-snapshot/configure-options.html) that "-arch" argument of configure executable is meant only for Windows even it has been used always also in Mac so documentation must be updated to reflect real situation.
"-arch <arch>Specify an architecture.Available values for <arch>: * windows, windowsce, symbian, boundschecker, generic."
Attachments
Issue Links
- replaces
-
QTBUG-18955 double-free complaints in qmake
-
- Closed
-