Version: (using KDE 4.3.4) OS: Linux Installed from: Debian testing/unstable Packages Kate accidentally crashes when I do the following: 1. Open Kate with a restored session (I have "load last-used session" setting on). 2. Close some open files using a keyboard shortcut. 3. Open file using a keyboard shortcut (it crashes before showing the open file dialog). This bug happens from time to time when different sets of files are open. I was not able to reproduce it on purpose, but it always happens again when I restart kate after a crash with the same session. Application: Kate (kdeinit4), signal: Segmentation fault The current source language is "auto; currently c". [Current thread is 1 (Thread 0x7fb30e358750 (LWP 3161))] Thread 2 (Thread 0x7fb2fab6e910 (LWP 4189)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007fb2fb2cc6a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fb2fb5aa2a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304 #2 0x00007fb2fb2cc6e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fb2fb5b836c) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438 #3 0x00007fb30b28b73a in start_thread (arg=<value optimized out>) at pthread_create.c:300 #4 0x00007fb30b56c69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fb30e358750 (LWP 3161)): [KCrash Handler] #5 QBasicAtomicInt::operator!= (this=0x1127c00, protocol=...) at /usr/include/qt4/QtCore/qbasicatomic.h:69 #6 QMap<QString, KSharedPtr<KProtocolInfo> >::detach (this=0x1127c00, protocol=...) at /usr/include/qt4/QtCore/qmap.h:172 #7 QMap<QString, KSharedPtr<KProtocolInfo> >::find (this=0x1127c00, protocol=...) at /usr/include/qt4/QtCore/qmap.h:565 #8 KProtocolInfoFactory::findProtocol (this=0x1127c00, protocol=...) at ../../kdecore/sycoca/kprotocolinfofactory.cpp:95 #9 0x00007fb30da3602f in KProtocolInfo::proxiedBy (_protocol=...) at ../../kdecore/sycoca/kprotocolinfo.cpp:361 #10 0x00007fb30cf68df8 in findProtocol (url=...) at ../../kio/kio/kprotocolmanager.cpp:610 #11 0x00007fb30cf69422 in KProtocolManager::supportsListing (url=...) at ../../kio/kio/kprotocolmanager.cpp:650 #12 0x00007fb30cf17078 in KDirListerCache::validUrl (this=<value optimized out>, lister=0x11b5940, url=...) at ../../kio/kio/kdirlister.cpp:321 #13 0x00007fb30cf23cd9 in KDirListerCache::listDir (this=0x132e300, lister=0x11b5940, _u=<value optimized out>, _keep=false, _reload=<value optimized out>) at ../../kio/kio/kdirlister.cpp:114 #14 0x00007fb2f97af968 in KFilePlacesItem (this=0x1409b90, manager=<value optimized out>, address=..., udi=<value optimized out>) at ../../kfile/kfileplacesitem.cpp:51 #15 0x00007fb2f97b0d1f in KFilePlacesModel::Private::loadBookmarkList (this=0x1159a00) at ../../kfile/kfileplacesmodel.cpp:433 #16 0x00007fb2f97b1fa0 in KFilePlacesModel::Private::_k_reloadBookmarks (this=0x1159a00) at ../../kfile/kfileplacesmodel.cpp:342 #17 0x00007fb2f97b3323 in KFilePlacesModel (this=0x144d340, parent=<value optimized out>) at ../../kfile/kfileplacesmodel.cpp:154 #18 0x00007fb2f97a89a0 in KFileWidget (this=0xda8720, _startDir=<value optimized out>, parent=<value optimized out>) at ../../kfile/kfilewidget.cpp:338 #19 0x00007fb2f9a09ae4 in KFileModule::createFileWidget (this=<value optimized out>, startDir=..., parent=0x7fffbb5ec550) at ../../kfile/kfilemodule.cpp:36 #20 0x00007fb30cff82f6 in KFileDialog (this=0x7fffbb5ec550, startDir=..., filter=..., parent=<value optimized out>, customWidget=<value optimized out>) at ../../kio/kfile/kfiledialog.cpp:238 #21 0x00007fb30cff3c79 in KEncodingFileDialog (this=0x7fffbb5ec550, startDir=<value optimized out>, encoding=..., filter=..., caption=..., type=KFileDialog::Opening, parent=0xd5df10) at ../../kio/kfile/kencodingfiledialog.cpp:42 #22 0x00007fb30cff4967 in KEncodingFileDialog::getOpenUrlsAndEncoding (encoding=..., startDir=..., filter=..., parent=<value optimized out>, caption=<value optimized out>) at ../../kio/kfile/kencodingfiledialog.cpp:159 #23 0x00007fb3002487ce in KateViewManager::slotDocumentOpen (this=0xf255a0) at ../../../kate/app/kateviewmanager.cpp:178 #24 0x00007fb300248d14 in KateViewManager::qt_metacall (this=0xf255a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffbb5ec810) at ./kateviewmanager.moc:123 #25 0x00007fb30de6bc4f in QMetaObject::activate (sender=0xf713e0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xf27ae8) at kernel/qobject.cpp:3293 #26 0x00007fb30bcf6702 in QAction::triggered (this=0x1127c00, _t1=false) at .moc/release-shared/moc_qaction.cpp:263 #27 0x00007fb30bcf877b in QAction::activate (this=0xf713e0, event=<value optimized out>) at kernel/qaction.cpp:1255 #28 0x00007fb30bcfa087 in QAction::event (this=0x1127c00, e=<value optimized out>) at kernel/qaction.cpp:1181 #29 0x00007fb30c931c9d in KAction::event (this=0x1127c00, event=0x7fffbb5ece80) at ../../kdeui/actions/kaction.cpp:88 #30 0x00007fb30bcfc8fc in QApplicationPrivate::notify_helper (this=0xaeed50, receiver=0xf713e0, e=0x7fffbb5ece80) at kernel/qapplication.cpp:4300 #31 0x00007fb30bd02ddb in QApplication::notify (this=0x7fffbb5ee450, receiver=0xf713e0, e=0x7fffbb5ece80) at kernel/qapplication.cpp:4183 #32 0x00007fb30ca02de6 in KApplication::notify (this=0x7fffbb5ee450, receiver=0xf713e0, event=0x7fffbb5ece80) at ../../kdeui/kernel/kapplication.cpp:302 #33 0x00007fb30de58f1c in QCoreApplication::notifyInternal (this=0x7fffbb5ee450, receiver=0xf713e0, event=0x7fffbb5ece80) at kernel/qcoreapplication.cpp:704 #34 0x00007fb30bd38536 in QCoreApplication::sendEvent (this=<value optimized out>, e=0x7fffbb5ed480) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #35 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffbb5ed480) at kernel/qshortcutmap.cpp:879 #36 0x00007fb30bd3a347 in QShortcutMap::tryShortcutEvent (this=0xaeee78, o=<value optimized out>, e=0x7fffbb5ed480) at kernel/qshortcutmap.cpp:364 #37 0x00007fb30bd04948 in QApplication::notify (this=0x7fffbb5ee450, receiver=0xe0f610, e=0x7fffbb5ed480) at kernel/qapplication.cpp:3746 #38 0x00007fb30ca02de6 in KApplication::notify (this=0x7fffbb5ee450, receiver=0xe0f610, event=0x7fffbb5ed480) at ../../kdeui/kernel/kapplication.cpp:302 #39 0x00007fb30de58f1c in QCoreApplication::notifyInternal (this=0x7fffbb5ee450, receiver=0xe0f610, event=0x7fffbb5ed480) at kernel/qcoreapplication.cpp:704 #40 0x00007fb30bda711a in QKeyMapper::sendKeyEvent (keyWidget=0xe0f610, grab=<value optimized out>, type=QEvent::KeyPress, code=79, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, nativeScanCode=32, nativeVirtualKey=111, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1861 #41 0x00007fb30bda9671 in QKeyMapperPrivate::translateKeyEvent (this=0xb1cab0, keyWidget=0xe0f610, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1831 #42 0x00007fb30bd80d94 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffbb5ee030) at kernel/qapplication_x11.cpp:3394 #43 0x00007fb30bdac7e2 in x11EventSourceDispatch (s=0xaf2a50, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146 #44 0x00007fb30a7c06c2 in g_main_dispatch (context=0xaf1920) at /tmp/buildd/glib2.0-2.24.0/glib/gmain.c:1960 #45 IA__g_main_context_dispatch (context=0xaf1920) at /tmp/buildd/glib2.0-2.24.0/glib/gmain.c:2513 #46 0x00007fb30a7c4538 in g_main_context_iterate (context=0xaf1920, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /tmp/buildd/glib2.0-2.24.0/glib/gmain.c:2591 #47 0x00007fb30a7c46ec in IA__g_main_context_iteration (context=0xaf1920, may_block=1) at /tmp/buildd/glib2.0-2.24.0/glib/gmain.c:2654 #48 0x00007fb30de82373 in QEventDispatcherGlib::processEvents (this=0xa6f7a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #49 0x00007fb30bdac3de in QGuiEventDispatcherGlib::processEvents (this=0x1127c00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #50 0x00007fb30de57842 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #51 0x00007fb30de57c1c in QEventLoop::exec (this=0x7fffbb5ee350, flags=) at kernel/qeventloop.cpp:201 #52 0x00007fb30de5b95b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981 #53 0x00007fb30048aced in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../kate/app/katemain.cpp:257 #54 0x0000000000406e9e in launch (argc=3, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=24, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40a057 "0") at ../../kinit/kinit.cpp:677 #55 0x0000000000407aad in handle_launcher_request (sock=7, who=<value optimized out>) at ../../kinit/kinit.cpp:1169 #56 0x0000000000407f91 in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1362 #57 0x00000000004086c6 in main (argc=2, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1793 The current source language is "auto; currently asm". The current source language is "auto; currently c".
*** Bug 238002 has been marked as a duplicate of this bug. ***
opening file from FileZilla: ------------------ Application: Kate (kate), signal: Segmentation fault [KCrash Handler] #5 0x00007fa6a41ce048 in QString::operator== () from /usr/lib64/libQtCore.so.4 #6 0x00007fa6a0548df6 in KDirWatchPrivate::Entry::findSubEntry (this=<value optimized out>, path=@0x7ffff59794a0) at /usr/src/debug/kdelibs-4.3.5/kio/kio/kdirwatch_p.h:157 #7 0x00007fa6a0543174 in KDirWatchPrivate::checkFAMEvent (this=0x18e4e50, fe=<value optimized out>) at /usr/src/debug/kdelibs-4.3.5/kio/kio/kdirwatch.cpp:1458 #8 0x00007fa6a0543663 in KDirWatchPrivate::famEventReceived (this=0x18e4e50) at /usr/src/debug/kdelibs-4.3.5/kio/kio/kdirwatch.cpp:1374 #9 0x00007fa6a0548b0c in KDirWatchPrivate::qt_metacall (this=0x18e4e50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff5979760) at /usr/src/debug/kdelibs-4.3.5/build/kio/kdirwatch_p.moc:74 #10 0x00007fa6a428888c in QMetaObject::activate () from /usr/lib64/libQtCore.so.4 #11 0x00007fa6a42beade in QSocketNotifier::activated () from /usr/lib64/libQtCore.so.4 #12 0x00007fa6a428d223 in QSocketNotifier::event () from /usr/lib64/libQtCore.so.4 #13 0x00007fa6a568b12c in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4 #14 0x00007fa6a56923fe in QApplication::notify () from /usr/lib64/libQtGui.so.4 #15 0x00007fa6a49e73f6 in KApplication::notify (this=0x7ffff597a000, receiver=0x18e42a0, event=0x7ffff5979ca0) at /usr/src/debug/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302 #16 0x00007fa6a42736ac in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4 #17 0x00007fa6a429bfca in ?? () from /usr/lib64/libQtCore.so.4 #18 0x00007fa6a2e704ce in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #19 0x00007fa6a2e73e98 in ?? () from /usr/lib64/libglib-2.0.so.0 #20 0x00007fa6a2e73fc0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #21 0x00007fa6a429bc73 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4 #22 0x00007fa6a571e64e in ?? () from /usr/lib64/libQtGui.so.4 #23 0x00007fa6a4271fe2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4 #24 0x00007fa6a42723b4 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4 #25 0x00007fa6a4274569 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4 #26 0x00007fa6a63ffa5d in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdesdk-4.3.5/kate/app/katemain.cpp:257 #27 0x00007fa6a60bb91d 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=0x7ffff597b218) at libc-start.c:220 #28 0x0000000000400609 in _start () at ../sysdeps/x86_64/elf/start.S:113
[Comment from a bug triager] The second backtrace is a different crash, fixed since KDE SC 4.4.1: bug 224229. Regards
Dmitry: Can you still reproduce with KDE 4.6?
Closing for lack of feedback, probably solved since quite some time. Please feel free to reopen this report with a new backtrace if you can reproduce this with KDE 4..0 or newer.