[PyQt] Qt 5.6: Segfault on exit with any QtWebKit application

Florian Bruhin me at the-compiler.org
Thu Mar 31 22:23:16 BST 2016


Hey,

Since updating to Qt 5.6 (with PyQt 5.5.1), I'm getting a segfault
when exiting from a trivial application using QtWebKit:

	import sys

	from PyQt5.QtCore import QUrl, QTimer
	from PyQt5.QtWidgets import QApplication
	from PyQt5.QtWebKitWidgets import QWebView

	app = QApplication(sys.argv)

	wv = QWebView()
	wv.load(QUrl('http://www.riverbankcomputing.com/'))
	wv.show()

	QTimer.singleShot(1000, app.quit)
	app.exec_()

It happens here:

	#0  0x00007ffff1deaab7 in QObject::disconnect (sender=0x7fff8813ff80, signal=signal at entry=0x0, receiver=receiver at entry=0x7fff84010e50, method=method at entry=0x0) at kernel/qobject.cpp:2949
	#1  0x00007fffdba4af78 in QObject::disconnect (member=0x0, receiver=0x7fff84010e50, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:361
	#2  QDBusConnectionPrivate::closeConnection (this=this at entry=0x7fff84010e50) at qdbusintegrator.cpp:1126
	#3  0x00007fffdba3bb36 in QDBusConnectionManager::run (this=0x7fffdbcadd00 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:191
	#4  0x00007ffff1be6de8 in QThreadPrivate::start (arg=0x7fffdbcadd00 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:340
	#5  0x00007ffff76f5424 in start_thread () from /usr/lib/libpthread.so.0
	#6  0x00007ffff7434cbd in clone () from /usr/lib/libc.so.6

(note the member=0x0)

thread apply all bt full: http://paste.the-compiler.org/view/d9af5d1c

This looks like a Qt issue, but I attempted to write the same code in
C++, and it doesn't crash. I've also tried with Otter Browser which
runs fine as well. You can find the Python and C++ code attached.

Any idea what's going wrong here?

Florian

-- 
    http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
       GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
     I'm running a crowdfunding to work on my FOSS-project full-time:
                  http://igg.me/at/qutebrowser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webkittest.tar.gz
Type: application/octet-stream
Size: 592 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160331/7f135cb8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160331/7f135cb8/attachment.sig>


More information about the PyQt mailing list