I installed valgrind as per the wiki but a simple Qt gui app segfaults when run under valgrind.
A Qt console program runs ok under valgrind.
This is the error:
And this is the app:
I'm using the qt5 packages (i.e. Qt 5.3.2), on 10.1-RELEASE-p6.
Has anyone successfully run valgrind on a qt gui app ?
A Qt console program runs ok under valgrind.
This is the error:
Code:
-16197-- WARNING: unhandled syscall: 542
--16197-- You may be able to write your own handler.
--16197-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--16197-- Nevertheless we consider this a bug. Please report
--16197-- it at http://valgrind.org/support/bug_reports.html.
==16197==
==16197== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==16197== General Protection Fault
==16197== at 0x6F44F8C: ??? (in /lib/libthr.so.3)
==16197== by 0x38059417: ??? (m_trampoline.S:862)
==16197== by 0xD97AEE1: ??? (in /usr/local/lib/libxcb.so.1.1.0)
==16197== by 0xD97C48C: xcb_wait_for_event (in /usr/local/lib/libxcb.so.1.1.0)
==16197== by 0xEC318F5: ??? (in /usr/local/lib/qt5/plugins/platforms/libqxcb.so)
==16197== by 0x5CF18E5: ??? (in /usr/local/lib/libQt5Core.so.5.3.2)
==16197== by 0x6F404F4: ??? (in /lib/libthr.so.3)
==16197==
Code:
#include <QApplication>
#include <QMainWindow>
#include <QLabel>
int main(int argc, char** argv) {
QApplication app (argc, argv);
QMainWindow w;
w.setCentralWidget(new QLabel("Hello world"));
w.show();
return app.exec();
}
I'm using the qt5 packages (i.e. Qt 5.3.2), on 10.1-RELEASE-p6.
Has anyone successfully run valgrind on a qt gui app ?