Version: (using KDE KDE 3.5.3) Installed from: Fedora RPMs OS: Linux Simply closing Kate causes it to crash. I do have a few files open in it. This is the backtrace I get: (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) `shared object read from target memory' has disappeared; keeping its symbols. (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 -1208162608 (LWP 2908)] (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) 0x003b7402 in __kernel_vsyscall () #0 0x003b7402 in __kernel_vsyscall () #1 0x0045fef0 in __nanosleep_nocancel () from /lib/libc.so.6 #2 0x0045fd3b in sleep () from /lib/libc.so.6 #3 0x492ce3b9 in ?? () #4 0x00000001 in ?? () #5 0x00000000 in ?? ()
That backtrace says nothing at all. Is the crash reproducible? Do you have a specific file that provokes the crash? If so, can you attach it to the bug report?
The crash is reproducible, it happens anytime I open up kate and then when closing it, it crashes. I hadn't tried using only certain files, I had 7 open so I closed them one by one, closing kate after each one and it still crashes with only the default blank untitled open. I have a few other applications open like kopete, skype and thunderbird which i also shut down and tried out kate and it still seems to be crashing everytime i close it. I don't know what other info I could give you that could help?
If you could get a hold of a build with debugging symbols, you will get a much more useful backtrace. I have no experience with Fedora, but I assume they have debuggable packages available somewhere.
Yup, it's easy with Fedora. Every package has a -debuginfo counterpart, so just yum install kdebase-debuginfo and you should be set.
Created attachment 16966 [details] pic of stack window when debugging kate
I tried debugging using KDbg and the only window showing any changes when cosing was the stack window, i've included a screeshot of this window. Is there any other info i could get?
Well the problem seems to have stopped now. I updated a few packages on my system this morning and kate seems to have been fine all day so can this be marked as resolved? Thanks to everyone for their help.
See above comment.
Hey, I have the same problem. I'm using archlinux's pacman binary. matt@megabyte:~$ pacman -Q kdemod-kdebase kdemod-kdebase 3.5.7-13 matt@megabyte:~$ pacman -Q glibc glibc 2.6-2 matt@megabyte:~$ kate -v Qt: 3.3.8 KDE: 3.5.7 Kate: 2.5.7 matt@megabyte:~$ kate *** glibc detected *** kate: free(): invalid pointer: 0xbfe053ac *** ======= Backtrace: ========= /lib/libc.so.6[0xb7ea65e6] /lib/libc.so.6(__libc_free+0x89)[0xb7ea82a9] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb74734d1] /opt/kde/lib/libkdeui.so.4(_ZN11KDialogBaseD0Ev+0x119)[0xb6ef36c9] /opt/kde/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBase7QPixmapRK7QStringRK11QStringListS5_PbiS5_N11QMessageBox4IconE+0x552)[0xb6f44b72] /opt/kde/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBaseN11QMessageBox4IconERK7QStringRK11QStringListS6_PbiS6_+0x127)[0xb6f45287] /opt/kde/lib/libkateinterfaces.so.0[0xb7e015db] /opt/kde/lib/libkateinterfaces.so.0[0xb7e2294d] /opt/kde/lib/libkdeui.so.4(_ZN11KMainWindow10closeEventEP11QCloseEvent+0x37)[0xb6f22917] /opt/qt/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0x320)[0xb774e7a0] /opt/qt/lib/libqt-mt.so.3(_ZN11QMainWindow5eventEP6QEvent+0x32)[0xb7804762] /opt/kde/lib/libkateinterfaces.so.0[0xb7dff882] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0xda)[0xb76b854a] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x63)[0xb76b93a3] /opt/kde/lib/libkdecore.so.4(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x1d2)[0xb7d20642] /opt/qt/lib/libqt-mt.so.3(_ZN7QWidget5closeEb+0xa0)[0xb774c980] /opt/qt/lib/libqt-mt.so.3(_ZN9QETWidget19translateCloseEventEPK7_XEvent+0x1c)[0xb764982c] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication16x11ClientMessageEP7QWidgetP7_XEventb+0x256)[0xb764cc26] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xbcb)[0xb7658acb] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x4cd)[0xb7668c2d] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x50)[0xb76cecd0] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x26)[0xb76ceb66] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x1f)[0xb76b816f] /opt/kde/lib/libkdeinit_kate.so(kdemain+0x18d9)[0xb7f8c9f9] kate(_init+0x122)[0x8048462] /lib/libc.so.6(__libc_start_main+0xe0)[0xb7e56970] kate(_init+0x91)[0x80483d1] ======= Memory map: ======== 08048000-08049000 r-xp 00000000 03:02 33641 /opt/kde/bin/kate 08049000-0804a000 rw-p 00000000 03:02 33641 /opt/kde/bin/kate 0804a000-08371000 rw-p 0804a000 00:00 0 [heap] b5600000-b5621000 rw-p b5600000 00:00 0 b5621000-b5700000 ---p b5621000 00:00 0 b5756000-b5757000 rw-p b5756000 00:00 0 b5757000-b577c000 r-xp 00000000 03:02 354409 /opt/qt/plugins/inputmethods/libqsimple.so b577c000-b577d000 rw-p 00024000 03:02 354409 /opt/qt/plugins/inputmethods/libqsimple.so b577d000-b5786000 r-xp 00000000 03:02 354407 /opt/qt/plugins/inputmethods/libqimsw-multi.so b5786000-b5787000 rw-p 00009000 03:02 354407 /opt/qt/plugins/inputmethods/libqimsw-multi.so b5787000-b57f6000 r-xp 00000000 03:02 273999 /usr/lib/libmng.so.1.1.0.9 b57f6000-b57f7000 rw-p 0006e000 03:02 273999 /usr/lib/libmng.so.1.1.0.9 b57f7000-b586d000 r-xp 00000000 03:02 313509 /usr/lib/libGLU.so.1.3.060502 b586d000-b586e000 rw-p 00075000 03:02 313509 /usr/lib/libGLU.so.1.3.060502 b586e000-b588d000 r-xp 00000000 03:02 312039 /usr/lib/libjpeg.so.62.0.0 b588d000-b588e000 rw-p 0001e000 03:02 312039 /usr/lib/libjpeg.so.62.0.0 b588e000-b5893000 r-xp 00000000 03:02 193355 /opt/qt/plugins/imageformats/libqjpeg.so b5893000-b5894000 rw-p 00004000 03:02 193355 /opt/qt/plugins/imageformats/libqjpeg.so b5894000-b58d8000 r--p 00000000 03:02 410303 /usr/share/fonts/TTF/arial.ttf b58d8000-b5922000 r--p 00000000 03:02 410310 /usr/share/fonts/TTF/cour.ttf b5922000-b5a25000 r--s 00000000 03:02 100750 /var/tmp/kdecache-matt/ksycoca b5a25000-b5a4a000 r-xp 00000000 03:02 450773 /lib/libpcre.so.0.0.1 b5a4a000-b5a4b000 rw-p 00024000 03:02 450773 /lib/libpcre.so.0.0.1 b5a4e000-b5a59000 r-xp 00000000 03:02 354410 /opt/qt/plugins/inputmethods/libqxim.so b5a59000-b5a5a000 rw-p 0000a000 03:02 354410 /opt/qt/plugins/inputmethods/libqxim.so b5a5a000-b5a62000 r-xp 00000000 03:02 193353 /opt/qt/plugins/imagefKCrash: Application 'kate' crashing... matt@megabyte:/usr/lib/X11$ kate -b kate: Unknown option '-b'. kate: Use --help to get a list of available command line options. matt@megabyte:/usr/lib/X11$ kate -v Qt: 3.3.8 KDE: 3.5.7 Kate: 2.5.7 matt@megabyte:/usr/lib/X11$ kwrite -v Qt: 3.3.8 KDE: 3.5.7 KWrite: 4.5.7 matt@megabyte:/usr/lib/X11$ pacman -Qs kdemod-kdebase local/kdemod-kdebase 3.5.7-13 (kdemod) KDE Base Programs (kdemod) matt@megabyte:/usr/lib/X11$ pacman -Ss kdemod-kdebase kdemod/kdemod-kdebase 3.5.7-13 (kdemod) KDE Base Programs (kdemod) kdemod/kdemod-kdebase-kickoff 3.5.7-6 KDE Base Programs (kdemod) matt@megabyte:/usr/lib/X11$ kate -v Qt: 3.3.8 KDE: 3.5.7 Kate: 2.5.7 matt@megabyte:/usr/lib/X11$ kate *** glibc detected *** kate: free(): invalid pointer: 0xbfd8733c *** ======= Backtrace: ========= /lib/libc.so.6[0xb7e4e5e6] /lib/libc.so.6(__libc_free+0x89)[0xb7e502a9] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb741b4d1] /opt/kde/lib/libkdeui.so.4(_ZN11KDialogBaseD0Ev+0x119)[0xb6e9b6c9] /opt/kde/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBase7QPixmapRK7QStringRK11QStringListS5_PbiS5_N11QMessageBox4IconE+0x552)[0xb6eecb72] /opt/kde/lib/libkdeui.so.4(_ZN11KMessageBox17createKMessageBoxEP11KDialogBaseN11QMessageBox4IconERK7QStringRK11QStringListS6_PbiS6_+0x127)[0xb6eed287] /opt/kde/lib/libkateinterfaces.so.0[0xb7da95db] /opt/kde/lib/libkateinterfaces.so.0[0xb7dca94d] /opt/kde/lib/libkdeui.so.4(_ZN11KMainWindow10closeEventEP11QCloseEvent+0x37)[0xb6eca917] /opt/qt/lib/libqt-mt.so.3(_ZN7QWidget5eventEP6QEvent+0x320)[0xb76f67a0] /opt/qt/lib/libqt-mt.so.3(_ZN11QMainWindow5eventEP6QEvent+0x32)[0xb77ac762] /opt/kde/lib/libkateinterfaces.so.0[0xb7da7882] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication14internalNotifyEP7QObjectP6QEvent+0xda)[0xb766054a] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x63)[0xb76613a3] /opt/kde/lib/libkdecore.so.4(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x1d2)[0xb7cc8642] /opt/qt/lib/libqt-mt.so.3(_ZN7QWidget5closeEb+0xa0)[0xb76f4980] /opt/qt/lib/libqt-mt.so.3(_ZN9QETWidget19translateCloseEventEPK7_XEvent+0x1c)[0xb75f182c] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication16x11ClientMessageEP7QWidgetP7_XEventb+0x256)[0xb75f4c26] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xbcb)[0xb7600acb] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop13processEventsEj+0x4cd)[0xb7610c2d] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop9enterLoopEv+0x50)[0xb7676cd0] /opt/qt/lib/libqt-mt.so.3(_ZN10QEventLoop4execEv+0x26)[0xb7676b66] /opt/qt/lib/libqt-mt.so.3(_ZN12QApplication4execEv+0x1f)[0xb766016f] /opt/kde/lib/libkdeinit_kate.so(kdemain+0x18d9)[0xb7f349f9] kate(_init+0x122)[0x8048462] /lib/libc.so.6(__libc_start_main+0xe0)[0xb7dfe970] kate(_init+0x91)[0x80483d1] ======= Memory map: ======== 08048000-08049000 r-xp 00000000 03:02 33641 /opt/kde/bin/kate 08049000-0804a000 rw-p 00000000 03:02 33641 /opt/kde/bin/kate 0804a000-08386000 rw-p 0804a000 00:00 0 [heap] b5500000-b5521000 rw-p b5500000 00:00 0 b5521000-b5600000 ---p b5521000 00:00 0 b56fe000-b56ff000 rw-p b56fe000 00:00 0 b56ff000-b5724000 r-xp 00000000 03:02 354409 /opt/qt/plugins/inputmethods/libqsimple.so b5724000-b5725000 rw-p 00024000 03:02 354409 /opt/qt/plugins/inputmethods/libqsimple.so b5725000-b572e000 r-xp 00000000 03:02 354407 /opt/qt/plugins/inputmethods/libqimsw-multi.so b572e000-b572f000 rw-p 00009000 03:02 354407 /opt/qt/plugins/inputmethods/libqimsw-multi.so b572f000-b579e000 r-xp 00000000 03:02 273999 /usr/lib/libmng.so.1.1.0.9 b579e000-b579f000 rw-p 0006e000 03:02 273999 /usr/lib/libmng.so.1.1.0.9 b579f000-b5815000 r-xp 00000000 03:02 313509 /usr/lib/libGLU.so.1.3.060502 b5815000-b5816000 rw-p 00075000 03:02 313509 /usr/lib/libGLU.so.1.3.060502 b5816000-b5835000 r-xp 00000000 03:02 312039 /usr/lib/libjpeg.so.62.0.0 b5835000-b5836000 rw-p 0001e000 03:02 312039 /usr/lib/libjpeg.so.62.0.0 b5836000-b583b000 r-xp 00000000 03:02 193355 /opt/qt/plugins/imageformats/libqjpeg.so b583b000-b583c000 rw-p 00004000 03:02 193355 /opt/qt/plugins/imageformats/libqjpeg.so b583c000-b5880000 r--p 00000000 03:02 410303 /usr/share/fonts/TTF/arial.ttf b5880000-b58ca000 r--p 00000000 03:02 410310 /usr/share/fonts/TTF/cour.ttf b58ca000-b59cd000 r--s 00000000 03:02 100750 /var/tmp/kdecache-matt/ksycoca b59cd000-b59f2000 r-xp 00000000 03:02 450773 /lib/libpcre.so.0.0.1 b59f2000-b59f3000 rw-p 00024000 03:02 450773 /lib/libpcre.so.0.0.1 b59f6000-b5a01000 r-xp 00000000 03:02 354410 /opt/qt/plugins/inputmethods/libqxim.so b5a01000-b5a02000 rw-p 0000a000 03:02 354410 /opt/qt/plugins/inputmethods/libqxim.so b5a02000-b5a0a000 r-xp 00000000 03:02 193353 /opt/qt/plugins/imageformats/libqpng.so b5a0a000-b5a0b000 rw-p 00007000 03:02 193353 /opt/qt/plugins/imageformats/libqpng.so b5a0b000-b5a69000 r-xp 00000000 03:02 421011 /opt/kde/lib/libkjs.so.1.2.0 b5a69000-b5a6e000 rw-p 0005d000 03:02 421011 /opt/kde/lib/libkjs.so.1.2.0 b5a6e000-b5a6f000 rw-p b5a6e000 00:00 0 b5a6f000-b5b23000 r-xp 00000000 03:02 420869 /opt/kde/lib/libkdeprint.so.4.2.0 b5b23000-b5b2b000 rw-p 000b4000 03:02 420869 /opt/kde/lib/libkdeprint.so.4.2.0 b5b2b000-b5c64000 r-xp 00000000 03:02 499282 /opt/kde/lib/kde3/libkatepart.so b5c64000-b5c74000 rw-p 00139000 03:02 499282 /opt/kde/lib/kde3/libkatepart.so b5c74000-b5c83000 r-xp 00000000 03:02 370709 /opt/kde/lib/kde3/plugins/styles/highcolor.so b5c83000-b5c84000 rw-p 0000f000 03:02 370709 /opt/kde/lib/kde3/plugins/styles/highcolor.so b5c84000-b5c94000 r--s 00000000 03:02 96798 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2 b5c94000-b5c9e000 r--s 00000000 03:02 96761 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2 b5c9e000-b5cb7000 r--s 00000000 03:02 96731 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86.cache-2 b5cb7000-b5cfd000 r--s 00000000 03:02 96730 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2 b5cfd000-b5d43000 r--s 00000000 03:02 96729 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2 b5d43000-b5eb7000 r--p 00000000 03:02 387760 /usr/lib/locale/locale-archive b5eb7000-b5f1c000 rw-p b5eb7000 00:00 0 b5f1c000-b5f39000 r-xp 00000000 03:02 420922 /opt/kde/lib/libkresources.so.1.2.0 b5f39000-b5f3b000 rw-p 0001c000 03:02 420922 /opt/kde/lib/libkresources.so.1.2.0 b5f3b000-b5f3c000 rw-p b5f3b000 00:00 0 b5f3c000-b5fKCrash: Application 'kate' crashing... matt@megabyte:~$ ---------------- I've done a lot of googling and searching for this bug, and somebody in kubuntu's IRC (Tm_T) wrote that he thought it was a libc issue. I'm not sure how to get a debug version of kate without compiling the entire KDE source, so this is all the info I have. Sorry to open the bug again, but I've had this bug for a long time, through several pacman updates. Matt
Oh, I forgot to mention that only kate crashes. Kontact and even kwrite are perfectly fine. Sorry if the previous post was too long, but I'm not sure where to put that crash output.
it's fixed, see bug #147195. so repoen + mark as duplicate The commit was: --- 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);
mark as duplicate *** This bug has been marked as a duplicate of 147195 ***
Thanks a lot for your help and for your work in coding this excellent program. Kate is still my favorite linux text editor :) I guess I'll have to download the svn to get the fixed version, or at least go back to the main kde repo in pacman.
Kate 2.5.7 with KDE 3.5.7 from Slackware 12 gives the same error message as the original post....other pgm seems to function perfectly....never had a problem with version available on Kubuntu 5.10.....bill....