[Python-modules-team] Bug#588558: python-pyside.qtgui: padnavigator.py from pyside-examples coredumps

Kirill Smelkov kirr at landau.phys.spbu.ru
Fri Jul 9 16:39:55 UTC 2010


Package: python-pyside.qtgui
Version: 0.3.2-3
Severity: normal

Additionally to bug588556, I've also discovered that
graphicsview/padnavigator/padnavigator.py from pyside-examples [1]
coredumps (with both python2.5 & python2.6):

$ ./padnavigator.py
Segmentation fault (core dumped)

I've tracked this down to a smaller script which is below:

---- 8< p.py ----
#!/usr/bin/env python

# trimmed down padnavigator.py to demonstrate crash in QDateTimeEdit
"""PySide port of the examples/graphicsview/padnavigator example from Qt v4.x"""

import sys
from PySide import QtCore, QtGui

class Ui_BackSide(object):
    def setupUi(self, BackSide):
        self.groupBox = QtGui.QGroupBox(BackSide)

        # crashes
        self.dateTimeEdit = QtGui.QDateTimeEdit(self.groupBox)

class Panel(QtGui.QGraphicsView):
    def __init__(self, width, height):
        QtGui.QGraphicsView.__init__(self)

        embed = QtGui.QWidget()

        self.ui = Ui_BackSide()
        self.ui.setupUi(embed)
        1/0


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)

    panel = Panel(3, 3)
    panel.show()
    sys.exit(app.exec_())
---- 8< ----

The backtrace (without -dbg packages installed) is

Program received signal SIGSEGV, Segmentation fault.
0xb6595a86 in ?? () from /usr/lib/pymodules/python2.6/PySide/QtGui.so
(gdb) bt
#0  0xb6595a86 in ?? () from /usr/lib/pymodules/python2.6/PySide/QtGui.so
#1  0x080acd45 in ?? ()
#2  0x0806232a in PyObject_Call ()
#3  0x080e03fb in PyEval_EvalFrameEx ()
#4  0x080e1b40 in PyEval_EvalFrameEx ()
#5  0x080e2797 in PyEval_EvalCodeEx ()
#6  0x0816bb3c in ?? ()
#7  0x0806232a in PyObject_Call ()
#8  0x0806a311 in ?? ()
#9  0x0806232a in PyObject_Call ()
#10 0x080b50a4 in ?? ()
#11 0x080acd45 in ?? ()
#12 0x0806232a in PyObject_Call ()
#13 0x080e03fb in PyEval_EvalFrameEx ()
#14 0x080e2797 in PyEval_EvalCodeEx ()
#15 0x080e2897 in PyEval_EvalCode ()
#16 0x080fff4d in PyRun_FileExFlags ()
#17 0x081001b2 in PyRun_SimpleFileExFlags ()
#18 0x0805dd81 in Py_Main ()
#19 0x0805cf6b in main ()

(and the same one after installing -dbgs):

#0  0xb6595a86 in ?? () from /usr/lib/pymodules/python2.6/PySide/QtGui.so
#1  0x080acd45 in type_call (type=0xb6e0be40, args=
    (<PySide.QtGui.QGroupBox at remote 0x85183a0>,), kwds=0x0) at ../Objects/typeobject.c:742
#2  0x0806232a in PyObject_Call (func=<Shiboken.BaseWrapperType at remote 0xb6e0be40>, arg=
    (<PySide.QtGui.QGroupBox at remote 0x85183a0>,), kw=0x0) at ../Objects/abstract.c:2492
#3  0x080e03fb in do_call (f=
    Frame 0x85d4c6c, for file p.py, line 14, in setupUi (self=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>, BackSide=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:3968
#4  call_function (f=
    Frame 0x85d4c6c, for file p.py, line 14, in setupUi (self=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>, BackSide=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:3773
#5  PyEval_EvalFrameEx (f=
    Frame 0x85d4c6c, for file p.py, line 14, in setupUi (self=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>, BackSide=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:2412
#6  0x080e1b40 in fast_function (f=
    Frame 0x85cedcc, for file p.py, line 48, in __init__ (self=<Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, width=3, height=3, embed=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:3836
#7  call_function (f=
    Frame 0x85cedcc, for file p.py, line 48, in __init__ (self=<Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, width=3, height=3, embed=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:3771
#8  PyEval_EvalFrameEx (f=
    Frame 0x85cedcc, for file p.py, line 48, in __init__ (self=<Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, width=3, height=3, embed=<PySide.QtGui.QWidget at remote 0x8518320>), throwflag=0) at ../Python/ceval.c:2412
#9  0x080e2797 in PyEval_EvalCodeEx (co=0xb7c07b60, globals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, locals=0x0, args=
    0x8517880, argcount=3, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:3000
#10 0x0816bb3c in function_call (func=<function at remote 0x84a8cdc>, arg=
    (<Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, 3, 3), kw=0x0) at ../Objects/funcobject.c:524
#11 0x0806232a in PyObject_Call (func=<function at remote 0x84a8cdc>, arg=
    (<Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, 3, 3), kw=0x0) at ../Objects/abstract.c:2492
#12 0x0806a311 in instancemethod_call (func=<function at remote 0x84a8cdc>, arg=(3, 3), kw=0x0)
    at ../Objects/classobject.c:2579
#13 0x0806232a in PyObject_Call (func=<instancemethod at remote 0xb7c0c9b4>, arg=(3, 3), kw=0x0)
    at ../Objects/abstract.c:2492
#14 0x080b50a4 in slot_tp_init (self=
    <Panel(destroyed=<Signal at remote 0x84bfe30>, customContextMenuRequested=<Signal at remote 0x84bfe18>, ui=<Ui_BackSide(groupBox=<PySide.QtGui.QGroupBox at remote 0x85183a0>) at remote 0x851838c>) at remote 0x850fa7c>, args=(3, 3), kwds=0x0) at ../Objects/typeobject.c:5632
#15 0x080acd45 in type_call (type=0x855f9d4, args=(3, 3), kwds=0x0) at ../Objects/typeobject.c:742
#16 0x0806232a in PyObject_Call (func=<Shiboken.BaseWrapperType at remote 0x855f9d4>, arg=(3, 3), 
    kw=0x0) at ../Objects/abstract.c:2492
#17 0x080e03fb in do_call (f=Frame 0x829f994, for file p.py, line 55, in <module> (), throwflag=0)
    at ../Python/ceval.c:3968
#18 call_function (f=Frame 0x829f994, for file p.py, line 55, in <module> (), throwflag=0)
    at ../Python/ceval.c:3773
#19 PyEval_EvalFrameEx (f=Frame 0x829f994, for file p.py, line 55, in <module> (), throwflag=0)
    at ../Python/ceval.c:2412
#20 0x080e2797 in PyEval_EvalCodeEx (co=0xb7c194a0, globals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, locals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, args=0x0, 
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3000
#21 0x080e2897 in PyEval_EvalCode (co=0xb7c194a0, globals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, locals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>})
    at ../Python/ceval.c:541
#22 0x080fff4d in run_mod (fp=0x82a1258, filename=0xbffff1fb "p.py", start=257, globals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, locals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, closeit=1, flags=
    0xbfffef3c) at ../Python/pythonrun.c:1351
#23 PyRun_FileExFlags (fp=0x82a1258, filename=0xbffff1fb "p.py", start=257, globals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, locals=
    {'QtGui': <module at remote 0x8349b54>, '__builtins__': <module at remote 0xb7c31074>, '__file__': 'p.py', '__package__': None, 'sys': <module at remote 0xb7c3108c>, 'Ui_BackSide': <type at remote 0x855f694>, '__name__': '__main__', 'app': <PySide.QtGui.QApplication at remote 0x85182e0>, 'QtCore': <module at remote 0xb7c315b4>, '__doc__': 'PySide port of the examples/graphicsview/padnavigator example from Qt v4.x', 'Panel': <Shiboken.BaseWrapperType at remote 0x855f9d4>}, closeit=1, flags=
    0xbfffef3c) at ../Python/pythonrun.c:1337
#24 0x081001b2 in PyRun_SimpleFileExFlags (fp=0x82a1258, filename=0xbffff1fb "p.py", closeit=1, 
    flags=0xbfffef3c) at ../Python/pythonrun.c:941
#25 0x0805dd81 in Py_Main (argc=2, argv=0xbffff024) at ../Modules/main.c:577
#26 0x0805cf6b in main (argc=2, argv=0xbffff024) at ../Modules/python.c:23




Also the following examples coredumps in the same way (judging by
original backtrace):

- widgets/styles.py


Thanks,
Kirill


[1] http://qt.gitorious.org/pyside/pyside-examples



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.33.6-roro-00002-gf825b2a-dirty (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-pyside.qtgui depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.4-6        GCC support library
ii  libpyside0.3            0.3.2-3          Python bindings for Qt 4 (base fil
ii  libpython2.6            2.6.5+20100630-2 Shared Python runtime library (ver
ii  libqtcore4              4:4.6.3-1        Qt 4 core module
ii  libqtgui4               4:4.6.3-1        Qt 4 GUI module
ii  libshiboken0.3          0.3.2-2          CPython bindings generator for C++
ii  libstdc++6              4.4.4-6          The GNU Standard C++ Library v3
ii  python                  2.6.5-5          An interactive high-level object-o
ii  python-support          1.0.9            automated rebuilding support for P
ii  python2.5               2.5.5-6          An interactive high-level object-o

python-pyside.qtgui recommends no packages.

python-pyside.qtgui suggests no packages.

-- no debconf information





More information about the Python-modules-team mailing list