[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#940565: PySide2 segfaults with Python3. Message: "SystemError: could not initialize part 1" (shiboken)



Package: pyside2
Version: 5.11.2-3
Severity: grave

The file test.py contains a single line (without the "> " quotation):
> import PySide2.QtCore as core

Running
> python3 test.py
results in a segfault with output:
> SystemError: could not initialize part 1
FWIW, I could trace that message to sources/shiboken2/libshiboken/signature.cpp in the pyside2 orig.tar

Running the script with python instead of python3 gives no error.
The same behaviour occurs with other Pyside2 modules instead of QtCore.

> uname -a
> Linux debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2 (2019-08-28) x86_64 GNU/Linux

> ls -l /lib/*/libc.so.6
> lrwxrwxrwx 1 root root 12 Mai  1 19:24 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.28.so

The machine in question runs in a VirtualBox VM.

Best regards,

  Mark Weyer


Reply to: