Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.9.0, 5.10.1
-
None
-
macOS 10.12.6
Newly installed vanilla Qt 5.1.0, installed from offline installer.
Using Qt version 5.10.1 in /usr/local/Qt5.10.1/5.10.1/clang_64/lib.
Description
The following code segfaults at exit.
#include <QGuiApplication> #include <QIcon> static QIcon foo; int main(int argc, char* argv[]) { QGuiApplication app(argc, argv); foo = QIcon(QString("bug.svg")); return 0; }
usually with a stack trace that looks like this
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld 0x000000010c9f083e dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 43
1 libdyld.dylib 0x00007fff9d1a4282 dyld_stub_binder + 282
2 ??? 0x00000001129eb030 0 + 4607356976
3 org.qt-project.QtGui 0x000000010cb223a3 QIcon::~QIcon() + 51
4 libsystem_c.dylib 0x00007fff9d23d178 __cxa_finalize_ranges + 332
5 libsystem_c.dylib 0x00007fff9d23d4b2 exit + 55
6 libdyld.dylib 0x00007fff9d1a823c start + 8
The symptoms seem identical to .QTBUG-50829
If the test code is modified to use a png file then it exits cleanly with no crash, so I suspect it's a similar cause.
(With the svg file It will sometimes, instead, print "Pure virtual function called!Segmentation fault: 11" with nothing useful in the stack trace.)