Bug 295131 - kate crash loading an old session, katemailfilesplugin involved
Summary: kate crash loading an old session, katemailfilesplugin involved
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 13:32 UTC by Francesco Riosa
Modified: 2012-11-01 01:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.56 KB, text/plain)
2012-03-01 13:35 UTC, Francesco Riosa
Details
SQL.katesession (6.84 KB, text/plain)
2012-03-01 13:41 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2012-03-01 13:32:31 UTC
Application: kate (3.8.0)
KDE Platform Version: 4.8.00 (4.8.0) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.2.5-vs2.3.2.6-hardened x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I was opening an old kate session, with 12 sql files, kate always crash trying to open it.
The crash disappear after changing the file:
/home/vivo/.kde4/share/apps/kate/sessions/SQL.katesession
[Kate Plugins]
katemailfilesplugin=true

to 

katemailfilesplugin=false

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kdeinit4), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6  0x000002f81e995a45 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x000002f81e996ebb in __GI_abort () at abort.c:93
#8  0x000002f8207173d4 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2252
#9  0x000002f82188f462 in QDebug::~QDebug (this=0x3bf36953160, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qdebug.h:85
#10 0x000002f821b1ae32 in KXMLGUIClient::setXML (this=<optimized out>, document=..., merge=<optimized out>) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/xmlgui/kxmlguiclient.cpp:272
#11 0x000002f821b1d6f4 in KXMLGUIClient::setXMLFile (this=0x3e0c255418, _file=..., merge=false, setXMLDoc=true) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/xmlgui/kxmlguiclient.cpp:239
#12 0x000002f80553c7a0 in Kate::XMLGUIClient::XMLGUIClient (this=0x3e0c255418, componentData=...) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/interfaces/kate/plugin.cpp:126
#13 0x000002f7fe3fe30b in KateMailFilesPluginView::KateMailFilesPluginView (this=0x3e0c255400, mainWindow=0x3e0bdbae90) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/plugins/mailfiles/katemailfiles.cpp:60
#14 0x000002f7fe3fe3f9 in KateMailFilesPlugin::createView (this=<optimized out>, mainWindow=0x3e0bdbae90) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/plugins/mailfiles/katemailfiles.cpp:56
#15 0x000002f80555b13d in KatePluginManager::enablePluginGUI (this=<optimized out>, item=0x3e0bd33f50, win=0x3e0bdd0830, config=0x3e0ba9ca60) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katepluginmanager.cpp:205
#16 0x000002f80555b750 in KatePluginManager::enableAllPluginsGUI (this=0x3e0bc97640, win=0x3e0bdd0830, config=0x3e0ba9ca60) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katepluginmanager.cpp:164
#17 0x000002f805555ff3 in KateMainWindow::KateMainWindow (this=0x3e0bdd0830, sconfig=0x3e0ba9ca60, sgroup=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katemainwindow.cpp:184
#18 0x000002f80553ef5d in KateApp::newMainWindow (this=<optimized out>, sconfig_=<optimized out>, sgroup_=...) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateapp.cpp:390
#19 0x000002f805571c22 in KateSessionManager::activateSession (this=0x3e0bc98010, session=..., closeLast=<optimized out>, saveLast=<optimized out>, loadNew=<optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katesession.cpp:338
#20 0x000002f805574e2f in KateSessionManager::chooseSession (this=0x3e0bc98010) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katesession.cpp:470
#21 0x000002f8055404a0 in KateApp::startupKate (this=0x3bf36954210) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateapp.cpp:182
#22 0x000002f805540765 in KateApp::initKate (this=0x3bf36954210) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateapp.cpp:135
#23 0x000002f805540949 in KateApp::KateApp (this=0x3bf36954210, args=<optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateapp.cpp:72
#24 0x000002f8057c04cf in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katemain.cpp:373
#25 0x0000003e0b536b70 in launch (argc=1, _name=0x3e0b80d278 "kate", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x3e0b53c531 "0") at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kinit/kinit.cpp:734
#26 0x0000003e0b537ac9 in handle_launcher_request (sock=<optimized out>, who=<optimized out>) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kinit/kinit.cpp:1226
#27 0x0000003e0b538006 in handle_requests (waitForPid=0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kinit/kinit.cpp:1419
#28 0x0000003e0b53340f in main (argc=2, argv=0x3bf36956178, envp=0x3bf36956190) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kinit/kinit.cpp:1907

Possible duplicates by query: bug 284982, bug 283935, bug 283761, bug 270442.

Reported using DrKonqi
Comment 1 Francesco Riosa 2012-03-01 13:35:40 UTC
Created attachment 69211 [details]
New crash information added by DrKonqi

kate (3.8.0) on KDE Platform 4.8.00 (4.8.0) using Qt 4.8.0

same as before, to testify reproducibility

-- Backtrace (Reduced):
#6  0x000002f81e995a45 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x000002f81e996ebb in __GI_abort () at abort.c:93
[...]
#9  0x000002f82188f462 in QDebug::~QDebug (this=0x3bf36953160, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qdebug.h:85
#10 0x000002f821b1ae32 in KXMLGUIClient::setXML (this=<optimized out>, document=..., merge=<optimized out>) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/xmlgui/kxmlguiclient.cpp:272
#11 0x000002f821b1d6f4 in KXMLGUIClient::setXMLFile (this=0x3e0c2c0b88, _file=..., merge=false, setXMLDoc=true) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/xmlgui/kxmlguiclient.cpp:239
Comment 2 Francesco Riosa 2012-03-01 13:41:58 UTC
Created attachment 69212 [details]
SQL.katesession

the session file _before_ disabling the plugin, after changing it and opening the session in kate there are also a bunch of other changes, because kate auto-update the file.
Comment 3 Christoph Cullmann 2012-10-31 23:47:48 UTC
Tried with current kate.git master, works for me.
If you know an other way to reproduce, please tell , sorry that I can't do more, code inspection shows no "obvious" errors, too.
Comment 4 Francesco Riosa 2012-11-01 01:38:38 UTC
cannot reproduce with kate 3.8.5 and kde 4.8.5, most files are now deleted tough