Bug 323950 - Kate crashes after launching.
Summary: Kate crashes after launching.
Status: RESOLVED DUPLICATE of bug 325933
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 3.11.0
Platform: Arch Linux Linux
: VHI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on: 323899
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-24 02:06 UTC by Jonel
Modified: 2014-09-22 20:25 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (15.44 KB, text/plain)
2013-08-31 13:45 UTC, Damien Carcel
Details
New crash information added by DrKonqi (16.21 KB, text/plain)
2013-09-09 11:11 UTC, Javier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonel 2013-08-24 02:06:54 UTC
Application: kate (3.11.0)
KDE Platform Version: 4.11.00
Qt Version: 4.8.5
Operating System: Linux 3.10.7-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Installed kdebindings-python in Arch-linux.
After that, kate crashes when I try to launch the editor.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f30bccc2b3d in QMetaObject::normalizedSignature(char const*) () from /usr/lib/libQtCore.so.4
#6  0x00007f309f6ae983 in ?? () from /usr/lib/python3.3/site-packages/PyQt4/QtCore.so
#7  0x00007f309f6aeca0 in ?? () from /usr/lib/python3.3/site-packages/PyQt4/QtCore.so
#8  0x00007f30a0af90bd in ?? () from /usr/lib/python3.3/site-packages/sip.so
#9  0x00007f30a0af9505 in ?? () from /usr/lib/python3.3/site-packages/sip.so
#10 0x00007f30a1384f13 in type_call (type=0x14bbc40, args=0x7f30a8853050, kwds=0x0) at Objects/typeobject.c:739
#11 0x00007f30a1332fdc in PyObject_Call (func=0x14bbc40, arg=0x7f30a8853050, kw=0x0) at Objects/abstract.c:2084
#12 0x00007f30a0b02186 in ?? () from /usr/lib/python3.3/site-packages/sip.so
#13 0x00007f30a0afecd9 in ?? () from /usr/lib/python3.3/site-packages/sip.so
#14 0x00007f309d566588 in ?? () from /usr/lib/python3.3/site-packages/PyKate4/kate.so
#15 0x00007f30a13e0596 in call_function (oparg=<optimized out>, pp_stack=0x7ffffa473c80) at Python/ceval.c:4063
#16 PyEval_EvalFrameEx (f=f@entry=0x7f30a10d0050, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#17 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=0x7f30a086d930, globals=<optimized out>, locals=<optimized out>, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=kwdefs@entry=0x0, closure=closure@entry=0x0) at Python/ceval.c:3433
#18 0x00007f30a13e233b in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:771
#19 0x00007f30a13d6bda in builtin_exec (self=<optimized out>, args=<optimized out>) at Python/bltinmodule.c:852
#20 0x00007f30a13e0c69 in ext_do_call (nk=<optimized out>, na=<optimized out>, flags=<optimized out>, pp_stack=0x7ffffa473f38, func=0x7f30a88848c0) at Python/ceval.c:4375
#21 PyEval_EvalFrameEx (f=f@entry=0x7f30a0fb7220, throwflag=throwflag@entry=0) at Python/ceval.c:2720
#22 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=_co@entry=0x7f30a10a4390, globals=<optimized out>, locals=locals@entry=0x0, args=<optimized out>, argcount=argcount@entry=3, kws=0x1031bc0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433
#23 0x00007f30a13e0004 in fast_function (nk=<optimized out>, na=3, n=<optimized out>, pp_stack=0x7ffffa474150, func=<optimized out>) at Python/ceval.c:4161
#24 call_function (oparg=<optimized out>, pp_stack=0x7ffffa474150) at Python/ceval.c:4084
#25 PyEval_EvalFrameEx (f=f@entry=0x1031a00, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#26 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=0x7f30a10aeb70, globals=<optimized out>, locals=locals@entry=0x0, args=args@entry=0x7f30a106dde8, argcount=2, kws=kws@entry=0x7f30a8853068, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=0x7f30a10c8908, closure=0x0) at Python/ceval.c:3433
#27 0x00007f30a1359033 in function_call (func=0x7f30a10cf320, arg=0x7f30a106ddd0, kw=0x7f30a0d26ea8) at Objects/funcobject.c:633
#28 0x00007f30a1332fdc in PyObject_Call (func=func@entry=0x7f30a10cf320, arg=arg@entry=0x7f30a106ddd0, kw=kw@entry=0x7f30a0d26ea8) at Objects/abstract.c:2084
#29 0x00007f30a13dd044 in ext_do_call (nk=<optimized out>, na=<optimized out>, flags=<optimized out>, pp_stack=0x7ffffa474468, func=0x7f30a10cf320) at Python/ceval.c:4378
#30 PyEval_EvalFrameEx (f=f@entry=0x10505c0, throwflag=throwflag@entry=0) at Python/ceval.c:2720
#31 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=_co@entry=0x7f30a10a49c0, globals=<optimized out>, locals=locals@entry=0x0, args=<optimized out>, argcount=argcount@entry=2, kws=0x7f30a1028fe8, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x7f30a10c6250) at Python/ceval.c:3433
#32 0x00007f30a13e0004 in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7ffffa474680, func=<optimized out>) at Python/ceval.c:4161
#33 call_function (oparg=<optimized out>, pp_stack=0x7ffffa474680) at Python/ceval.c:4084
#34 PyEval_EvalFrameEx (f=f@entry=0x7f30a1028e50, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#35 0x00007f30a13e02f9 in fast_function (nk=<optimized out>, na=2, n=2, pp_stack=0x7ffffa4747e0, func=<optimized out>) at Python/ceval.c:4151
#36 call_function (oparg=<optimized out>, pp_stack=0x7ffffa4747e0) at Python/ceval.c:4084
#37 PyEval_EvalFrameEx (f=f@entry=0x7f30a0fb7790, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#38 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=0x7f30a10b9270, globals=<optimized out>, locals=locals@entry=0x0, args=args@entry=0x7f30a0d80800, argcount=2, kws=kws@entry=0x7f30a8853068, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=0x0, closure=0x7f30a10c6350) at Python/ceval.c:3433
#39 0x00007f30a1359033 in function_call (func=0x7f30a10cf8c0, arg=0x7f30a0d807e8, kw=0x7f30a0d26e60) at Objects/funcobject.c:633
#40 0x00007f30a1332fdc in PyObject_Call (func=func@entry=0x7f30a10cf8c0, arg=arg@entry=0x7f30a0d807e8, kw=kw@entry=0x7f30a0d26e60) at Objects/abstract.c:2084
#41 0x00007f30a13dd044 in ext_do_call (nk=<optimized out>, na=<optimized out>, flags=<optimized out>, pp_stack=0x7ffffa474af8, func=0x7f30a10cf8c0) at Python/ceval.c:4378
#42 PyEval_EvalFrameEx (f=f@entry=0x1039b00, throwflag=throwflag@entry=0) at Python/ceval.c:2720
#43 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=_co@entry=0x7f30a10a4ae0, globals=<optimized out>, locals=locals@entry=0x0, args=<optimized out>, argcount=argcount@entry=2, kws=0x10a8860, kwcount=0, defs=0x7f30a10c6768, defcount=1, kwdefs=0x0, closure=0x7f30a10c6390) at Python/ceval.c:3433
#44 0x00007f30a13e0004 in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7ffffa474d10, func=<optimized out>) at Python/ceval.c:4161
#45 call_function (oparg=<optimized out>, pp_stack=0x7ffffa474d10) at Python/ceval.c:4084
#46 PyEval_EvalFrameEx (f=f@entry=0x10a8690, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#47 0x00007f30a13e02f9 in fast_function (nk=<optimized out>, na=2, n=2, pp_stack=0x7ffffa474e70, func=<optimized out>) at Python/ceval.c:4151
#48 call_function (oparg=<optimized out>, pp_stack=0x7ffffa474e70) at Python/ceval.c:4084
#49 PyEval_EvalFrameEx (f=f@entry=0x1082200, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#50 0x00007f30a13e2265 in PyEval_EvalCodeEx (_co=0x7f30a10c2780, globals=<optimized out>, locals=locals@entry=0x0, args=args@entry=0x7f30a0d0c068, argcount=2, kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3433
#51 0x00007f30a1358f56 in function_call (func=0x7f30a1054440, arg=0x7f30a0d0c050, kw=0x0) at Objects/funcobject.c:633
#52 0x00007f30a1332fdc in PyObject_Call (func=func@entry=0x7f30a1054440, arg=arg@entry=0x7f30a0d0c050, kw=kw@entry=0x0) at Objects/abstract.c:2084
#53 0x00007f30a13339c3 in _PyObject_CallMethodObjIdArgs (callable=0x7f30a1054440, name=name@entry=0x7f30a16f0000 <PyId__find_and_load.12270>) at Objects/abstract.c:2346
#54 0x00007f30a13f3d23 in PyImport_ImportModuleLevelObject (name=0x7f30a0d1ad50, given_globals=<optimized out>, locals=<optimized out>, given_fromlist=<optimized out>, level=0) at Python/import.c:1448
#55 0x00007f30a13d73cf in builtin___import__ (self=<optimized out>, args=<optimized out>, kwds=<optimized out>) at Python/bltinmodule.c:193
#56 0x00007f30a1332fdc in PyObject_Call (func=func@entry=0x7f30a8884518, arg=arg@entry=0x7f30a10b1ad0, kw=kw@entry=0x0) at Objects/abstract.c:2084
#57 0x00007f30a1333125 in call_function_tail (callable=0x7f30a8884518, args=0x7f30a10b1ad0) at Objects/abstract.c:2116
#58 0x00007f30a13332be in PyObject_CallFunction (callable=callable@entry=0x7f30a8884518, format=format@entry=0x7f30a1479c4e "OOOOi") at Objects/abstract.c:2140
#59 0x00007f30a13f4212 in PyImport_Import (module_name=module_name@entry=0x7f30a0d1ad50) at Python/import.c:1650
#60 0x00007f30a13f43ba in PyImport_ImportModule (name=<optimized out>) at Python/import.c:1131
#61 0x00007f30a1758c44 in ?? () from /usr/lib/kde4/katepateplugin.so
#62 0x00007f30a1755513 in ?? () from /usr/lib/kde4/katepateplugin.so
#63 0x00007f30a175586e in ?? () from /usr/lib/kde4/katepateplugin.so
#64 0x00007f30a1752048 in ?? () from /usr/lib/kde4/katepateplugin.so
#65 0x00007f30a1754d93 in ?? () from /usr/lib/kde4/katepateplugin.so
#66 0x00007f30bd22ce9c in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libkdecore.so.5
#67 0x00007f30a837d1dc in ?? () from /usr/lib/libkateinterfaces.so.4
#68 0x00007f30a837d743 in ?? () from /usr/lib/libkateinterfaces.so.4
#69 0x00007f30a83903a4 in ?? () from /usr/lib/libkateinterfaces.so.4
#70 0x00007f30a83915e5 in ?? () from /usr/lib/libkateinterfaces.so.4
#71 0x00007f30a836b1be in KateApp::startupKate() () from /usr/lib/libkateinterfaces.so.4
#72 0x00007f30a836b4f5 in KateApp::initKate() () from /usr/lib/libkateinterfaces.so.4
#73 0x00007f30a836b6c7 in KateApp::KateApp(KCmdLineArgs*) () from /usr/lib/libkateinterfaces.so.4
#74 0x00007f30a85c4745 in kdemain () from /usr/lib/libkdeinit4_kate.so
#75 0x0000000000408069 in _start ()

Possible duplicates by query: bug 287528, bug 284311.

Reported using DrKonqi
Comment 1 Dominik Haumann 2013-08-26 07:44:31 UTC
Shaheed, Pablo: Can you look into this? Would be good to have this resolved as soon as possible, as it crashes Kate on each Kate start, according to Jonel.
Comment 2 Shaheed Haque 2013-08-26 12:46:15 UTC
I see crashes like this when there is a mismatch between the binaries/libraries for Kate and PyKDE4. This in turn seems to happen when some variation of the following happens:

1. The Kate package files don't match PyKDE4 files because the distro has not rebuilt one of them.

2. The system has a mixture of old and new files as a result of a local build of Kate (e.g. in /usr/local) versus the distro files (in /usr).

In this case, the original report mentions a new install of the Python bindings, so I strongly suspect the former. I recommend making sure you have contemporaneous builds of both Kate and PyKDE4. The real fix is probably for your distro to update its dependencies so that Kate is rebuilt when the PyKDE4 is updated/rebuilt but the details are really down to how the packages are handled (e.g. the dependency is strictly from PyKDE4 to the Python support in Kate, some distros apparently package the latter separately from Kate itself).

For now, I'm closing this a not-a-bug, please reopen if further evidence points otherwise.
Comment 3 Jonel 2013-08-28 15:31:52 UTC
Package kdebindings-python can not be rebuilt because of Bug 323899.
Comment 4 Shaheed Haque 2013-08-28 20:50:49 UTC
OK, I just looked at bug 323899 and I'm a bit bemused as to the logic of re-opening this defect at this time as there is no suggestion that my previous diagnosis of not-a-bug was incorrect. Was your intent more than to simply track the dependency?
Comment 5 Jonel 2013-08-29 18:59:51 UTC
Sorry for not being clear enough.
This bug is probably a duplicate of bug 323899
Comment 6 Damien Carcel 2013-08-31 13:45:50 UTC
Created attachment 82057 [details]
New crash information added by DrKonqi

kate (3.11.0) on KDE Platform 4.11.00 using Qt 4.8.5

- What I was doing when the application crashed:

After installing kdebindings-python-4.11.0-1, Kate crash as soon as I enable the python plugin for "Pâté". Works fine if the plugin is not installed.

-- Backtrace (Reduced):
#10 0x00007f908f2f6f13 in type_call (type=0x37fe230, args=0x7f908fbdf050, kwds=0x0) at Objects/typeobject.c:739
#11 0x00007f908f2a4fdc in PyObject_Call (func=0x37fe230, arg=0x7f908fbdf050, kw=0x0) at Objects/abstract.c:2084
[...]
#15 0x00007f908f352596 in call_function (oparg=<optimized out>, pp_stack=0x7fff9e30c510) at Python/ceval.c:4063
#16 PyEval_EvalFrameEx (f=f@entry=0x7f908fbde050, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#17 0x00007f908f354265 in PyEval_EvalCodeEx (_co=0x7f908e8e6c90, globals=<optimized out>, locals=<optimized out>, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=kwdefs@entry=0x0, closure=closure@entry=0x0) at Python/ceval.c:3433
Comment 7 Javier 2013-09-09 11:11:11 UTC
Created attachment 82234 [details]
New crash information added by DrKonqi

kate (3.11.0) on KDE Platform 4.11.00 using Qt 4.8.5

- What I was doing when the application crashed:
Start Kate, open settings, enable Python complements

-- Backtrace (Reduced):
#10 0x00007f683f67cf13 in type_call (type=0x2bfc770, args=0x7f6842f40050, kwds=0x0) at Objects/typeobject.c:739
#11 0x00007f683f62afdc in PyObject_Call (func=0x2bfc770, arg=0x7f6842f40050, kw=0x0) at Objects/abstract.c:2084
[...]
#15 0x00007f683f6d8596 in call_function (oparg=<optimized out>, pp_stack=0x7fff3afa4dd0) at Python/ceval.c:4063
#16 PyEval_EvalFrameEx (f=f@entry=0x7f6842f3f050, throwflag=throwflag@entry=0) at Python/ceval.c:2679
#17 0x00007f683f6da255 in PyEval_EvalCodeEx (_co=0x7f683a6b7c90, globals=<optimized out>, locals=<optimized out>, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, kwdefs=kwdefs@entry=0x0, closure=closure@entry=0x0) at Python/ceval.c:3433
Comment 8 Luca Beltrame 2013-09-10 22:06:31 UTC
Git commit 7c0648b3931e069892943bc645dc61f246375cdf by Luca Beltrame.
Committed on 10/09/2013 at 22:02.
Pushed by lbeltrame into branch 'KDE/4.11'.

More fixes for the build system: this is the "harmless" part of the
patch used by Debian (and made by Simon Edwards himself) which adds the
"protected is public" hack to allow for proper building with SIP 4.15+.

PyKDE4 needs some code adjustments, however: those exist in patch form
(see bug) but aren't yet committed. Simon, should I push them already,
or should I wait till the issues on ARM are resolved?

CCMAIL: simon@simonzone.com

M  +1    -1    CMakeLists.txt

http://commits.kde.org/pykde4/7c0648b3931e069892943bc645dc61f246375cdf
Comment 9 Christoph Cullmann 2014-09-22 20:25:39 UTC

*** This bug has been marked as a duplicate of bug 325933 ***