Qt 4.8.4 on MAC with openssl 0.9.8 Crash
-
We have an application that uses SSL to connect to a PostgreSQL (8.4) database server, when SSL is enabled on the server the MAC client specifically is unable to connect. This issue began after upgrading to Qt 4.8.4 from Qt 4.6.3 and the client seems to work perfectly without SSL enabled on the server but I'd like to get to the bottom of the situation.
Qt Config: ./configure -nomake demos -nomake examples -qt-zlib -qt-libtiff -qt-libmng -qt-libjpeg -qt-libpng -openssl -I /Library/postgresql/include -L /Library/postgresql/lib -prefix /Library/qt -plugin-sql-psql -plugin-sql-odbc -plugin-sql-sqlite -arch x86 -prefix-install -confirm-license -opensource
Crash Log:
http://pastebin.com/5eZwVqikError Context in terminal:
http://pastebin.com/j6zkSWkBMost of the time the application will crash immediately upon starting up, leaving very little room for debugging. Does anyone have any suggestions or known-issues with SSL and Qt 4.8?
Thank you,
Greg -
Hi,
The error might somewhere else. From your "Error Context" your compiling with one version of Qt while executing with another one (and it seems framework vs pure library)
Did you installed correctly your Qt 4.8.4 ? and why -prefix install is empty ?
-
The error might somewhere else. From your “Error Context” your compiling with one version of Qt while executing with another one (and it seems framework vs pure library)
I'm not sure I follow this. Framework vs pure library?
Did you installed correctly your Qt 4.8.4 ? and why -prefix install is empty ?
I believe so, I am able to compile and run my application. prefix-install I assumed was a required configure option
-
Wait... You application crashes when not started from QtCreator ?
Did you run macdeployqt ?
-
What does otool -L return ?
-
@@Gregorys-MacBook-Pro:bin Greg$ otool -L xtuple.app/Contents/MacOS/xtuple
xtuple.app/Contents/MacOS/xtuple:
@executable_path/../Frameworks/QtDesignerComponents.framework/Versions/4/QtDesignerComponents (compatibility version 4.8.0, current version 4.8.4)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
@executable_path/../Frameworks/QtHelp.framework/Versions/4/QtHelp (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtSql.framework/Versions/4/QtSql (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtWebKit.framework/Versions/4/QtWebKit (compatibility version 4.9.0, current version 4.9.3)
@executable_path/../Frameworks/QtScript.framework/Versions/4/QtScript (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtScriptTools.framework/Versions/4/QtScriptTools (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml (compatibility version 4.8.0, current version 4.8.4)
@executable_path/../Frameworks/QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.8.0, current version 4.8.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1094.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)@@ -
Check also that your dependencies are correctly linked to the libs in your bundle
-
Have a look at everything that doesn't start with @executable_path. Also, do you use some external lib like Qwt or Qxt ?
-
I apologize for the late response (almost a month now) but I took a look at each of the libraries that didn't start with @executable_path and didn't find any inconsistencies besides this:
<code>
otool -L /usr/lib/libSystem.B.dylib
/usr/lib/libSystem.B.dylib:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, version 125.1.11)
/usr/lib/system/libmathCommon.A.dylib (compatibility version 1.0.0 current version 315.0.0)
</code>libmathCommon.A.dylib is not currently included in our .app bundle. We do not currently use Qwt or Qxt.
Regards,
Greg -
Sorry for the late reply, I reread the error message and it seams to look at Frameworks and libraries outside frameworks.
You might want to check with otool the libs in the frameworks inside your bundle
-
It seems we were running into this bug running qt 4.8.4 and mac osx 10.6: