Bug 203774 - [steps] Kate crashes when reloading a quick-saved session with re-ordered (by URL) remote documents
Summary: [steps] Kate crashes when reloading a quick-saved session with re-ordered (by...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: VHI crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: testcase
: 190399 209641 228275 230182 230708 235234 236140 237072 238568 249703 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-14 00:39 UTC by Marcel Partap
Modified: 2010-10-23 18:16 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.24 KB, text/plain)
2010-01-05 00:20 UTC, Marcel Partap
Details
katesession that crashes kate. Ordered URLs. (16.40 KB, text/plain)
2010-05-26 01:31 UTC, Marcos Raul Carot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Partap 2009-08-14 00:39:33 UTC
Application: kate (3.3.64)
KDE Version: 4.3.64 (KDE 4.3.64 (KDE 4.4 >= 20090812)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-rc5-00513-ga3620f7-dirty x86_64
Distribution: "Gentoo Base System release 2.0.1"

What I was doing when the application crashed:
Wow the last time i had a crash in kate must be ages ago. Might be ...mhh wait.
There are empty entries in the document list? And switching to any list sorting crashes.. It all started when i was trying out the different modes... mh. What is wrong here...
wow wow cycling through those modes more of the existing file names turn empty, then the crash. Huh?

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  KParts::ReadOnlyPart::url (this=0x0) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kparts/part.cpp:465
#6  0x00007fad8455425b in KateDocManager::data (this=<value optimized out>, index=<value optimized out>, role=<value optimized out>)
    at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/katedocmanager.cpp:132
#7  0x00007fad8458947f in KateViewDocumentProxyModel::data (this=0x7660720, index=@0x7fffb3cd3b20, role=35)
    at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/kateviewdocumentproxymodel.cpp:319
#8  0x00007fad8458ae18 in KateViewDocumentProxyModel::sort (this=0x7660720) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/kateviewdocumentproxymodel.cpp:621
#9  0x00007fad84558fc6 in KateFileList::setSortRole (this=0x76577f0, role=35) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/katefilelist.cpp:123
#10 0x00007fad8455a222 in KateFileListConfigPage::apply (this=0x7e10b20) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/katefilelist.cpp:284
#11 0x00007fad8454c466 in KateConfigDialog::slotApply (this=0x77cb1b0) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/kateconfigdialog.cpp:381
#12 0x00007fad8454c5a9 in KateConfigDialog::slotOk (this=0x7fffb3cd3810) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/kateconfigdialog.cpp:341
#13 0x00007fad8454c60d in KateConfigDialog::qt_metacall (this=0x77cb1b0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=<value optimized out>)
    at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate_build/kate/app/kateconfigdialog.moc:69
#14 0x00007fad90dd18fc in QMetaObject::activate (sender=0x77cb1b0, from_signal_index=<value optimized out>, to_signal_index=45, argv=0x732ac8) at kernel/qobject.cpp:3185
#15 0x00007fad8f1731d8 in KDialog::slotButtonClicked (this=0x77cb1b0, button=4) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kdeui/dialogs/kdialog.cpp:854
#16 0x00007fad8f174bc5 in KDialog::qt_metacall (this=0x77cb1b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb3cd4340)
    at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm_build/kdeui/kdialog.moc:185
#17 0x00007fad8f237856 in KPageDialog::qt_metacall (this=0x7fffb3cd3810, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x732ac8)
    at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm_build/kdeui/kpagedialog.moc:65
#18 0x00007fad8454c5dd in KateConfigDialog::qt_metacall (this=0x7fffb3cd3810, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x732ac8)
    at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate_build/kate/app/kateconfigdialog.moc:64
#19 0x00007fad90dd18fc in QMetaObject::activate (sender=0xddd2d8, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x732ac8) at kernel/qobject.cpp:3185
#20 0x00007fad90dd493e in QSignalMapper::mapped (this=0x7fffb3cd3810, _t1=4) at .moc/debug-shared/moc_qsignalmapper.cpp:96
#21 0x00007fad90dd49e0 in QSignalMapper::map (this=0xddd2d8, sender=0x7e6d8c0) at kernel/qsignalmapper.cpp:266
#22 0x00007fad90dd5de0 in QSignalMapper::qt_metacall (this=0xddd2d8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb3cd44d0) at .moc/debug-shared/moc_qsignalmapper.cpp:82
#23 0x00007fad90dd18fc in QMetaObject::activate (sender=0x7e6d8c0, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x732ac8) at kernel/qobject.cpp:3185
#24 0x00007fad8e761de7 in QAbstractButton::clicked (this=0x7fffb3cd3810, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:201
#25 0x00007fad8e4c7a3b in QAbstractButtonPrivate::emitClicked (this=0x7dcb9e0) at widgets/qabstractbutton.cpp:546
#26 0x00007fad8e4c937b in QAbstractButtonPrivate::click (this=0x7dcb9e0) at widgets/qabstractbutton.cpp:539
#27 0x00007fad8e4c95cd in QAbstractButton::mouseReleaseEvent (this=0x7e6d8c0, e=0x7fffb3cd4f40) at widgets/qabstractbutton.cpp:1118
#28 0x00007fad8e1bb26a in QWidget::event (this=0x7e6d8c0, event=0x7fffb3cd4f40) at kernel/qwidget.cpp:7532
#29 0x00007fad8e162c1d in QApplicationPrivate::notify_helper (this=0x68b820, receiver=0x7e6d8c0, e=0x7fffb3cd4f40) at kernel/qapplication.cpp:4104
#30 0x00007fad8e16dc8d in QApplication::notify (this=0x7fffb3cd7940, receiver=0x7e6d8c0, e=0x7fffb3cd4f40) at kernel/qapplication.cpp:3763
#31 0x00007fad8f20b4bb in KApplication::notify (this=0x7fffb3cd7940, receiver=0x7e6d8c0, event=0x7fffb3cd4f40) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kdeui/kernel/kapplication.cpp:302
#32 0x00007fad90dbc643 in QCoreApplication::notifyInternal (this=0x7fffb3cd7940, receiver=0x7e6d8c0, event=0x7fffb3cd4f40) at kernel/qcoreapplication.cpp:625
#33 0x00007fad8e16cd11 in QApplicationPrivate::sendMouseEvent (receiver=0x7e6d8c0, event=0x7fffb3cd4f40, alienWidget=0x7e6d8c0, nativeWidget=0x77cb1b0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fad8eb2e170, spontaneous=true) at src/corelib/kernel/qcoreapplication.h:213
#34 0x00007fad8e1cf26b in QETWidget::translateMouseEvent (this=0x77cb1b0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4365
#35 0x00007fad8e1cde45 in QApplication::x11ProcessEvent (this=0x7fffb3cd7940, event=0x7fffb3cd58f0) at kernel/qapplication_x11.cpp:3504
#36 0x00007fad8e1f3674 in x11EventSourceDispatch (s=0x68f710, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#37 0x00007fad8cbea771 in IA__g_main_context_dispatch (context=0x68e520) at gmain.c:1824
#38 0x00007fad8cbede28 in g_main_context_iterate (context=0x68e520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2455
#39 0x00007fad8cbedfec in IA__g_main_context_iteration (context=0x68e520, may_block=1) at gmain.c:2518
#40 0x00007fad90de3e2f in QEventDispatcherGlib::processEvents (this=0x614240, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:328
#41 0x00007fad8e1f2edf in QGuiEventDispatcherGlib::processEvents (this=0x7fffb3cd3810, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#42 0x00007fad90dbb302 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1278387232}) at kernel/qeventloop.cpp:149
#43 0x00007fad90dbb49c in QEventLoop::exec (this=0x7fffb3cd5c30, flags={i = -1278387120}) at kernel/qeventloop.cpp:197
#44 0x00007fad8e5ce7b9 in QDialog::exec (this=0x77cb1b0) at dialogs/qdialog.cpp:498
#45 0x00007fad8455d1fa in KateMainWindow::slotConfigure (this=0x8c1a40) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/katemainwindow.cpp:723
#46 0x00007fad8456593d in KateMainWindow::qt_metacall (this=0x8c1a40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb3cd5de0)
    at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate_build/kate/app/katemainwindow.moc:161
#47 0x00007fad90dd18fc in QMetaObject::activate (sender=0x7661e00, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x732ac8) at kernel/qobject.cpp:3185
#48 0x00007fad8e15d517 in QAction::triggered (this=0x7fffb3cd3810, _t1=false) at .moc/debug-shared/moc_qaction.cpp:247
#49 0x00007fad8e15e490 in QAction::activate (this=0x7661e00, event=<value optimized out>) at kernel/qaction.cpp:1219
#50 0x00007fad8e545064 in QMenuPrivate::activateCausedStack (this=0x76b8220, causedStack=@0x7fffb3cd5f00, action=0x7661e00, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:958
#51 0x00007fad8e54a33b in QMenuPrivate::activateAction (this=0x76b8220, action=0x7661e00, action_e=124486112, self=true) at widgets/qmenu.cpp:1051
#52 0x00007fad8f2e11a1 in KMenu::mouseReleaseEvent (this=0x76b81e0, e=0x7fffb3cd6b40) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kdeui/widgets/kmenu.cpp:456
#53 0x00007fad8e1bb26a in QWidget::event (this=0x76b81e0, event=0x7fffb3cd6b40) at kernel/qwidget.cpp:7532
#54 0x00007fad8e54b0f3 in QMenu::event (this=0x76b81e0, e=0x7fffb3cd6b40) at widgets/qmenu.cpp:2334
#55 0x00007fad8e162c1d in QApplicationPrivate::notify_helper (this=0x68b820, receiver=0x76b81e0, e=0x7fffb3cd6b40) at kernel/qapplication.cpp:4104
#56 0x00007fad8e16dc8d in QApplication::notify (this=0x7fffb3cd7940, receiver=0x76b81e0, e=0x7fffb3cd6b40) at kernel/qapplication.cpp:3763
#57 0x00007fad8f20b4bb in KApplication::notify (this=0x7fffb3cd7940, receiver=0x76b81e0, event=0x7fffb3cd6b40) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kdeui/kernel/kapplication.cpp:302
#58 0x00007fad90dbc643 in QCoreApplication::notifyInternal (this=0x7fffb3cd7940, receiver=0x76b81e0, event=0x7fffb3cd6b40) at kernel/qcoreapplication.cpp:625
#59 0x00007fad8e16cd11 in QApplicationPrivate::sendMouseEvent (receiver=0x76b81e0, event=0x7fffb3cd6b40, alienWidget=0x0, nativeWidget=0x76b81e0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fad8eb2e170, spontaneous=true) at src/corelib/kernel/qcoreapplication.h:213
#60 0x00007fad8e1cf41a in QETWidget::translateMouseEvent (this=0x76b81e0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4299
#61 0x00007fad8e1cde45 in QApplication::x11ProcessEvent (this=0x7fffb3cd7940, event=0x7fffb3cd74f0) at kernel/qapplication_x11.cpp:3504
#62 0x00007fad8e1f3674 in x11EventSourceDispatch (s=0x68f710, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#63 0x00007fad8cbea771 in IA__g_main_context_dispatch (context=0x68e520) at gmain.c:1824
#64 0x00007fad8cbede28 in g_main_context_iterate (context=0x68e520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2455
#65 0x00007fad8cbedfec in IA__g_main_context_iteration (context=0x68e520, may_block=1) at gmain.c:2518
#66 0x00007fad90de3e2f in QEventDispatcherGlib::processEvents (this=0x614240, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:328
#67 0x00007fad8e1f2edf in QGuiEventDispatcherGlib::processEvents (this=0x7fffb3cd3810, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#68 0x00007fad90dbb302 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1278380064}) at kernel/qeventloop.cpp:149
#69 0x00007fad90dbb49c in QEventLoop::exec (this=0x7fffb3cd7820, flags={i = -1278379984}) at kernel/qeventloop.cpp:197
#70 0x00007fad90dbfe46 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:907
#71 0x00007fad847aee25 in kdemain (argc=1, argv=0x662260) at /mnt/sda3/var/tmp/paludis/kde-base-kate-scm/work/kate/kate/app/katemain.cpp:250
#72 0x000000000040786f in launch (argc=1, _name=0x656c78 "/usr/kde/svn/bin/kate", args=<value optimized out>, cwd=0x0, envc=1, envs=0x656ca2 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x656cab "localhost;1250202623;238070;7241_TIME29067757") at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kinit/kinit.cpp:705
#73 0x00000000004080a2 in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kinit/kinit.cpp:1197
#74 0x00000000004085a9 in handle_requests (waitForPid=0) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kinit/kinit.cpp:1390
#75 0x0000000000409381 in main (argc=4, argv=0x7fffb3cd9918, envp=0x7fffb3cd9940) at /usr/src/debug/kde-base/kdelibs-scm/kdelibs-scm/kinit/kinit.cpp:1825

Reported using DrKonqi
Comment 1 Dario Andres 2009-08-16 21:00:04 UTC
Bug 170282 / bug 173805 are related. Can you check if they are the same ?
Thanks
Comment 2 Marcel Partap 2010-01-05 00:20:27 UTC
Created attachment 39564 [details]
New crash information added by DrKonqi

@dario: the two bugs mentioned are both closed while the problem still persists. Every time i try to reopen kate with the last session it crashes, i have to use kate --startanon to be able to edit my stuff...
just tried deleting the [Filelist] section from my .kde4/share/config/katerc.. on startup kate then asks for a session to open but if i do that, almost all entries in the list have no text and switching the sort order in the document list settings brings the thing down again. This is pretty bad, basically sessions don't work ATM... *g
Comment 3 Dario Andres 2010-01-05 00:24:29 UTC
Bug 170282 is closed because no one else gave more information or new cases of the crash... so it may still be related. In any case, this report is going to remain opened as it has clear and new information.
The new backtrace is a bit different but it is still related. 
Thanks
Comment 4 Marcel Partap 2010-01-05 12:49:59 UTC
Just tried to see if the problem would go away starting from a new config, so i started kate as root after doing a
find ~/.kde4 -name \*kate\* -exec rm -rfv {} \;
and at first, everything seemed to work and i was close to marking this bug fixed. Opening multiple documents via remote ioslaves and switching the document list sorting, restoring the session and so on worked.. then i triggered the booby trap..
i think we have a test case here:
1) create a session with files from remote kio and save it
2) change the document list sort order
3) quick-open the same session => boom
4) voila, your session is corrupted and crashes everytime you load it

Application: Kate (kate), signal: Segmentation fault
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f6954f62760 (LWP 28658))]

Thread 2 (Thread 0x7f6947505710 (LWP 28660)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f6947633c26 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f69478f81c0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f6947633c49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f694790628c) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f6951ab38b4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f6951074add in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6954f62760 (LWP 28658)):
[KCrash Handler]
#5  0x00007f6954978429 in KateViewDocumentProxyModel::sort (this=0xbfaa00) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateviewdocumentproxymodel.cpp:645
#6  0x00007f6954978f45 in KateViewDocumentProxyModel::readSessionConfig (this=0xbfaa00, config=<value optimized out>, name=<value optimized out>)
    at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/kateviewdocumentproxymodel.cpp:667
#7  0x00007f695494b8aa in KateMainWindow::readProperties (this=0xb57b70, config=...) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katemainwindow.cpp:956
#8  0x00007f69549650df in KateSessionManager::activateSession (this=<value optimized out>, session=<value optimized out>, closeLast=<value optimized out>, saveLast=<value optimized out>, 
    loadNew=<value optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katesession.cpp:345
#9  0x00007f6954969d1a in KateSessionsAction::openSession (this=<value optimized out>, action=<value optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katesession.cpp:1014
#10 0x00007f6954969db9 in KateSessionsAction::qt_metacall (this=0xc0ba10, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa0778050)
    at /usr/src/debug/kde-base/kate-9999/kate-9999_build/kate/app/katesession.moc:364
#11 0x00007f6951e46feb in QMetaObject::activate (sender=0xc0cc00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3294
#12 0x00007f6952a0e3cf in QActionGroup::triggered (this=0x7f6951302e60, _t1=0x1619820) at .moc/release-shared/moc_qactiongroup.cpp:146
#13 0x00007f6952a0eb6f in QActionGroupPrivate::_q_actionTriggered (this=<value optimized out>) at kernel/qactiongroup.cpp:93
#14 0x00007f6952a0ed91 in QActionGroup::qt_metacall (this=0xc0cc00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa07781b0) at .moc/release-shared/moc_qactiongroup.cpp:101
#15 0x00007f6951e46feb in QMetaObject::activate (sender=0x1619820, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3294
#16 0x00007f6952a0a872 in QAction::triggered (this=0x7f6951302e60, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#17 0x00007f6952a0c503 in QAction::activate (this=0x1619820, event=<value optimized out>) at kernel/qaction.cpp:1245
#18 0x00007f6952dde1c3 in QMenuPrivate::activateCausedStack (this=0xc0c080, causedStack=..., action=0x1619820, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:994
#19 0x00007f6952de182c in QMenuPrivate::activateAction (this=0xc0c080, action=0x1619820, action_e=1396413120, self=<value optimized out>) at widgets/qmenu.cpp:1086
#20 0x00007f695393957e in KMenu::mouseReleaseEvent (this=0xc0c020, e=0x0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/widgets/kmenu.cpp:469
#21 0x00007f6952a64321 in QWidget::event (this=0xc0c020, event=0x7fffa0778fe0) at kernel/qwidget.cpp:7974
#22 0x00007f6952de3c13 in QMenu::event (this=0xc0c020, e=0x7fffa0778fe0) at widgets/qmenu.cpp:2406
#23 0x00007f6952a0fa6c in QApplicationPrivate::notify_helper (this=0x631210, receiver=0xc0c020, e=0x7fffa0778fe0) at kernel/qapplication.cpp:4242
#24 0x00007f6952a18bac in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fffa0778fe0) at kernel/qapplication.cpp:3822
#25 0x00007f695385c748 in KApplication::notify (this=0x7fffa0779bf0, receiver=0xc0c020, event=0x7fffa0778fe0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#26 0x00007f6951e3432b in QCoreApplication::notifyInternal (this=0x7fffa0779bf0, receiver=0xc0c020, event=0x7fffa0778fe0) at kernel/qcoreapplication.cpp:704
#27 0x00007f6952a17c57 in QCoreApplication::sendEvent (receiver=<value optimized out>, event=0x7fffa0778fe0, alienWidget=0x0, nativeWidget=0xc0c020, buttonDown=0x2c59, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:215
#28 QApplicationPrivate::sendMouseEvent (receiver=<value optimized out>, event=0x7fffa0778fe0, alienWidget=0x0, nativeWidget=0xc0c020, buttonDown=0x2c59, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2956
#29 0x00007f6952a87d4d in QETWidget::translateMouseEvent (this=0xc0c020, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#30 0x00007f6952a86a99 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffa0779780) at kernel/qapplication_x11.cpp:3501
#31 0x00007f6952aace14 in x11EventSourceDispatch (s=0x6344b0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007f694d54a7e3 in g_main_dispatch (context=0x633840) at gmain.c:1960
#33 IA__g_main_context_dispatch (context=0x633840) at gmain.c:2513
#34 0x00007f694d54e010 in g_main_context_iterate (context=0x633840, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#35 0x00007f694d54e128 in IA__g_main_context_iteration (context=0x633840, may_block=1) at gmain.c:2654
#36 0x00007f6951e5d7be in QEventDispatcherGlib::processEvents (this=0x62fdb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#37 0x00007f6952aac766 in QGuiEventDispatcherGlib::processEvents (this=0x7f6951302e60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#38 0x00007f6951e32c52 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#39 0x00007f6951e3301d in QEventLoop::exec (this=0x7fffa0779ab0, flags=) at kernel/qeventloop.cpp:201
#40 0x00007f6951e36cfb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#41 0x00007f6954ba119d in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kde-base/kate-9999/kate-9999/kate/app/katemain.cpp:377
#42 0x00007f6950fc1d2d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffa077b178) at libc-start.c:226
#43 0x0000000000400869 in _start ()

i compared the kate session file before and after, also katerc and tracked the problem down to the SortRole entries which occur in both. If they mismatch, havoc! Would love to hand over a ready made fix but SERIOUSLY have to learn for my exams now X/
Comment 5 Marcel Partap 2010-01-05 13:01:52 UTC
Oha!
sed -i '/SortRole/d' ~/.kde4/share/apps/kate/sessions/*
fixed all my sessions! Not gonna fiddle with that document sorter so soon again.. Hooray for boobies ;)
Comment 6 Dario Andres 2010-01-05 13:07:05 UTC
Thanks for the detailed information. I haven't check it but I guess it is going to be useful to the Kate developers.
Comment 7 Dominik Haumann 2010-02-21 00:07:15 UTC
*** Bug 209641 has been marked as a duplicate of this bug. ***
Comment 8 Dominik Haumann 2010-03-11 18:07:56 UTC
*** Bug 228275 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2010-03-11 18:09:27 UTC
*** Bug 230182 has been marked as a duplicate of this bug. ***
Comment 10 Dominik Haumann 2010-03-12 18:55:20 UTC
related: bug #230426
Comment 11 Dominik Haumann 2010-04-24 10:07:28 UTC
*** Bug 235234 has been marked as a duplicate of this bug. ***
Comment 12 Dominik Haumann 2010-05-08 01:03:06 UTC
might be fixed in gitorious with this commit (see bug# 213014):
http://gitorious.org/kate/kate/commit/f6702b275e3f50f4cbe6dbf8755db36fef5b7319

Can you build Kate from gitorious and try again?
http://gitorious.org/kate/pages/Building%20Kate
Comment 13 Colin Guthrie 2010-05-09 10:34:28 UTC
As mentioned in bug #213014, I now seem to get the backtrace reported here with the patch from comment #12 applied, so sadly I don't think this is solved by that commit :(

(As mentioned on bug #213014 I only applied this one patch on top of a 4.4.3 build however, so if a full build is needed, I can take a look).
Comment 14 Dominik Haumann 2010-05-26 00:23:53 UTC
Btw, can you please attach the .katesession file that makes Kate crash? You can find it in ~/.kde4/share/apps/kate/sessions/ (or maybe ~/.kde/... without the 4).
Comment 15 Marcos Raul Carot 2010-05-26 01:31:27 UTC
Created attachment 43895 [details]
katesession that crashes kate. Ordered URLs.
Comment 16 Dominik Haumann 2010-05-26 09:08:37 UTC
Can reproduce now, thanks a lot Marcos!
Comment 17 Dominik Haumann 2010-05-26 23:46:59 UTC
SVN commit 1130965 by dhaumann:

fix crash in sort method of document sort list proxy model for KDE >= 4.4

BUG: 220308
BUG: 203774


 M  +1 -1      kateviewdocumentproxymodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130965
Comment 18 Dominik Haumann 2010-05-26 23:51:52 UTC
fixed for KDE 4.4.4 and in gitorious/trunk. You can test this if you update your gitorious clone with git pull and then recompile.
Comment 19 Dominik Haumann 2010-05-26 23:52:14 UTC
*** Bug 220308 has been marked as a duplicate of this bug. ***
Comment 20 Dominik Haumann 2010-05-27 00:12:15 UTC
*** Bug 230708 has been marked as a duplicate of this bug. ***
Comment 21 Dominik Haumann 2010-05-27 00:14:28 UTC
*** Bug 238568 has been marked as a duplicate of this bug. ***
Comment 22 Dominik Haumann 2010-05-27 00:14:45 UTC
*** Bug 237072 has been marked as a duplicate of this bug. ***
Comment 23 Dominik Haumann 2010-05-27 00:15:15 UTC
*** Bug 236140 has been marked as a duplicate of this bug. ***
Comment 24 Christoph Cullmann 2010-05-29 16:47:03 UTC
SVN commit 1132057 by cullmann:

dhaumann:
    fix crash in sort method of document sort list proxy model for KDE >= 4.4
    
BUG: 220308
BUG: 203774


 M  +1 -1      kateviewdocumentproxymodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1132057
Comment 25 Dominik Haumann 2010-06-14 01:18:54 UTC
*** Bug 190399 has been marked as a duplicate of this bug. ***
Comment 26 Christoph Feck 2010-10-23 18:16:48 UTC
*** Bug 249703 has been marked as a duplicate of this bug. ***