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 480 - Segfault in QVerticalLayout.addLayout()
: Segfault in QVerticalLayout.addLayout()
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P2 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-21 01:30 EET by Mickaël
Modified: 2010-11-25 17:48 EET (History)
8 users (show)

See Also:


Attachments
Testcase (430 bytes, text/plain)
2010-11-21 01:30 EET, Mickaël
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickaël 2010-11-21 01:30:05 EET
Created attachment 147 [details]
Testcase

See testcase.
Note that the original faulty code was uic-generated, so that's a major issue.
Here's a backtrace.

52
53      }
54
55      inline void addLayoutOwnership(QLayout* layout, QLayoutItem* item)
56      {
57          QWidget* w = item->widget();
58          if (w)
59              addLayoutOwnership(layout, w);
60          else {
61              QLayout* l = item->layout();

#0  0xb66de584 in addLayoutOwnership (layout=0x83d5208, item=0x0) at
/home/mickael/build/pyside/pyside/src/pyside/PySide/QtGui/glue/qlayout_help_functions.h:57
        w = 0xb5c345da
        pyParent = {m_pyObj = 0xb68ce100}
        pyChild = {m_pyObj = 0x0}
#1  0xb66de486 in addLayoutOwnership (layout=0x83d5208, other=0x83d5c20)
    at
/home/mickael/build/pyside/pyside/src/pyside/PySide/QtGui/glue/qlayout_help_functions.h:46
        item = 0x0
        i = 0
        i_max = 1
        parent = 0x83c9388
        pyParent = {m_pyObj = 0xbfffeb18}
        pyChild = {m_pyObj = 0xb66d9f09}
#2  0xb66da183 in Sbk_QBoxLayoutFunc_addLayout (self=0xb7c04bd8,
args=0x82c364c, kwds=0x0)
    at
/home/mickael/build/pyside/pyside/src/pyside/build/PySide/QtGui/PySide/QtGui/qboxlayout_wrapper.cpp:997
        cppArg0 = 0x83d5c20
        cppArg1 = 0
        cppSelf = 0x83d5208
        numNamedArgs = 0
        numArgs = 1
        pyargs = {0xb7c049f8, 0x0}
        overloads = {0x83d3828 "H\325\n\267ؑ=\b(\326\n\267", 0xb7c396c0 "\004"}
        overloadId = 0
#3  0xb7eb2038 in PyCFunction_Call () from /usr/lib/libpython2.7.so.1.0
#4  0xb7f0ff32 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#5  0xb7f11506 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#6  0xb7f11d20 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#7  0xb7f11e73 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#8  0xb7f2b9cb in run_mod () from /usr/lib/libpython2.7.so.1.0
#9  0xb7f2c8d2 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
#10 0xb7f2d59c in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
#11 0xb7f2e142 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.7.so.1.0
#12 0xb7f3f674 in Py_Main () from /usr/lib/libpython2.7.so.1.0
#13 0x08048557 in main ()
Comment 1 Mickaël 2010-11-21 01:32:53 EET
Maybe related to #475 (I could not reproduce)
Comment 2 Matti Airas 2010-11-23 06:26:08 EET
Agreeing that this is major - assigning P2. Let's not make this block the
upcoming release, however (or else we'll never get it done). We'll make another
beta soon after the first one, and this should be fixed by that time.
Comment 3 renato filho 2010-11-23 14:24:27 EET
fixed on pyside commit:

commit e635023cdb91452e719f16afb70d3d19b01aed34
Author: Renato Araujo Oliveira Filho <renato.filho@openbossa.org>
Date:   Tue Nov 23 12:09:22 2010 -0300
Comment 4 renato filho 2010-11-25 17:48:26 EET
released on 1.0.0~beta1