PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1155 - Some unicode string make showing a QLabel segfault
: Some unicode string make showing a QLabel segfault
Status: UNCONFIRMED
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.1.0
: PC Mac OS
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2012-02-27 17:57 EET by Matthias Bussonnier
Modified: 2012-03-08 16:57 EET (History)
9 users (show)

See Also:


Attachments
run with python to segfault. (545 bytes, text/x-python-script)
2012-02-27 17:57 EET, Matthias Bussonnier
Details
Crashlog (43.05 KB, application/octet-stream)
2012-02-28 10:17 EET, Matthias Bussonnier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Bussonnier 2012-02-27 17:57:44 EET
Created attachment 497 [details]
run with python to segfault.

When displaying a Qlabel with some unicode string set as the text, python
program crash with segfault.

Found by having some user complaining of HEAD of IPython segfaulting:
https://github.com/ipython/ipython/issues/1407#

hard part was to get a minimum working example, see attached file.

The segfault seem to be really dependent on the string, And I have issues
finding a shorter string that still segfault.

I don't know how to track the segfault deeper.

Thanks.
-- 
Matthias

OS X 10.7.2 PySide install by homebrew v1.1.0
Python 2.7.2 (default, Jan 30 2012, 14:12:55) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin
Comment 1 Paulo Alcantara 2012-02-28 06:27:33 EET
Hi Matthias,

(In reply to comment #0)
> Created attachment 497 [details]
> run with python to segfault.
> 
> When displaying a Qlabel with some unicode string set as the text, python
> program crash with segfault.
> 

I can't reproduce this issue here with your script. The unicode string set as
text on the QtGui.QLabel is fine.

I'm using Python version 2.7, PySide from git HEAD and Qt 4.8.0. 

> Found by having some user complaining of HEAD of IPython segfaulting:
> https://github.com/ipython/ipython/issues/1407#
> 
> hard part was to get a minimum working example, see attached file.
> 
> The segfault seem to be really dependent on the string, And I have issues
> finding a shorter string that still segfault.
> 
> I don't know how to track the segfault deeper.
> 
> Thanks.
> -- 
> Matthias
> 
> OS X 10.7.2 PySide install by homebrew v1.1.0
> Python 2.7.2 (default, Jan 30 2012, 14:12:55) 
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin


           - Paulo Alcantara
Comment 2 Matthias Bussonnier 2012-02-28 10:17:37 EET
Created attachment 501 [details]
Crashlog

Crashlog I forgot to attach with initial bug report.
Copied and past from the "send bug to apple" dialog after rightclicking to
test.py and select open with python launcher
Comment 3 Matthias Bussonnier 2012-02-28 10:20:17 EET
First, sorry, I forgot to change Back import PyQt to import PySide in test.py,
but you should have seen that. It if fairy reproductible here, Is there
anything I can do to narrow the causes ?

Thanks.
Comment 4 Matti Airas 2012-03-08 16:57:38 EET
PySide is now a Qt-addon and uses Qt Project's JIRA tool for tracking bugs.
Please verify that the bug is still valid and re-submit it in the address
below:

https://bugreports.qt-project.org/

Sorry for the inconvenience!