Bug 147195 - kate systematically crashes on exit
Summary: kate systematically crashes on exit
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 130634 144076 146940 148224 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-25 12:51 UTC by Sergio Callegari
Modified: 2007-09-10 00:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Callegari 2007-06-25 12:51:47 UTC
Version:           kate 2.5.7 on kde 3.5.7 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

Open kate
do nothing with it (or do if you like)
close kate
kate asks you whether to save the session
answer either yes or now
kate crashes

stderr reports:

*** glibc detected *** kate: free(): invalid pointer: 0xbfb4d17c ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d6c7cd]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d6fe30]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f2ed11]
/usr/lib/libkdeui.so.4(_ZN11KDialogBaseD0Ev+0x119)[0xb766d5a9]
/usr/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBase7QPixmapRK7QStringRK11QStringListS5_PbiS5_N11QMessageBox4IconE+0x544)[0xb76c50a4]
/usr/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBaseN11QMessageBox4IconERK7QStringRK11QStringListS6_PbiS6_+0x127)[0xb76c57b7]
/usr/lib/libkateinterfaces.so.0(_ZN18KateSessionManager17saveActiveSessionEbb+0x57e)[0xb7cc3dae]
/usr/lib/libkateinterfaces.so.0(_ZN14KateMainWindow10queryCloseEv+0x8c)[0xb7ce58fc]
/usr/lib/libkdeui.so.4(_ZN11KMainWindow10closeEventEP11QCloseEvent+0x37)[0xb76aca57]
/usr/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0x551)[0xb6ca3abb]
/usr/lib/libqt-mt.so.3(_ZN11QMainWindow5eventEP6QEvent+0x9e)[0xb6d79ba6]
/usr/lib/libkateinterfaces.so.0(_ZN14KateMainWindow5eventEP6QEvent+0x32)[0xb7cc1e92]
/usr/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0x274)[0xb6c03a60]
/usr/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xd84)[0xb6c0642a]
/usr/lib/libkdecore.so.4(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x1f2)[0xb73c7c32]
/usr/lib/libqt-mt.so.3(_ZN12QApplication9sendEventEP7QObjectP6QEvent+0x5b)[0xb6b961e9]
/usr/lib/libqt-mt.so.3(_ZN7QWidget5closeEb+0xbf)[0xb6ca6551]
/usr/lib/libqt-mt.so.3(_ZN9QETWidget19translateCloseEventEPK7_XEvent+0x22)[0xb6b82832]
/usr/lib/libqt-mt.so.3(_ZN12QApplication16x11ClientMessageEP7QWidgetP7_XEventb+0x8b)[0xb6b882f3]
/usr/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x1526)[0xb6b938d6]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x108)[0xb6baa180]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x70)[0xb6c1e136]
/usr/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x32)[0xb6c1df46]
/usr/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x25)[0xb6c05609]
/usr/lib/libkdeinit_kate.so(kdemain+0x18b3)[0xb7f67d53]
kate[0x80484c2]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d1aebc]
kate[0x8048411]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:05 1478456    /usr/bin/kate
08049000-0804a000 rw-p 00000000 08:05 1478456    /usr/bin/kate
0804a000-0850a000 rw-p 0804a000 00:00 0          [heap]
b5a00000-b5a21000 rw-p b5a00000 00:00 0
b5a21000-b5b00000 ---p b5a21000 00:00 0
b5b35000-b5bab000 r--p 00000000 08:05 195581     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b5bab000-b5bac000 rw-p b5bab000 00:00 0
b5bac000-b5bf0000 r--p 00000000 08:05 552031     /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
b5bf0000-b5cc4000 r-xp 00000000 08:05 1479103    /usr/lib/libscim-1.0.so.8.1.0
b5cc4000-b5cd2000 rw-p 000d4000 08:05 1479103    /usr/lib/libscim-1.0.so.8.1.0
b5ce9000-b5d07000 r-xp 00000000 08:05 97599      /usr/lib/qt3/plugins/inputmethods/libqscim.so
b5d07000-b5d08000 rw-p 0001e000 08:05 97599      /usr/lib/qt3/plugins/inputmethods/libqscim.so
b5d08000-b5d2c000 r-xp 00000000 08:05 324484     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
b5d2c000-b5d2d000 rw-p 00024000 08:05 324484     /usr/lib/qt3/plugins/inputmethods/libqsimple.so
b5d2d000-b5daa000 r--p 00000000 08:05 200553     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b5daa000-b5dd4000 r-xp 00000000 08:05 1479878    /usr/lib/liblcms.so.1.0.15
b5dd4000-b5dd5000 rw-p 00029000 08:05 1479878    /usr/lib/liblcms.so.1.0.15
b5dd5000-b5dd8000 rw-p b5dd5000 00:00 0
b5dd8000-b5e43000 r-xp 00000000 08:05 1479913    /usr/lib/libmng.so.1.1.0.9
b5e43000-b5e46000 rw-p 0006a000 08:05 1479913    /usr/lib/libmng.so.1.1.0.9
b5e51000-b5e5c000 r-xp 00000000 08:05 326479     /usr/lib/qt3/plugins/inputmethods/libqxim.so
b5e5c000-b5e5d000 rw-p 0000a000 08:05 326479     /usr/lib/qt3/plugins/inputmethods/libqxim.so
b5e5d000-b5e67000 r-xp 00000000 08:05 1483596    /usr/lib/kde3/ktexteditor_isearch.so
b5e67000-b5e68000 rw-p 0000a000 08:05 1483596    /usr/lib/kde3/ktexteditor_isearch.so
b5e68000-b5ea7000 r--p 00000000 08:05 200582     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b5ea7000-b5KCrash: Application 'kate' crashing...

the crash applet reports:

(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 -1235445536 (LWP 14698)]
(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  0xb7d2edf0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7d30641 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7d649bb in ?? () from /lib/tls/i686/cmov/libc.so.6
#10 0x0000000d in ?? ()
#11 0xbfb4c9d0 in ?? ()
#12 0x00000400 in ?? ()
#13 0x083af568 in ?? ()
#14 0xb7e2b7a8 in ?? () from /lib/tls/i686/cmov/libc.so.6
#15 0x00000017 in ?? ()
#16 0xbfb4f76e in ?? ()
#17 0x00000004 in ?? ()
#18 0xb7e2b7c1 in ?? () from /lib/tls/i686/cmov/libc.so.6
#19 0x00000002 in ?? ()
#20 0xb7e287d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#21 0x00000017 in ?? ()
#22 0xb7e2b7c5 in ?? () from /lib/tls/i686/cmov/libc.so.6
#23 0x00000004 in ?? ()
#24 0xbfb4cf4b in ?? ()
#25 0x00000008 in ?? ()
#26 0xb7e2b7cb in ?? () from /lib/tls/i686/cmov/libc.so.6
#27 0x00000005 in ?? ()
#28 0x0000007e in ?? ()
#29 0xb6f650aa in QGDict::look_ptr () from /usr/lib/libqt-mt.so.3
#30 0xb7d6c7cd in ?? () from /lib/tls/i686/cmov/libc.so.6
#31 0x00000002 in ?? ()
#32 0xb7e2b7a8 in ?? () from /lib/tls/i686/cmov/libc.so.6
#33 0xbfb4f76e in ?? ()
#34 0xb7e287d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#35 0xbfb4cf4b in ?? ()
#36 0x083feca8 in ?? ()
#37 0xb7134ab0 in ?? () from /usr/lib/libqt-mt.so.3
#38 0xbfb4cf4b in ?? ()
#39 0x08083dc8 in ?? ()
#40 0x083feca8 in ?? ()
#41 0xb7e287d4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#42 0xbfb4cf58 in ?? ()
#43 0xb6c70670 in QObject::~QObject () from /usr/lib/libqt-mt.so.3
#44 0xb7d6fe30 in free () from /lib/tls/i686/cmov/libc.so.6
#45 0xb7f2ed11 in operator delete () from /usr/lib/libstdc++.so.6
#46 0xb766d5a9 in KDialogBase::~KDialogBase () from /usr/lib/libkdeui.so.4
#47 0xb76c50a4 in KMessageBox::createKMessageBox ()
   from /usr/lib/libkdeui.so.4
#48 0xb76c57b7 in KMessageBox::createKMessageBox ()
   from /usr/lib/libkdeui.so.4
#49 0xb7cc3dae in KateSessionManager::saveActiveSession ()
   from /usr/lib/libkateinterfaces.so.0
#50 0xb7ce58fc in KateMainWindow::queryClose ()
   from /usr/lib/libkateinterfaces.so.0
#51 0xb76aca57 in KMainWindow::closeEvent () from /usr/lib/libkdeui.so.4
#52 0xb6ca3abb in QWidget::event () from /usr/lib/libqt-mt.so.3
#53 0xb6d79ba6 in QMainWindow::event () from /usr/lib/libqt-mt.so.3
#54 0xb7cc1e92 in KateMainWindow::event ()
   from /usr/lib/libkateinterfaces.so.0
#55 0xb6c03a60 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#56 0xb6c0642a in QApplication::notify () from /usr/lib/libqt-mt.so.3
#57 0xb73c7c32 in KApplication::notify () from /usr/lib/libkdecore.so.4
#58 0xb6b961e9 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#59 0xb6ca6551 in QWidget::close () from /usr/lib/libqt-mt.so.3
#60 0xb6b82832 in QETWidget::translateCloseEvent ()
   from /usr/lib/libqt-mt.so.3
#61 0xb6b882f3 in QApplication::x11ClientMessage ()
   from /usr/lib/libqt-mt.so.3
#62 0xb6b938d6 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#63 0xb6baa180 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#64 0xb6c1e136 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#65 0xb6c1df46 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#66 0xb6c05609 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#67 0xb7f67d53 in kdemain () from /usr/lib/libkdeinit_kate.so
#68 0x080484c2 in ?? ()
#69 0x00000001 in ?? ()
#70 0xbfb4e144 in ?? ()
#71 0xbfb4e0a8 in ?? ()
#72 0xb7e41ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#73 0xb7f917b0 in ?? () from /lib/ld-linux.so.2
#74 0xbfb4e0c0 in ?? ()
#75 0xbfb4e118 in ?? ()
#76 0xb7d1aebc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
Backtrace stopped: frame did not save the PC

This is on the kde distributed packages of kde 3.5.7 for Ubuntu feisty on a 32bit system.
Comment 1 Sergio Callegari 2007-06-25 13:32:16 UTC
In fact a 3.5.7 regression.

Downgrading to the official Ubuntu feisty package (namely 3.5.6-0ubuntu20.1) fixes the issue.
Comment 2 Guillermo Antonio Amaral Bastidas 2007-06-26 08:33:39 UTC
I fixed this is fixed in SVN branch 3.5 a few weeks ago
Comment 3 Dominik Haumann 2007-06-26 10:36:17 UTC
jo, fixed ;)

--- 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);
Comment 4 Sergio Callegari 2007-06-26 13:17:10 UTC
Will it be possible to get updated binaries?
I am particularly interested in Ubuntu feisty, but maybe the binaries for other distros share this issue too.
Comment 5 Guillermo Antonio Amaral Bastidas 2007-06-26 18:21:45 UTC
 I am not sure how Ubuntu handles it's repository but you might need to contact the package maintainer so he can apply the required patch.
Comment 6 Sergio Callegari 2007-06-28 13:05:29 UTC
I sent a report on the ubuntu bug tracking system, pointing the maintainer to your patch.  The patch was incorporated on the distribution SCM:

> Committed to bzr. Will upload to gutsy after the freeze is over, and after i've > fixed some more of the bugs.

Unfortunately, there is no mention about an updated package for feisty and this is a pity, since kubuntu will continue advertising a kde 3.5.7 repo with a broken kate.

To the rescue, note that you can mix the packages from the kde 3.5.7 repo with kate from the 3.5.6 repo. After you do so, apparently you get a working kate from the 3.5.6 repo happily report that it is kate 2.5.7 on kde 3.5.7. 
Comment 7 Dominik Haumann 2007-07-16 10:13:37 UTC
*** Bug 130634 has been marked as a duplicate of this bug. ***
Comment 8 Dominik Haumann 2007-07-30 23:31:07 UTC
*** Bug 148224 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2007-07-30 23:31:27 UTC
*** Bug 144076 has been marked as a duplicate of this bug. ***
Comment 10 Dominik Haumann 2007-09-10 00:04:30 UTC
*** Bug 146940 has been marked as a duplicate of this bug. ***