[PyKDE] PyQt4 Menu Seg Fault

Andreas Pakulat apaku at gmx.de
Fri Jan 13 13:23:34 GMT 2006


On 13.01.06 10:32:08, Phil Thompson wrote:
> On Friday 13 January 2006 10:11 am, Andreas Pakulat wrote:
> > > Anybody else see a problem?
> >
> > Yes selecting the "Broken Action" gives me:
> 
> Can you build SIP and PyQt with debugging symbols (-u to configure.py)? 
> Otherwise the backtrace isn't very helpful.

Sorry, that happens when I'm in a rush...

Here you go:

(gdb) bt
#0  0x08285ad6 in ?? ()
#1  0x082868b0 in ?? ()
#2  0x08285c00 in ?? ()
#3  0xb7580643 in sipNm_QtGui_requestPhase2 ()
   from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#4  0xbfe3e168 in ?? ()
#5  0xb70d93ca in sipSubClass_QApplication (sipCppRet=0x8285c00)
    at qapplication.sip:208
#6  0xb70d93ca in sipSubClass_QApplication (sipCppRet=0xbfe3e1b0)
    at qapplication.sip:208
#7  0xb7f228cf in convertSubClass ()
   from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#8  0xb7f22a21 in sip_api_map_cpp_to_self_sub_class ()
   from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#9  0xb78f2c4b in UniversalSlot::unislot (this=0x8286468, qargs=0xbfe3e710)
    at qobject.sip:671
#10 0xb78f2e87 in UniversalSlot::qt_metacall (this=0x8286468,
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfe3e70c) at qobject.sip:561
#11 0xb77dcf2e in QMetaObject::activate (sender=0x82865a0, from_signal_index=5,
    to_signal_index=6, argv=0xbfe3e70c) at kernel/qobject.cpp:2671
#12 0xb77dd11b in QMetaObject::activate (sender=0x82865a0, m=0xb6eca6b0,
    from_local_signal_index=1, to_local_signal_index=2, argv=0xbfe3e70c)
    at kernel/qobject.cpp:2718
#13 0xb697f32a in QAction::triggered (this=0x82865a0, _t1=false)
---Type <return> to continue, or q <return> to quit---
    at moc_qaction.cpp:183
#14 0xb697fce7 in QAction::activate (this=0x82865a0, event=QAction::Trigger)
    at kernel/qaction.cpp:898
#15 0xb6c72dd0 in QMenuPrivate::activateAction (this=0x8285f38, action=0x82865a0,
    action_e=QAction::Trigger) at widgets/qmenu.cpp:662
#16 0xb6c76d13 in QMenu::mouseReleaseEvent (this=0x8285c28, e=0xbfe3ef74)
    at widgets/qmenu.cpp:1708
#17 0xb72c5e0e in sipQMenu::mouseReleaseEvent (this=0x8285c28, a0=0xbfe3ef74)
    at sipQtGuiQMenu.cpp:160
#18 0xb69d8c0d in QWidget::event (this=0x8285c28, e=0xbfe3ef74)
    at kernel/qwidget.cpp:4950
#19 0xb6c7130c in QMenu::event (this=0x8285c28, e=0xbfe3ef74)
    at widgets/qmenu.cpp:1775
#20 0xb72c63df in sipQMenu::event (this=0x8285c28, a0=0xbfe3ef74)
    at sipQtGuiQMenu.cpp:339
#21 0xb6985c1b in QApplicationPrivate::notify_helper (this=0x82182e0,
    receiver=0x8285c28, e=0xbfe3ef74) at kernel/qapplication.cpp:3116
#22 0xb69866b6 in QApplication::notify (this=0x8215180, receiver=0x8285c28,
    e=0xbfe3ef74) at kernel/qapplication.cpp:2849
#23 0xb740ba13 in sipQApplication::notify (this=0x8215180, a0=0x8285c28,
    a1=0xbfe3ef74) at sipQtGuiQApplication.cpp:176
#24 0xb698ed1b in QCoreApplication::sendSpontaneousEvent (receiver=0x8285c28,
    event=0xbfe3ef74) at qcoreapplication.h:174
#25 0xb69f3a98 in QETWidget::translateMouseEvent (this=0x8285c28, event=0xbfe3f310)
---Type <return> to continue, or q <return> to quit---
    at kernel/qapplication_x11.cpp:3517
#26 0xb69f1c99 in QApplication::x11ProcessEvent (this=0x8215180, event=0xbfe3f310)
    at kernel/qapplication_x11.cpp:2701
#27 0xb6a05caf in QEventDispatcherX11::processEvents (this=0x8215230,
    flags=@0xbfe3f3c4) at kernel/qeventdispatcher_x11.cpp:112
#28 0xb77c5896 in QEventLoop::processEvents (this=0xbfe3f450, flags=@0xbfe3f3fc)
    at kernel/qeventloop.cpp:118
#29 0xb77c5b21 in QEventLoop::exec (this=0xbfe3f450, flags=@0xbfe3f458)
    at kernel/qeventloop.cpp:158
#30 0xb6c72070 in QMenu::exec (this=0x8285c28, p=@0xbfe4064c, action=0x0)
    at widgets/qmenu.cpp:1486
#31 0xb72cea52 in meth_QMenu_exec_ (sipSelf=0xb7c4acec, sipArgs=0xb67ea734)
    at sipQtGuiQMenu.cpp:2715
#32 0x08126ee3 in PyCFunction_Call (func=0xb67ea6fc, arg=0xb67ea734, kw=0x0)
    at Objects/methodobject.c:73
#33 0x080d23ce in call_function (pp_stack=0xbfe3fa30, oparg=1) at Python/ceval.c:3558
#34 0x080cdd72 in PyEval_EvalFrame (f=0x81b0964) at Python/ceval.c:2163
#35 0x080d020d in PyEval_EvalCodeEx (co=0xb7c4aa78, globals=0xb7c8de94, locals=0x0,
    args=0xb7c5e2e8, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0,
    closure=0x0) at Python/ceval.c:2736
#36 0x081266c4 in function_call (func=0xb75ef8a4, arg=0xb7c5e2d4, kw=0x0)
    at Objects/funcobject.c:548
#37 0x0805da38 in PyObject_Call (func=0xb75ef8a4, arg=0xb7c5e2d4, kw=0x0)
    at Objects/abstract.c:1756
---Type <return> to continue, or q <return> to quit---
#38 0x08066424 in instancemethod_call (func=0xb75ef8a4, arg=0xb7c5e2d4, kw=0x0)
    at Objects/classobject.c:2447
#39 0x0805da38 in PyObject_Call (func=0xb7c8bfb4, arg=0xb67ea6c4, kw=0x0)
    at Objects/abstract.c:1756
#40 0x080d1c84 in PyEval_CallObjectWithKeywords (func=0xb7c8bfb4, arg=0xb67ea6c4,
    kw=0x0) at Python/ceval.c:3425
#41 0xb7f2419c in sip_api_call_method ()
   from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#42 0xb70c24e4 in sipVH_QtGui_19 (sipGILState=PyGILState_UNLOCKED,
    sipMethod=0xb7c8bfb4, a0=0xbfe40634) at sipQtGuicmodule.cpp:5126
#43 0xb746c620 in sipQWidget::contextMenuEvent (this=0x8285248, a0=0xbfe40634)
    at sipQtGuiQWidget.cpp:509
#44 0xb69d95a9 in QWidget::event (this=0x8285248, e=0xbfe40634)
    at kernel/qwidget.cpp:5097
#45 0xb746bcac in sipQWidget::event (this=0x8285248, a0=0xbfe40634)
    at sipQtGuiQWidget.cpp:219
#46 0xb6985c1b in QApplicationPrivate::notify_helper (this=0x82182e0,
    receiver=0x8285248, e=0xbfe40634) at kernel/qapplication.cpp:3116
#47 0xb6986e5d in QApplication::notify (this=0x8215180, receiver=0x8285248,
    e=0xbfe40634) at kernel/qapplication.cpp:2928
#48 0xb740ba13 in sipQApplication::notify (this=0x8215180, a0=0x8285248,
    a1=0xbfe40634) at sipQtGuiQApplication.cpp:176
#49 0xb698ed1b in QCoreApplication::sendSpontaneousEvent (receiver=0x8285248,
    event=0xbfe40634) at qcoreapplication.h:174
---Type <return> to continue, or q <return> to quit---
#50 0xb69f3f11 in QETWidget::translateMouseEvent (this=0x8285248, event=0xbfe409d0)
    at kernel/qapplication_x11.cpp:3582
#51 0xb69f1c99 in QApplication::x11ProcessEvent (this=0x8215180, event=0xbfe409d0)
    at kernel/qapplication_x11.cpp:2701
#52 0xb6a05caf in QEventDispatcherX11::processEvents (this=0x8215230,
    flags=@0xbfe40a84) at kernel/qeventdispatcher_x11.cpp:112
#53 0xb77c5896 in QEventLoop::processEvents (this=0xbfe40b08, flags=@0xbfe40abc)
    at kernel/qeventloop.cpp:118
#54 0xb77c5b21 in QEventLoop::exec (this=0xbfe40b08, flags=@0xbfe40b10)
    at kernel/qeventloop.cpp:158
#55 0xb77cbbf3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:661
#56 0xb69852eb in QApplication::exec () at kernel/qapplication.cpp:2664
#57 0xb7410218 in meth_QApplication_exec_ (sipArgs=0xb7c6d034)
    at sipQtGuiQApplication.cpp:2120
#58 0x08126ee3 in PyCFunction_Call (func=0xb75cbd54, arg=0xb7c6d034, kw=0x0)
    at Objects/methodobject.c:73
#59 0x080d23ce in call_function (pp_stack=0xbfe410a0, oparg=0) at Python/ceval.c:3558
#60 0x080cdd72 in PyEval_EvalFrame (f=0x817414c) at Python/ceval.c:2163
#61 0x080d020d in PyEval_EvalCodeEx (co=0xb7c4ab28, globals=0xb7c8de94,
    locals=0xb7c8de94, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:2736
#62 0x080c649c in PyEval_EvalCode (co=0xb7c4ab28, globals=0xb7c8de94,
    locals=0xb7c8de94) at Python/ceval.c:484
#63 0x080fad21 in run_node (n=0xb7c83320, filename=0xbfe41717 "menutest.py",
---Type <return> to continue, or q <return> to quit---
    globals=0xb7c8de94, locals=0xb7c8de94, flags=0xbfe41400)
    at Python/pythonrun.c:1265
#64 0x080faccb in run_err_node (n=0xb7c83320, filename=0xbfe41717 "menutest.py",
    globals=0xb7c8de94, locals=0xb7c8de94, flags=0xbfe41400)
    at Python/pythonrun.c:1252
#65 0x080fac9a in PyRun_FileExFlags (fp=0x8172008,
    filename=0xbfe41717 "menutest.py", start=257, globals=0xb7c8de94,
    locals=0xb7c8de94, closeit=1, flags=0xbfe41400) at Python/pythonrun.c:1243
#66 0x080f9925 in PyRun_SimpleFileExFlags (fp=0x8172008,
    filename=0xbfe41717 "menutest.py", closeit=1, flags=0xbfe41400)
    at Python/pythonrun.c:860
#67 0x080f9094 in PyRun_AnyFileExFlags (fp=0x8172008,
    filename=0xbfe41717 "menutest.py", closeit=1, flags=0xbfe41400)
    at Python/pythonrun.c:664
#68 0x08055f3c in Py_Main (argc=2, argv=0xbfe41504) at Modules/main.c:484
#69 0x08055372 in main (argc=2, argv=0xbfe41504) at Modules/python.c:23

Hope that clarifies.

Andreas

-- 
You are destined to become the commandant of the fighting men of the
department of transportation.




More information about the PyQt mailing list