Summary: | Crashed on exit after opening many windows | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Brian Taylor <el.wubo> |
Component: | kwrite | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | CLOSED FIXED | ||
Severity: | crash | CC: | cuciferus, pa.casciano, Regnaron, uwolfer |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Brian Taylor
2008-03-31 21:42:22 UTC
The version was (kdebase) r792250 I just experienced the same crash after closing two kwrite windows very quickly after one another. The backtrace I got with kdelibs r794323 was: Application: KWrite (kwrite), signal SIGSEGV Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 0xb635f6d0 (LWP 8626)] [KCrash handler] #6 0x00000000 in ?? () #7 0xb7b24186 in qDeleteAll<QList<KPluginFactory*>::const_iterator> ( begin=@0xbfc97ee8, end=@0xbfc97ee4) at /usr/include/qt4/QtCore/qalgorithms.h:352 #8 0xb7b24203 in qDeleteAll<KTextEditorFactoryList> (c=@0x8072520) at /usr/include/qt4/QtCore/qalgorithms.h:360 #9 0xb7b21e75 in cleanupKTextEditorFactoryList () at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/interfaces/ktexteditor/ktexteditor.cpp:199 #10 0xb733f330 in qt_call_post_routines () at kernel/qcoreapplication.cpp:163 #11 0xb6903be7 in ~QApplication (this=0xbfc98268) at kernel/qapplication.cpp:932 #12 0xb79a6b5d in ~KApplication (this=0xbfc98268) at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:946 #13 0xb7f96d14 in kdemain (argc=2, argv=0xbfc98634) at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase-9999.4/apps/kwrite/kwritemain.cpp:786 #14 0x080487c2 in main (argc=135383376, argv=0x0) at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase_build/apps/kwrite/kwrite_dummy.cpp:3 #15 0xb659cfdc in __libc_start_main (main=0x80487a0 <main>, argc=2, ubp_av=0xbfc98634, init=0x80487f0 <__libc_csu_init>, fini=0x80487e0 <__libc_csu_fini>, rtld_fini=0xb7fad100 <_dl_fini>, stack_end=0xbfc9862c) at libc-start.c:229 #16 0x08048711 in _start () #0 0xffffe410 in __kernel_vsyscall () *** Bug 160326 has been marked as a duplicate of this bug. *** *** Bug 160657 has been marked as a duplicate of this bug. *** See my comment in #160657 for a way to reproduce it. SVN commit 795996 by staniek: KTextEditorFactoryList: make qAddPostRoutine play well with K_GLOBAL_STATIC. (like in KProtocolManagerPrivate) I've encountered a crash related to double deletion of the list's memory, on app's exit. The code is now cleaner too. Example: KWrite uses KTextEditor::EditorChooser::editor(), what in turn calls KTextEditor::editor("katepart") for each new editor window, always with the same part name. Solution: Use QSet (KTextEditorFactorySet) instead of QList to avoid multiple deletion of the same factory object. BUG:160183 M +13 -13 ktexteditor.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=795996 |