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 243 - qtgui_qwidget test segfaults on amd64
: qtgui_qwidget test segfaults on amd64
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 0.3.2
: PC Linux
: P5 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-06-14 05:41 EEST by Didier Raboud
Modified: 2010-09-10 19:21 EEST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Didier Raboud 2010-06-14 05:41:01 EEST
Hi, 

as I already told on IRC, the qtgui_wdiget test segfaults in PySide 0.3.2 (on
amd64).

I'm filing this here to get a constant reference for that problem.

Cheers, 

OdyX
Comment 1 dom 2010-06-18 08:54:07 EEST
The following code leads to a Segementation fault when invoking the layout()
method of the QMainWindow instance:

from PySide import QtGui, QtCore
import sys
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
window.layout()

-> Segmentation fault

Hardware on which issue could be reproduced: Intel 32-Bit running Ubuntu Linux
9.10 + Nokia N900 (PR1.2)
Comment 2 Hugo Parente Lima 2010-06-18 15:40:38 EEST
Works for me with git HEAD and a debug build.

[hugo@thinkpadugo tmp  4.6] $ cat > test.py
from PySide import QtGui, QtCore
import sys
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
window.layout()
[hugo@thinkpadugo tmp  4.6] $ python test.py 
[static Shiboken::TypeResolver* Shiboken::TypeResolver::get(const char*)] Can't
find type resolver for 17QMainWindowLayout
[hugo@thinkpadugo tmp  4.6] $ 

The warning about TypeResolver is expected and only show on debug builds.
Comment 3 Hugo Parente Lima 2010-06-18 15:42:13 EEST
Oops. my machine is running linux 64bits, so the previous tests doesn't apply
for this bug.
Comment 4 renato filho 2010-07-14 11:55:28 EEST
Unit test created in commit:

commit 28d0c480b15d566cabfb63dc6cc65697dc5b5edc
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jul 13 17:53:59 2010 -0300


This prove the test is working on PySide HEAD.
the qtgui_wdiget was fixed too.
Comment 5 Kalev Lember 2010-08-11 14:42:40 EEST
I'm getting a segmentation fault running the newly-added unit test
QtGui_bug_243 with pyside 0.4.0 on Fedora 13 i686; not able to reproduce it on
Fedora 13 x86_64. All other unit tests (well, except one more which triggers
assertion in pulseaudio) run fine.


101/184 Testing: QtGui_bug_243
101/184 Test: QtGui_bug_243
Command: "/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/tests/run_test.sh"
"/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/i686-redhat-linux-gnu/libpyside"
"/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/i686-redhat-linux-gnu:/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/tests/util"
"/usr/bin/python2.6"
"/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/tests/QtGui/bug_243.py"
Directory:
/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/i686-redhat-linux-gnu/tests/QtGui
"QtGui_bug_243" start time: Aug 11 18:54 EEST
Output:
----------------------------------------------------------
/home/kalev/rpmbuild/BUILD/pyside-qt4.6+0.4.0/tests/run_test.sh: line 13: 28388
Segmentation fault      (core dumped) $3 $4
<end of output>
Test time =   1.53 sec
----------------------------------------------------------
Test Failed.
"QtGui_bug_243" end time: Aug 11 18:54 EEST
"QtGui_bug_243" time elapsed: 00:00:01
----------------------------------------------------------
Comment 6 Kalev Lember 2010-08-23 15:02:00 EEST
QtGui_bug_243 test appears to segfault on i386 debian unstable too:
https://buildd.debian.org/fetch.cgi?pkg=pyside;ver=0.4.0-1;arch=i386;stamp=1282585155
Comment 7 Hugo Parente Lima 2010-08-30 17:45:51 EEST
Fixed in commits:
apiextractor/d13ce132753fe94ec5da75c6bb9f2367f8268b1c
shiboken/1eda671a34eba38e7e74e592e4ae88fa6803bcba

Tested on archlinux 32 bits inside a VM.