C Valgrind and Qt gui

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:
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==
And this is the app:
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 ?
 
Your example runs here under the version of Valgrind that is installed by the devel/valgrind port.

Any reason you installed Valgrind manually? The Wiki page wasn't updated since 2013 and the port uses commit 963c4a777573 (which is from January 2015) from the Bitbucket repo linked on the Wiki page, so I do not think there is much benefit from installing Valgrind manually vs installing from ports.
 
Your example runs here under the version of Valgrind that is installed by the devel/valgrind port.

Any reason you installed Valgrind manually? .

I originally installed from devel/valgrind and hit the problem above. I've just reinstalled from ports and still get the problem.

Your helpful response tells me that it must be something about my setup, so it's time to start digging.

Thanks
 
Back
Top