[Interest] Qt 5.5 on raspberry pi.... -platform xcb segfaults

Agocs Laszlo laszlo.agocs at theqtcompany.com
Mon Mar 30 10:05:02 CEST 2015


Fixed by https://codereview.qt-project.org/#/c/109456/

There is no OpenGL support under X11 on the Pi with the Broadcom drivers, and the xcb plugin lacked some null checks for this case.

Cheers,
Laszlo


________________________________________
From: interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org <interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org> on behalf of Guido Seifert <wargand at gmx.de>
Sent: Monday, March 30, 2015 9:27 AM
To: interest at qt-project.org
Subject: [Interest] Qt 5.5 on raspberry pi.... -platform xcb segfaults

Hiya,
any raspi experts here?
I compiled Qt 5.5 for Raspberry Pi. The results are acceptable. Eglfs, the framebuffers, and wayland work. That's all I need.
However, something bothers me a bit. When I start a program with -platform xcb I immediately get a segfault, Here the core:

> Core was generated by `./analogclock'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0xb44f5098 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/local/qt5pi/lib/libQt5XcbQpa.so.5
> (gdb)
> (gdb) bt
> #0  0xb44f5098 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/local/qt5pi/lib/libQt5XcbQpa.so.5
> #1  0xb44f59f0 in QXcbConnection::processXcbEvents() () from /usr/local/qt5pi/lib/libQt5XcbQpa.so.5
> #2  0xb689f06c in QObject::event(QEvent*) () from /usr/local/qt5pi/lib/libQt5Core.so.5
> #3  0xb6872ebc in QCoreApplication::notify(QObject*, QEvent*) () from /usr/local/qt5pi/lib/libQt5Core.so.5
> #4  0xb6872fe8 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/local/qt5pi/lib/libQt5Core.so.5
> #5  0xb6875b7c in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/local/qt5pi/lib/libQt5Core.so.5
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Maybe someone can do something with the backtrace, I can't. I know that xcb has problems with the Raspberry Pi egl implementation.

https://bugreports.qt.io/browse/QTBUG-36551

What I don't know, if the crash is in any way related to this problem. But whatever the problem is, a segfault is evil.
Of course, always possible, that it is my configuration. Therefore the question: Did anyone here compile Qt 5.5 for the RPi already?

Guido
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list