[PyQt] PyQt5.9 PyPi package segfault

Phil Thompson phil at riverbankcomputing.com
Sat Jul 22 11:55:47 BST 2017


On 21 Jul 2017, at 3:09 am, Damon Lynch <damonlynch at gmail.com> wrote:
> 
> On the PyPi version of PyQt5.9, I'm seeing a segfault that occurs everytime when run in a flavor of Ubuntu (tested in 16.04, 17.04 and 17.10) and Debian 9, but never occurs when run on Fedora 25 or 26 using the exact same PyQt5 package. Moreover, the segfault does not occur when using the distro PyQt5 packages. The segfault occurs well before program exit.
> 
> I have attached the gdb stacktrace from an Ubuntu 16.04 instance.
> 
> This is the code that triggers it: http://bazaar.launchpad.net/~dlynch3/rapid/zeromq_pyqt/view/983/upgrade.py
> 
> I really do not expect anyone to run this code, but if you do, it's run like this (note the tempdir!):
> 
> python3 upgrade.py tempdir/rapid-photo-downloader-0.9.1.tar.gz
> 
> with the tar.gz from https://launchpad.net/rapid/pyqt/0.9.1/+download/rapid-photo-downloader-0.9.1.tar.gz
> 
> **NOTE should the script execute successfully the directory the tar.gz is in and everything else in that directory will be deleted, so do not run this script without using the tempdir!**
> 
> Moreover, it makes sense to run this script only when the application has already been installed. See for instructions: http://damonlynch.net/rapid/download.html
> 
> Is this a bug in the PyQt5 or Qt PyPi package? Or a bug in my code?

Impossible to tell without a short complete script that demonstrates the problem.

Phil


More information about the PyQt mailing list