Bug 325933 - Kate crashes when being started due to pate
Summary: Kate crashes when being started due to pate
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 3.11.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi, triaged
: 323950 334144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-12 16:45 UTC by Gerald Senarclens de Grancy
Modified: 2018-10-27 03:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Senarclens de Grancy 2013-10-12 16:45:56 UTC
Application: kate (3.11.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.9.3-030903-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:

1) started Kate (tried commandline with 'kate', tried dolphin w/ 'open with->kate', tried session manager with new session, ...)

expected behavior:
- Kate starts

actual behavior:
- Kate immediately crashed (when using the session manager, Kate only crashed after selecting a session or 'new session')

note:
I have the ipython console and related plugins enabled which likely are responsible for the crash. Using Kate from git (pulled yesterday) works fine with the same configuration, just the backported 3.11.2 now dies on every startup.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007fec451b1b86 in sipWrapperType_alloc (self=<optimized out>, nitems=<optimized out>) at /build/buildd/sip4-4.14.5/siplib/siplib.c:9149
#7  0x00007fec4a2795f1 in type_new.26495 (metatype=0x1eb4430, args=0x0, kwds=<optimized out>) at ../Objects/typeobject.c:2310
#8  0x00007fec4a2db0a3 in type_call.26146 (type=0x7fec449b3b60 <qpycore_pyqtWrapperType_Type>, args=0x1c5c780, kwds=0x0) at ../Objects/typeobject.c:725
#9  0x00007fec4a2d7d8e in PyObject_Call (func=func@entry=0x7fec449b3b60 <qpycore_pyqtWrapperType_Type>, arg=arg@entry=0x1c5c780, kw=kw@entry=0x0) at ../Objects/abstract.c:2529
#10 0x00007fec451b5bc7 in createContainerType (cod=cod@entry=0x7fec44239c48 <sipTypeDef_QtGui_QGraphicsRectItem+40>, td=td@entry=0x7fec44239c20 <sipTypeDef_QtGui_QGraphicsRectItem>, bases=bases@entry=0x1e6aa50, metatype=metatype@entry=0x7fec449b3b60 <qpycore_pyqtWrapperType_Type>, mod_dict=mod_dict@entry=0x1eb1c10, type_dict=type_dict@entry=0x1eb2040, client=client@entry=0x7fec4419aac0 <sipModuleAPI_QtGui>) at /build/buildd/sip4-4.14.5/siplib/siplib.c:5717
#11 0x00007fec451b59a8 in createClassType (client=client@entry=0x7fec4419aac0 <sipModuleAPI_QtGui>, ctd=ctd@entry=0x7fec44239c20 <sipTypeDef_QtGui_QGraphicsRectItem>, mod_dict=mod_dict@entry=0x1eb1c10) at /build/buildd/sip4-4.14.5/siplib/siplib.c:5852
#12 0x00007fec451b6811 in sip_api_init_module (client=0x7fec4419aac0 <sipModuleAPI_QtGui>, mod_dict=0x1eb1c10) at /build/buildd/sip4-4.14.5/siplib/siplib.c:1437
#13 0x00007fec43aa9907 in initQtGui () at sipQtGuipart0.cpp:16081
#14 0x00007fec4a27b961 in _PyImport_LoadDynamicModule.part.0 (fp=0x1cf86f0, pathname=0x1cf86f0 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", name=0x1cf76e0 "PyQt4.QtGui") at ../Python/importdl.c:53
#15 _PyImport_LoadDynamicModule (name=name@entry=0x1cf76e0 "PyQt4.QtGui", pathname=pathname@entry=0x1cf86f0 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", fp=<optimized out>) at ../Python/importdl.c:22
#16 0x00007fec4a30eb6c in load_module.39975 (name=name@entry=0x1cf76e0 "PyQt4.QtGui", fp=<optimized out>, pathname=pathname@entry=0x1cf86f0 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", type=<optimized out>, loader=<optimized out>) at ../Python/import.c:1915
#17 0x00007fec4a30ee6c in import_submodule.39994 (mod=mod@entry=0x1d8fa60, subname=subname@entry=0x1cf76e6 "QtGui", fullname=fullname@entry=0x1cf76e0 "PyQt4.QtGui") at ../Python/import.c:2700
#18 0x00007fec4a2d07df in load_next.39999 (mod=mod@entry=0x1d8fa60, altmod=altmod@entry=0x1d8fa60, p_name=p_name@entry=0x7fff729205b0, buf=buf@entry=0x1cf76e0 "PyQt4.QtGui", p_buflen=p_buflen@entry=0x7fff729205c0) at ../Python/import.c:2515
#19 0x00007fec4a30f3b9 in import_module_level.isra.9 (level=<optimized out>, fromlist=0x1accef0, globals=<optimized out>, name=0x0) at ../Python/import.c:2232
#20 PyImport_ImportModuleLevel (name=<optimized out>, globals=<optimized out>, locals=<optimized out>, fromlist=0x1accef0, level=<optimized out>) at ../Python/import.c:2288
#21 0x00007fec4a2a0edf in builtin___import__ (self=<optimized out>, args=<optimized out>, kwds=<optimized out>) at ../Python/bltinmodule.c:49
#22 0x00007fec4a2d7d8e in PyObject_Call (func=func@entry=0x1ac3050, arg=arg@entry=0x1c5bef0, kw=kw@entry=0x0) at ../Objects/abstract.c:2529
#23 0x00007fec4a23843b in call_function_tail (args=0x1c5bef0, callable=0x1ac3050) at ../Objects/abstract.c:2561
#24 PyObject_CallFunction (callable=callable@entry=0x1ac3050, format=format@entry=0x7fec4a383170 "OOOOi") at ../Objects/abstract.c:2585
#25 0x00007fec4a23861a in PyImport_Import (module_name=module_name@entry=0x1e50060) at ../Python/import.c:2886
#26 0x00007fec4a23877a in PyImport_ImportModule (name=<optimized out>) at ../Python/import.c:2129
#27 0x00007fec451b15d2 in sip_api_export_module (client=0x7fec45188240 <sipModuleAPI_kdecore>, api_major=<optimized out>, api_minor=<optimized out>, unused=<optimized out>) at /build/buildd/sip4-4.14.5/siplib/siplib.c:1283
#28 0x00007fec44e54c76 in initkdecore () at sip/kdecore/sipkdecorepart0.cpp:4821
#29 0x00007fec4a27b961 in _PyImport_LoadDynamicModule.part.0 (fp=0x1ca20e0, pathname=0x1ca20e0 "/usr/lib/python2.7/dist-packages/PyKDE4/kdecore.so", name=0x1cb3200 "PyKDE4.kdecore") at ../Python/importdl.c:53
#30 _PyImport_LoadDynamicModule (name=name@entry=0x1cb3200 "PyKDE4.kdecore", pathname=pathname@entry=0x1ca20e0 "/usr/lib/python2.7/dist-packages/PyKDE4/kdecore.so", fp=<optimized out>) at ../Python/importdl.c:22
#31 0x00007fec4a30eb6c in load_module.39975 (name=name@entry=0x1cb3200 "PyKDE4.kdecore", fp=<optimized out>, pathname=pathname@entry=0x1ca20e0 "/usr/lib/python2.7/dist-packages/PyKDE4/kdecore.so", type=<optimized out>, loader=<optimized out>) at ../Python/import.c:1915
#32 0x00007fec4a30ee6c in import_submodule.39994 (mod=mod@entry=0x1c59980, subname=subname@entry=0x1cb3207 "kdecore", fullname=fullname@entry=0x1cb3200 "PyKDE4.kdecore") at ../Python/import.c:2700
#33 0x00007fec4a2d07df in load_next.39999 (mod=mod@entry=0x1c59980, altmod=altmod@entry=0x1c59980, p_name=p_name@entry=0x7fff729209f0, buf=buf@entry=0x1cb3200 "PyKDE4.kdecore", p_buflen=p_buflen@entry=0x7fff72920a00) at ../Python/import.c:2515
#34 0x00007fec4a30f3b9 in import_module_level.isra.9 (level=<optimized out>, fromlist=0x1c48f10, globals=<optimized out>, name=0x0) at ../Python/import.c:2232
#35 PyImport_ImportModuleLevel (name=<optimized out>, globals=<optimized out>, locals=<optimized out>, fromlist=0x1c48f10, level=<optimized out>) at ../Python/import.c:2288
#36 0x00007fec4a2a0edf in builtin___import__ (self=<optimized out>, args=<optimized out>, kwds=<optimized out>) at ../Python/bltinmodule.c:49
#37 0x00007fec4a2d7d8e in PyObject_Call (func=func@entry=0x1ac3050, arg=arg@entry=0x1c5e158, kw=<optimized out>) at ../Objects/abstract.c:2529
#38 0x00007fec4a2d8b37 in PyEval_CallObjectWithKeywords (func=func@entry=0x1ac3050, arg=arg@entry=0x1c5e158, kw=kw@entry=0x0) at ../Python/ceval.c:3890
#39 0x00007fec4a20d985 in PyEval_EvalFrameEx (f=f@entry=0x1cafed0, throwflag=throwflag@entry=0) at ../Python/ceval.c:2333
#40 0x00007fec4a2a52fa in PyEval_EvalCodeEx (co=co@entry=0x1c5aeb0, globals=globals@entry=0x1b0f160, locals=locals@entry=0x1b0f160, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, closure=closure@entry=0x0) at ../Python/ceval.c:3253
#41 0x00007fec4a2a5622 in PyEval_EvalCode (co=co@entry=0x1c5aeb0, globals=globals@entry=0x1b0f160, locals=locals@entry=0x1b0f160) at ../Python/ceval.c:667
#42 0x00007fec4a2a6bcd in PyImport_ExecCodeModuleEx (name=name@entry=0x1c91470 "kate", co=co@entry=0x1c5aeb0, pathname=pathname@entry=0x1c9c190 "/usr/share/kde4/apps/kate/plugins/pate/kate/__init__.py") at ../Python/import.c:709
#43 0x00007fec4a30e6fe in load_source_module.39936 (name=name@entry=0x1c91470 "kate", pathname=pathname@entry=0x1c9c190 "/usr/share/kde4/apps/kate/plugins/pate/kate/__init__.py", fp=<optimized out>) at ../Python/import.c:1099
#44 0x00007fec4a30eb9c in load_module.39975 (name=name@entry=0x1c91470 "kate", fp=<optimized out>, pathname=pathname@entry=0x1c9c190 "/usr/share/kde4/apps/kate/plugins/pate/kate/__init__.py", type=<optimized out>, loader=loader@entry=0x0) at ../Python/import.c:1906
#45 0x00007fec4a278af9 in load_package.39982 (name=name@entry=0x1c91470 "kate", pathname=pathname@entry=0x1b0e130 "/usr/share/kde4/apps/kate/plugins/pate/kate") at ../Python/import.c:1166
#46 0x00007fec4a30eb51 in load_module.39975 (name=name@entry=0x1c91470 "kate", fp=<optimized out>, pathname=pathname@entry=0x1b0e130 "/usr/share/kde4/apps/kate/plugins/pate/kate", type=<optimized out>, loader=<optimized out>) at ../Python/import.c:1920
#47 0x00007fec4a30ee6c in import_submodule.39994 (mod=mod@entry=0x7fec4a6911a0 <_Py_NoneStruct>, subname=subname@entry=0x1c91470 "kate", fullname=fullname@entry=0x1c91470 "kate") at ../Python/import.c:2700
#48 0x00007fec4a2d07df in load_next.39999 (mod=mod@entry=0x7fec4a6911a0 <_Py_NoneStruct>, altmod=0x7fec4a6911a0 <_Py_NoneStruct>, p_name=p_name@entry=0x7fff729210c0, buf=buf@entry=0x1c91470 "kate", p_buflen=p_buflen@entry=0x7fff729210d0) at ../Python/import.c:2515
#49 0x00007fec4a30f37d in import_module_level.isra.9 (level=0, fromlist=0x1accef0, globals=<optimized out>, name=0x0) at ../Python/import.c:2224
#50 PyImport_ImportModuleLevel (name=<optimized out>, globals=<optimized out>, locals=<optimized out>, fromlist=0x1accef0, level=0) at ../Python/import.c:2288
#51 0x00007fec4a2a0edf in builtin___import__ (self=<optimized out>, args=<optimized out>, kwds=<optimized out>) at ../Python/bltinmodule.c:49
#52 0x00007fec4a2d7d8e in PyObject_Call (func=func@entry=0x1ac3050, arg=arg@entry=0x1b18110, kw=kw@entry=0x0) at ../Objects/abstract.c:2529
#53 0x00007fec4a23843b in call_function_tail (args=0x1b18110, callable=0x1ac3050) at ../Objects/abstract.c:2561
#54 PyObject_CallFunction (callable=callable@entry=0x1ac3050, format=format@entry=0x7fec4a383170 "OOOOi") at ../Objects/abstract.c:2585
#55 0x00007fec4a23861a in PyImport_Import (module_name=module_name@entry=0x1c52210) at ../Python/import.c:2886
#56 0x00007fec4a23877a in PyImport_ImportModule (name=<optimized out>) at ../Python/import.c:2129
#57 0x00007fec4a6e8751 in Pate::Python::moduleImport (this=this@entry=0x7fff72921410, moduleName=moduleName@entry=0x7fec4a6ea3fe "kate") at ../../../../../addons/kate/pate/src/utilities.cpp:251
#58 0x00007fec4a6e48d5 in Pate::Engine::init (this=this@entry=0x1a91110) at ../../../../../addons/kate/pate/src/engine.cpp:255
#59 0x00007fec4a6e4c89 in Pate::Engine::self () at ../../../../../addons/kate/pate/src/engine.cpp:182
#60 0x00007fec4a6e1387 in Pate::Plugin::Plugin (this=0x1a81e00, parent=<optimized out>) at ../../../../../addons/kate/pate/src/plugin.cpp:62
#61 0x00007fec4a6e4085 in create (args=..., parent=0xe57b60) at /usr/include/kgenericfactory.tcc:174
#62 create (args=..., className=0x7fec5efcca00 <qt_meta_stringdata_Kate__Plugin> "Kate::Plugin", parent=0xe57b60, parentWidget=<optimized out>) at /usr/include/kgenericfactory.tcc:137
#63 KGenericFactory<Pate::Plugin, QObject>::createObject (this=<optimized out>, parent=0xe57b60, className=0x7fec5efcca00 <qt_meta_stringdata_Kate__Plugin> "Kate::Plugin", args=...) at /usr/include/KDE/../kgenericfactory.h:168
#64 0x00007fec5f3ec2ca in KPluginFactory::create (this=0x1a90690, iface=0x7fec5efcca00 <qt_meta_stringdata_Kate__Plugin> "Kate::Plugin", parentWidget=0x0, parent=0xe57b60, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:187
#65 0x00007fec5efa7e36 in create<Kate::Plugin> (args=..., keyword=..., parent=0xe57b60, parentWidget=0x0, this=0x1a90690) at /usr/include/kpluginfactory.h:531
#66 createInstance<Kate::Plugin> (error=0x0, args=..., parent=0xe57b60, parentWidget=0x0, this=<optimized out>) at /usr/include/KDE/../kservice.h:573
#67 createInstance<Kate::Plugin> (error=0x0, args=..., parent=0xe57b60, this=<optimized out>) at /usr/include/KDE/../kservice.h:550
#68 KatePluginManager::loadPlugin (this=this@entry=0x114cff0, item=0x173fdc0) at ../../../kate/app/katepluginmanager.cpp:180
#69 0x00007fec5efa8852 in KatePluginManager::loadConfig (this=0x114cff0, config=config@entry=0xc534e0) at ../../../kate/app/katepluginmanager.cpp:125
#70 0x00007fec5efb8094 in KateSessionManager::activateSession (this=this@entry=0x114d7b0, session=..., closeLast=closeLast@entry=false, saveLast=saveLast@entry=false, loadNew=loadNew@entry=true) at ../../../kate/app/katesession.cpp:319
#71 0x00007fec5efbbba5 in KateSessionManager::chooseSession (this=0x114d7b0) at ../../../kate/app/katesession.cpp:500
#72 0x00007fec5ef954f7 in KateApp::startupKate (this=0x7fff72922250) at ../../../kate/app/kateapp.cpp:182
#73 0x00007fec5ef95b15 in KateApp::initKate (this=this@entry=0x7fff72922250) at ../../../kate/app/kateapp.cpp:135
#74 0x00007fec5ef95d30 in KateApp::KateApp (this=0x7fff72922250, args=<optimized out>) at ../../../kate/app/kateapp.cpp:72
#75 0x00007fec607227b8 in kdemain (argc=1, argv=<optimized out>) at ../../../kate/app/katemain.cpp:376
#76 0x00007fec60376ea5 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=1, ubp_av=0x7fff729223d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff729223c8) at libc-start.c:260
#77 0x0000000000400701 in _start ()

Reported using DrKonqi
Comment 1 Gerald Senarclens de Grancy 2013-10-12 22:25:35 UTC
After rebooting my machine I could not reproduce this anymore. There might have been an inconsistency on my machine (though no relevant packages were updated just before/ after the crashes). Maybe someone could look over the stacktrace before closing this bug.
Comment 2 Jekyll Wu 2013-10-13 11:49:10 UTC
did you update sip/pyqt related packages ?
Comment 3 Gerald Senarclens de Grancy 2013-10-14 20:42:11 UTC
(In reply to comment #2)
> did you update sip/pyqt related packages ?

Nope, not since a few days before the crashes happend. The only related packages I installed were for the debug packages:

/var/log >egrep -i 'sip|pyqt' dpkg.log
2013-10-12 18:35:35 install python-sip-dbg:amd64 <none> 4.14.5-0ubuntu1
2013-10-12 18:35:35 status half-installed python-sip-dbg:amd64 4.14.5-0ubuntu1
2013-10-12 18:35:35 status unpacked python-sip-dbg:amd64 4.14.5-0ubuntu1
2013-10-12 18:35:35 status unpacked python-sip-dbg:amd64 4.14.5-0ubuntu1
2013-10-12 18:35:48 configure python-sip-dbg:amd64 4.14.5-0ubuntu1 <none>
2013-10-12 18:35:48 status unpacked python-sip-dbg:amd64 4.14.5-0ubuntu1
2013-10-12 18:35:48 status half-configured python-sip-dbg:amd64 4.14.5-0ubuntu1
2013-10-12 18:35:49 status installed python-sip-dbg:amd64 4.14.5-0ubuntu1
Comment 4 Christoph Cullmann 2014-09-22 20:11:00 UTC
*** Bug 334144 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2014-09-22 20:25:39 UTC
*** Bug 323950 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Cullmann 2015-07-27 13:28:08 UTC
Not reproducable.
Comment 7 Andrew Crouthamel 2018-09-25 21:51:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 03:34:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!