[PyKDE] PyQt crash
Hans-Peter Jansen
hpj at urpla.net
Thu Nov 30 19:45:29 GMT 2006
Am Donnerstag, 30. November 2006 18:09 schrieb Andreas Pakulat:
> On 30.11.06 17:46:17, Giovanni Bajo wrote:
> > Hello,
> >
> > the following code snippet causes a segfault:
> > >>> from qt import QApplication
> > >>> app = QApplication(["-v"]*10)
the args doesn't matter..
> > >>> del app
> > >>> app = QApplication([])
> >
> > I'm using Qt 3.3.6, PyQt 3.16, SIP 4.4.3, under Windows.
>
> Same under linux, with Qt 3.3.7, PyQt3.3.6 and sip 4.4.5. Backtrace:
> 0xb7d0fbd3 in strrchr () from /lib/tls/libc.so.6
> (gdb) bt
> #0 0xb7d0fbd3 in strrchr () from /lib/tls/libc.so.6
> #1 0xb6d10847 in qt_init_internal (argcptr=0xb7921960, argv=0x81ff5a0,
> display=0x0, visual=0, colormap=0) at kernel/qapplication_x11.cpp:1646
> #2 0xb6d132ce in qt_init (argcptr=0xb7921960, argv=0x81ff5a0) at
> kernel/qapplication_x11.cpp:2385 #3 0xb6d8b318 in
> QApplication::construct (this=0x81d9fa0, argc=@0xb7921960,
> argv=0x81ff5a0, type=QApplication::GuiClient) at
> kernel/qapplication.cpp:813 #4 0xb6d8b738 in QApplication
> (this=0x81d9fa0, argc=@0xb7921960, argv=0x81ff5a0) at
> kernel/qapplication.cpp:728
> #5 0xb7713ac3 in initqt () from
> /home/andreas/python2.4/lib/python2.4/site-packages/qt.so #6 0xb7713c74
> in initqt () from
> /home/andreas/python2.4/lib/python2.4/site-packages/qt.so #7 0xb730007e
> in sipWrapper_init (self=0xb7c979ac, args=0xb7c4ed4c, kwds=0x0) at
> siplib.c:5900 #8 0x0809016f in type_call (type=0x81c8444,
> args=0xb7c4ed4c, kwds=0x0) at Objects/typeobject.c:435
> #9 0x08059557 in PyObject_Call (func=0x2f2f2f2f, arg=0x0, kw=0x0) at
> Objects/abstract.c:1795 #10 0x080b90c2 in PyEval_EvalFrame (f=0x81770fc)
> at Python/ceval.c:3771 #11 0x080bc10e in PyEval_EvalCodeEx
> (co=0xb7c51a20, globals=0xb7c7b824, locals=0xb7c7b824, args=0x0,
> argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
> Python/ceval.c:2736
> #12 0x080bc349 in PyEval_EvalCode (co=0x0, globals=0x0, locals=0x0) at
> Python/ceval.c:484 #13 0x080de3c5 in PyRun_InteractiveOneFlags (fp=0x0,
> filename=0x8108818 "<stdin>", flags=0xbf9b76a4) at
> Python/pythonrun.c:1265
> #14 0x080de4e0 in PyRun_InteractiveLoopFlags (fp=0xb7dd2300,
> filename=0x8108818 "<stdin>", flags=0xbf9b76a4) at Python/pythonrun.c:695
> #15 0x080dec32 in PyRun_AnyFileExFlags (fp=0xb7dd2300, filename=0x8108818
> "<stdin>", closeit=0, flags=0xbf9b76a4) at Python/pythonrun.c:658
> #16 0x08055af8 in Py_Main (argc=0, argv=0xbf9b7734) at Modules/main.c:493
> #17 0xb7cb8ea8 in __libc_start_main () from /lib/tls/libc.so.6
> #18 0x08054f41 in _start () at ../sysdeps/i386/elf/start.S:119
same here with:
Python version: 2.4
sip version: 4.5
Qt version: 3.3.7
PyQt version: 3.17
Pete
More information about the PyQt
mailing list