[PyQt] [PyQT] Segfault when pickling a QByteArray

cantabile cantabile.desu at gmail.com
Mon Dec 19 12:49:18 GMT 2011


Hello,

The sample code is attached. It segfaults at pickle.dump().
However, pickling something like QByteArray("asdf") works fine.
This is with python 3. The exact same code works with python 2
(same pyqt, sip and qt versions).

A backtrace is also attached. I see a lot of "<optimized out>" in the
backtrace - should I recompile python and/or sip with -O0 or something
like that?

Python 3 version: 3.2.2
Python 2 version: 2.7.2
Pyqt     version: 4.8.6
Sip      version: 4.13
Qt       version: 4.7.4

Operating system: 64 bit arch linux.

-- 
cantabile

"Jayne is a girl's name." -- River
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pickle-test.py
Type: text/x-python
Size: 567 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111219/4838e72e/attachment.py>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: backtrace.txt
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111219/4838e72e/attachment.txt>


More information about the PyQt mailing list