Bug 144076

Summary: kate crashes on exit if Session Exit=ask is set
Product: [Applications] kate Reporter: Marcel Partap <mpartap>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marcel Partap 2007-04-11 15:50:52 UTC
Version:           2.5.6 (using KDE 3.5.6, Gentoo)
Compiler:          Target: x86_64-pc-linux-gnu
OS:                Linux (x86_64) release 2.6.20-gentoo-r4

Strange but true, for me Kate crashes reproducibly if "Behaviour on Application Exit or Session Switch" in the sessions settings is set to "Ask user", no matter if I click yes or no. I have deleted the config files to test for this and it nails down to exactly that setting. Strange that noone else is experiencing this? I am using 3.5SVN with current qt-copy..
Obviously my backtrace is of little use as I have not compiled with debug symbols, but maybe it gives a hint.
[KCrash handler]
#5  0x00002b9eacfbd885 in raise () from /lib/libc.so.6
#6  0x00002b9eacfbeb3e in abort () from /lib/libc.so.6
#7  0x00002b9eacff3957 in ?? () from /lib/libc.so.6
#8  0x00002b9eacff8a4d in ?? () from /lib/libc.so.6
#9  0x00002b9eacffa076 in free () from /lib/libc.so.6
#10 0x00002b9ea998279e in KMessageBox::createKMessageBox ()
   from /usr/kde/devel/lib64/libkdeui.so.4
#11 0x00002b9ea9983116 in KMessageBox::createKMessageBox ()
   from /usr/kde/devel/lib64/libkdeui.so.4
#12 0x00002b9ead927221 in KateSessionManager::saveActiveSession ()
   from /usr/kde/devel/lib64/libkateinterfaces.so.0
#13 0x00002b9ead904fd8 in KateMainWindow::queryClose ()
   from /usr/kde/devel/lib64/libkateinterfaces.so.0
#14 0x00002b9ea99442c2 in KMainWindow::closeEvent ()
   from /usr/kde/devel/lib64/libkdeui.so.4
#15 0x00002b9eaac0fac1 in QWidget::event ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#16 0x00002b9eaacba7a5 in QMainWindow::event ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#17 0x00002b9ead90258f in KateMainWindow::event ()
   from /usr/kde/devel/lib64/libkateinterfaces.so.0
#18 0x00002b9eaab87605 in QApplication::internalNotify ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#19 0x00002b9eaab88207 in QApplication::notify ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#20 0x00002b9ea9ef963e in KApplication::notify ()
   from /usr/kde/devel/lib64/libkdecore.so.4
#21 0x00002b9eaac10664 in QWidget::close ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#22 0x00002b9eaab1f6bf in QETWidget::translateCloseEvent ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#23 0x00002b9eaab2197b in QApplication::x11ClientMessage ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#24 0x00002b9eaab2e21a in QApplication::x11ProcessEvent ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#25 0x00002b9eaab3d02f in QEventLoop::processEvents ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#26 0x00002b9eaab9bd52 in QEventLoop::enterLoop ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#27 0x00002b9eaab9bc02 in QEventLoop::exec ()
   from /usr/qt/devel/lib64/libqt-mt.so.3
#28 0x00002b9ead77294d in kdemain ()
   from /usr/kde/devel/lib64/libkdeinit_kate.so
#29 0x0000000000407736 in ?? ()
#30 0x0000000000408082 in ?? ()
#31 0x0000000000408482 in ?? ()
#32 0x0000000000409483 in ?? ()
#33 0x00002b9eacfab374 in __libc_start_main () from /lib/libc.so.6
#34 0x0000000000405109 in ?? ()
#35 0x00007fff01abfaa8 in ?? ()
#36 0x0000000000000000 in ?? ()
Comment 1 Simon Oosthoek 2007-06-24 14:31:30 UTC
I can confirm this for 2.5.7 on kde 3.5.7 (using ubuntu feisty packages)

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1235117856 (LWP 27857)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb7d7edf0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7d80641 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7db49bb in ?? () from /lib/tls/i686/cmov/libc.so.6
#10 0x0000000b in ?? ()
#11 0xbfed5b80 in ?? ()
#12 0x00000400 in ?? ()
#13 0x0831ec28 in ?? ()
#14 0xb7e7b7a8 in ?? () from /lib/tls/i686/cmov/libc.so.6
#15 0x00000017 in ?? ()
#16 0xbfed7998 in ?? ()
#17 0x00000004 in ?? ()
#18 0xb7e7b7c1 in ?? () from /lib/tls/i686/cmov/libc.so.6
#19 0x00000002 in ?? ()
#20 0xb7e787d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#21 0x00000017 in ?? ()
#22 0xb7e7b7c5 in ?? () from /lib/tls/i686/cmov/libc.so.6
#23 0x00000004 in ?? ()
#24 0xbfed60fb in ?? ()
#25 0x00000008 in ?? ()
#26 0xb7e7b7cb in ?? () from /lib/tls/i686/cmov/libc.so.6
#27 0x00000005 in ?? ()
#28 0x0000007e in ?? ()
#29 0xb6fb50aa in QGDict::look_ptr () from /usr/lib/libqt-mt.so.3
#30 0xb7dbc7cd in ?? () from /lib/tls/i686/cmov/libc.so.6
#31 0x00000002 in ?? ()
#32 0xb7e7b7a8 in ?? () from /lib/tls/i686/cmov/libc.so.6
#33 0xbfed7998 in ?? ()
#34 0xb7e787d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#35 0xbfed60fb in ?? ()
#36 0x08312a98 in ?? ()
#37 0xb7184ab0 in ?? () from /usr/lib/libqt-mt.so.3
#38 0xbfed60fb in ?? ()
#39 0x0808ad38 in ?? ()
#40 0x08312a98 in ?? ()
#41 0xb7e787d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#42 0xbfed6108 in ?? ()
#43 0xb6cc0670 in QObject::~QObject () from /usr/lib/libqt-mt.so.3
#44 0xb7dbfe30 in free () from /lib/tls/i686/cmov/libc.so.6
#45 0xb7f7ed11 in operator delete () from /usr/lib/libstdc++.so.6
#46 0xb76bd5a9 in KDialogBase::~KDialogBase () from /usr/lib/libkdeui.so.4
#47 0xb77150a4 in KMessageBox::createKMessageBox () from /usr/lib/libkdeui.so.4
#48 0xb77157b7 in KMessageBox::createKMessageBox () from /usr/lib/libkdeui.so.4
#49 0xb7d13dae in KateSessionManager::saveActiveSession ()
   from /usr/lib/libkateinterfaces.so.0
#50 0xb7d359b4 in KateApp::shutdownKate () from /usr/lib/libkateinterfaces.so.0
#51 0xb7d35a46 in KateMainWindow::slotFileQuit ()
   from /usr/lib/libkateinterfaces.so.0
#52 0xb7d35b2d in KateMainWindow::qt_invoke ()
   from /usr/lib/libkateinterfaces.so.0
#53 0xb6cbc88b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#54 0xb6cbd330 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#55 0xb7606a89 in KAction::activated () from /usr/lib/libkdeui.so.4
#56 0xb7644212 in KAction::slotActivated () from /usr/lib/libkdeui.so.4
#57 0xb770c37d in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4
#58 0xb770c641 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#59 0xb6cbc88b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#60 0xb7048ae0 in QSignal::signal () from /usr/lib/libqt-mt.so.3
#61 0xb6cdc81e in QSignal::activate () from /usr/lib/libqt-mt.so.3
#62 0xb6de2f1b in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#63 0xb760d8de in KPopupMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.4
#64 0xb6cf365d in QWidget::event () from /usr/lib/libqt-mt.so.3
#65 0xb6c53a60 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#66 0xb6c55c1e in QApplication::notify () from /usr/lib/libqt-mt.so.3
#67 0xb7417c32 in KApplication::notify () from /usr/lib/libkdecore.so.4
#68 0xb6be625d in QApplication::sendSpontaneousEvent ()
   from /usr/lib/libqt-mt.so.3
#69 0xb6be4b9f in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#70 0xb6be2fac in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#71 0xb6bfa180 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#72 0xb6c6e136 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#73 0xb6c6df46 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#74 0xb6c55609 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#75 0xb7fb7d53 in kdemain () from /usr/lib/libkdeinit_kate.so
#76 0x080484c2 in ?? ()
#77 0x00000002 in ?? ()
#78 0xbfed7754 in ?? ()
#79 0xbfed76b8 in ?? ()
#80 0xb7e91ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#81 0xb7fe47b0 in ?? () from /lib/ld-linux.so.2
#82 0xbfed76d0 in ?? ()
#83 0xbfed7728 in ?? ()
#84 0xb7d6aebc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
Backtrace stopped: frame did not save the PC


and on the konsole

*** glibc detected *** kate: free(): invalid pointer: 0xbfed632c ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7dbc7cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7dbfe30]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f7ed11]
/usr/lib/libkdeui.so.4(_ZN11KDialogBaseD0Ev+0x119)[0xb76bd5a9]
/usr/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBase7QPixmapRK7QStringRK11QStringListS5_PbiS5_N11QMessageBox4IconE+0x544)[0xb77150a4]
/usr/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBaseN11QMessageBox4IconERK7QStringRK11QStringListS6_PbiS6_+0x127)[0xb77157b7]
/usr/lib/libkateinterfaces.so.0(_ZN18KateSessionManager17saveActiveSessionEbb+0x57e)[0xb7d13dae]
/usr/lib/libkateinterfaces.so.0(_ZN7KateApp12shutdownKateEP14KateMainWindow+0x54)[0xb7d359b4]
/usr/lib/libkateinterfaces.so.0(_ZN14KateMainWindow12slotFileQuitEv+0x26)[0xb7d35a46]
/usr/lib/libkateinterfaces.so.0(_ZN14KateMainWindow9qt_invokeEiP8QUObject+0xdd)[0xb7d35b2d]
/usr/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8QUObject+0x12f)[0xb6cbc88b]
/usr/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEi+0x162)[0xb6cbd330]
/usr/lib/libkdeui.so.4(_ZN7KAction9activatedEv+0x29)[0xb7606a89]
/usr/lib/libkdeui.so.4(_ZN7KAction13slotActivatedEv+0x52)[0xb7644212]
/usr/lib/libkdeui.so.4(_ZN7KAction18slotPopupActivatedEv+0x16d)[0xb770c37d]
/usr/lib/libkdeui.so.4(_ZN7KAction9qt_invokeEiP8QUObject+0x211)[0xb770c641]
/usr/lib/libqt-mt.so.3(_ZN7QObject15activate_signalEP15QConnectionListP8QUObject+0x12f)[0xb6cbc88b]
/usr/lib/libqt-mt.so.3(_ZN7QSignal6signalERK8QVariant+0xae)[0xb7048ae0]
/usr/lib/libqt-mt.so.3(_ZN7QSignal8activateEv+0x86)[0xb6cdc81e]
/usr/lib/libqt-mt.so.3(_ZN10QPopupMenu17mouseReleaseEventEP11QMouseEvent+0x509)[0xb6de2f1b]
/usr/lib/libkdeui.so.4(_ZN10KPopupMenu17mouseReleaseEventEP11QMouseEvent+0x5e)[0xb760d8de]
/usr/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0xf3)[0xb6cf365d]
/usr/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0x274)[0xb6c53a60]
/usr/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x578)[0xb6c55c1e]
/usr/lib/libkdecore.so.4(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x1f2)[0xb7417c32]
/usr/lib/libqt-mt.so.3(_ZN12QApplication20sendSpontaneousEventEP7QObjectP6QEvent+0x5b)[0xb6be625d]
/usr/lib/libqt-mt.so.3(_ZN9QETWidget19translateMouseEventEPK7_XEvent+0xefb)[0xb6be4b9f]
/usr/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xbfc)[0xb6be2fac]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x108)[0xb6bfa180]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x70)[0xb6c6e136]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x32)[0xb6c6df46]
/usr/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x25)[0xb6c55609]
/usr/lib/libkdeinit_kate.so(kdemain+0x18b3)[0xb7fb7d53]
kate[0x80484c2]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d6aebc]
kate[0x8048411]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:01 606234     /usr/bin/kate
08049000-0804a000 rwxp 00000000 08:01 606234     /usr/bin/kate
0804a000-08430000 rwxp 0804a000 00:00 0          [heap]
b5900000-b5921000 rwxp b5900000 00:00 0
b5921000-b5a00000 ---p b5921000 00:00 0
b5ab0000-b5b26000 r-xp 00000000 08:01 816273     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b5b27000-b5b98000 r-xp 00000000 08:01 816458     /usr/share/fonts/truetype/freefont/FreeSans.ttf
b5b98000-b5b99000 r-xp 00000000 08:01 948312     /usr/share/locale-langpack/nl/LC_MESSAGES/kateopenheader.mo
b5b99000-b5b9a000 r-xp 00000000 08:01 950536     /usr/share/locale-langpack/nl/LC_MESSAGES/ktexteditor_isearch.mo
b5b9a000-b5bb1000 r-xp 00000000 08:01 950537     /usr/share/locale-langpack/nl/LC_MESSAGES/katepart.mo
b5bb1000-b5bd5000 r-xp 00000000 08:01 950541     /usr/share/locale-langpack/nl/LC_MESSAGES/kio.mo
b5bd5000-b5be1000 r-xp 00000000 08:01 948437     /usr/share/locale-langpack/nl/LC_MESSAGES/kate.mo
b5be1000-b5be2000 r-xp 00000000 08:01 886099     /usr/share/locale-langpack/en_GB/LC_MESSAGES/kateopenheader.mo
b5be2000-b5be3000 r-xp 00000000 08:01 886427     /usr/share/locale-langpack/en_GB/LC_MESSAGES/ktexteditor_isearch.mo
b5be3000-b5bf8000 r-xp 00000000 08:01 886428     /usr/share/locale-langpack/en_GB/LC_MESSAGES/katepart.mo
b5bf8000-b5c1a000 r-xp 00000000 08:01 886433     /usr/share/locale-langpack/en_GB/LC_MESSAGES/kio.mo
b5c1a000-b5cee000 r-xp 00000000 08:01 606084     /usr/lib/libscim-1.0.so.8.1.0
b5cee000-b5cfc000 rwxp 000d4000 08:01 606084     /usr/lib/libscim-1.0.so.8.1.0
b5d16000-b5d34000 r-xp 00000000 08:01 749349     /usr/lib/qt3/plugins/inputmethods/libqscim.so
b5d34000-b5d35000 rwxp 0001e000 08:01 749349     /usr/lib/qt3/plugins/inputmethods/libqscim.so
b5d35000-b5d3e000 r-xp 00000000 08:01 814685     /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so
b5d3e000-b5d3f000 rwxp 00009000 08:01 814685     /usr/lib/qt3/plugins/inputmethods/libqimsw-multi.so
b5d3f000-b5dbc000 r-xp 00000000 08:01 816277     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b5dbc000-b5e27000 r-xp 00000000 08:01 604890     /usr/lib/libmng.so.1.1.0.9
b5e27000-b5e2a000 rwxp 0006a000 08:01 604890     /usr/lib/libmng.so.1.1.0.9
b5e2a000-b5e34000 r-xp 00000000 08:01 622303     /usr/lib/kde3/ktexteditor_isearch.so
b5e34000-b5e35000 rwxp 0000a000 08:01 622303     /usr/lib/kde3/ktexteditor_isearch.so
b5e3a000-b5e5e000 r-xp 00000000 08:01 817765     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
b5e5e000-b5e5f000 rwxp 00024000 08:01 817765     /usr/lib/qt3/pluKCrash: Application 'kate' crashing...

                                                                        
Comment 2 Dominik Haumann 2007-07-30 23:31:25 UTC
duplicate of bug #147195, it was fixed by the following commit (try distribution online updates or KDE 3.5.8 once it is released):

 --- branches/KDE/3.5/kdebase/kate/app/katesession.cpp #676114:676115 
  @@ -381,13 +381,13 @@ 
     
       if (sesExit == "ask") 
       { 
  -      KDialogBase dlg( i18n ("Save Session?") 
  +      KDialogBase* dlg = new KDialogBase(i18n ("Save Session?") 
                        , KDialogBase::Yes | KDialogBase::No 
                        , KDialogBase::Yes, KDialogBase::No 
                        ); 
     
         bool dontAgain = false; 
  -      int res = KMessageBox::createKMessageBox(&dlg, QMessageBox::Question, 
  +      int res = KMessageBox::createKMessageBox(dlg, QMessageBox::Question, 
                                 i18n("Save current session?"), QStringList(), 
                                 i18n("Do not ask again"), &dontAgain, KMessageBox::Notify); 

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