Bug 83708 - Kate crashes sometimes when saving a new file
Summary: Kate crashes sometimes when saving a new file
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kmdi (show other bugs)
Version: 2.2.1
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 87508 92058 96269 96276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-20 18:11 UTC by Dominik Stadler
Modified: 2005-01-27 01:09 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Curious crash report (2.55 KB, text/plain)
2004-06-20 23:18 UTC, Nicolas Goutte
Details
Stack trace of crash (2.12 KB, text/plain)
2004-07-31 17:22 UTC, Dominik Stadler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Stadler 2004-06-20 18:11:07 UTC
Version:           2.2.1 (using KDE KDE 3.2.3)
Installed from:    Gentoo Packages
Compiler:          gcc-3.3.3 
OS:                Linux

I have now seen this at least since 3.2 and today also in 3.2.3. I normally have kate open with a number of files (notes and files that I edit regularily) without restarting it. Sometimes when I create a new file (CTRL-N) edit the file and then use CTRL-S to save the file to a new filename, kate crashes. I currently can not provide a good backtrace, as I don't have kde compiled with debug-info, I will try to do this later.
Comment 1 Dominik Stadler 2004-06-20 18:14:00 UTC
I just reproduced this again. Some more notes:

- I use the option to restart previously open files when starting kate
- The file is saved ok, no dataloss occurs with the file that is saved, unsaved changes to other open files are lost, though.
Comment 2 Nicolas Goutte 2004-06-20 23:17:06 UTC
I can see a similar behaviour of Kate 3.2.x. (The file itself is saved before the crash.)

For me it has started when I created a file named "kword13oasisgenerator.cpp", so perhaps it is due to long file names.

I have a backtrace of the crash, but it does not seem very helpful.

Have a nice day!
Comment 3 Nicolas Goutte 2004-06-20 23:18:11 UTC
Created attachment 6424 [details]
Curious crash report
Comment 4 Dominik Stadler 2004-07-31 17:22:50 UTC
Created attachment 6944 [details]
Stack trace of crash

After a while I managed to get a stack-trace. Mine looks quite similar...
Comment 5 Nicolas Goutte 2004-07-31 17:51:19 UTC
And in the meanwhile, I can reproduce the crash rather easily, but I have not exactly the details to make it crashes always.

Open Kate
Load a document (HTML?)
Save it
(Make something outside Kate with the document and reload in Kate?)
Create a new document?
(Copy&paste from the first doc?)
Save the new document(as HTML?)

=> Crash (but the file is saved)

The items marked with ? are where I am not sure if it is needed or not, but doing these steps nearly always crashes for me. (Instead of HTML, C++ seems to crash too.)

Have a nice day!
Comment 6 Christoph Cullmann 2004-08-02 23:05:31 UTC
that is no katepart specific problem, something is borked deep inside kmdi it seems (or kdelibs/qt ...)
Comment 7 Dominik Stadler 2004-08-19 23:25:14 UTC
This is still the same in KDE 3.3.
Comment 8 Nicolas Goutte 2004-10-28 00:23:52 UTC
Still in the current KDE_3_3_BRANCH.
Comment 9 Daniel Quinn 2004-10-28 01:21:50 UTC
i've got the same problem in my case.

1. open kate
2. create new file (over fish:// in my case)
3. add a bunch of stuff to it
4. save as...
   crash

here's the backtrace:


Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 4516)]
[KCrash handler]
#5  0x40b9b9f9 in QObject::child () from /usr/qt/3/lib/libqt-mt.so.3
#6  0x406fd296 in KAccelPrivate::eventFilter ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#7  0x40b99abe in QDict<QNetworkProtocolFactoryBase>::~QDict ()
   from /usr/qt/3/lib/libqt-mt.so.3
#8  0x40b9993b in QMapIterator<int, QString>::dec ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x0829c608 in ?? ()
#10 0xbfffecc0 in ?? ()
#11 0xbfffe9d8 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x41187aa8 in QSqlDatabase::defaultConnection ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0xbfffea28 in ?? ()
#16 0x40bdf66f in QWidget::setTabOrder () from /usr/qt/3/lib/libqt-mt.so.3
#17 0x40bdf66f in QWidget::setTabOrder () from /usr/qt/3/lib/libqt-mt.so.3
#18 0x40cc1222 in QMainWindow::menuBar () from /usr/qt/3/lib/libqt-mt.so.3
#19 0x41839f40 in KMdiMainFrm::event () from /usr/kde/3.3/lib/libkmdi.so.1
#20 0x40b2c5a9 in QApplication::applicationFilePath ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x40b2b944 in QApplication::setGlobalStrut ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x4069e7d4 in KApplication::notify ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#23 0x4004629c in QApplication::sendEvent ()
   from /usr/kde/3.3/lib/libkparts.so.2
#24 0x406fc44d in KAccelEventHandler::x11Event ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#25 0x406abfe8 in KAppX11HackWidget::publicx11Event ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#26 0x406a21f1 in KApplication::x11EventFilter ()
   from /usr/kde/3.3/lib/libkdecore.so.4
#27 0x40a9dffd in ?? () from /usr/qt/3/lib/libqt-mt.so.3
#28 0xbffff114 in ?? ()
#29 0xbffff044 in ?? ()
#30 0x00000001 in ?? ()
#31 0x41187aa8 in QSqlDatabase::defaultConnection ()
   from /usr/qt/3/lib/libqt-mt.so.3
#32 0xbffff114 in ?? ()
#33 0x41187aa8 in QSqlDatabase::defaultConnection ()
   from /usr/qt/3/lib/libqt-mt.so.3
#34 0xbfffeefc in ?? ()
#35 0x40aa9cf5 in qt_x11_findClientWindow () from /usr/qt/3/lib/libqt-mt.so.3
#36 0x40aa9cf5 in qt_x11_findClientWindow () from /usr/qt/3/lib/libqt-mt.so.3
#37 0x40ac7a0d in QDesktopWidget::QDesktopWidget ()
   from /usr/qt/3/lib/libqt-mt.so.3
#38 0x40b43979 in qDrawPlainRect () from /usr/qt/3/lib/libqt-mt.so.3
#39 0x40b43892 in qDrawPlainRect () from /usr/qt/3/lib/libqt-mt.so.3
#40 0x40b2c74b in QApplication::libraryPaths ()
   from /usr/qt/3/lib/libqt-mt.so.3
#41 0x407f174d in kdemain () from /usr/kde/3.3/lib/libkdeinit_kate.so
#42 0x407ee836 in kdeinitmain () from /usr/kde/3.3/lib/kde3/kate.so
#43 0x0804da5c in ?? ()
#44 0x00000001 in ?? ()
#45 0x08104928 in ?? ()
#46 0x00000000 in ?? ()
#47 0x00000000 in ?? ()
#48 0x00000000 in ?? ()
#49 0x00000000 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00000000 in ?? ()
#52 0x88000000 in ?? ()
#53 0x00004003 in ?? ()
#54 0x00000000 in ?? ()
#55 0x00000000 in ?? ()
#56 0x88000000 in ?? ()
#57 0x00004003 in ?? ()
#58 0x00000000 in ?? ()
#59 0x08104550 in ?? ()
#60 0x00000000 in ?? ()
#61 0x00000000 in ?? ()
#62 0x00000000 in ?? ()
#63 0x00000000 in ?? ()
#64 0x00000000 in ?? ()
#65 0x00000000 in ?? ()
#66 0x00000000 in ?? ()
#67 0x411a4c60 in vtable for QDomCharacterData ()
   from /usr/qt/3/lib/libqt-mt.so.3
#68 0x00000000 in ?? ()
#69 0x00000000 in ?? ()
#70 0x00000000 in ?? ()
#71 0x00000000 in ?? ()
#72 0x00000000 in ?? ()
#73 0x00000000 in ?? ()
#74 0x4076d9b0 in posix_memalign () from /usr/kde/3.3/lib/libkdecore.so.4
#75 0x0804e681 in ?? ()
#76 0x00000001 in ?? ()
#77 0x08104fe4 in ?? ()
#78 0x08104fe9 in ?? ()
#79 0x00000000 in ?? ()
#80 0x00000001 in ?? ()
#81 0x08104ffa in ?? ()
#82 0x00000000 in ?? ()
#83 0x00000000 in ?? ()
#84 0x00000000 in ?? ()
#85 0x08104ffe in ?? ()
#86 0x08104ffe in ?? ()
#87 0x00000000 in ?? ()
#88 0x00000000 in ?? ()
#89 0x08104fed in ?? ()
#90 0x00000001 in ?? ()
#91 0x00000000 in ?? ()
#92 0x08104fe9 in ?? ()
#93 0x08104fe4 in ?? ()
#94 0x00000001 in ?? ()
#95 0x08104fe0 in ?? ()
#96 0x00000000 in ?? ()
#97 0x00000000 in ?? ()
#98 0x00000000 in ?? ()
#99 0x0000000a in ?? ()
#100 0x0000004b in ?? ()
#101 0x08052aa0 in vtable for QCString ()
#102 0x0807c3b0 in ?? ()
#103 0x0000000a in ?? ()
#104 0x00001166 in ?? ()
#105 0x08052aa0 in vtable for QCString ()
#106 0x0807c390 in ?? ()
#107 0x0000000a in ?? ()
#108 0xbffff644 in ?? ()
#109 0x00000001 in ?? ()
#110 0x0000000a in ?? ()
#111 0xbffff644 in ?? ()
#112 0xbffff750 in ?? ()
#113 0x0804eb5e in ?? ()
#114 0x00000008 in ?? ()
#115 0x00000002 in ?? ()
#116 0x00000002 in ?? ()
#117 0x00001166 in ?? ()
#118 0x00000000 in ?? ()
#119 0x00000003 in ?? ()
#120 0x00000008 in ?? ()
#121 0x00fff594 in ?? ()
#122 0x4076d9b0 in posix_memalign () from /usr/kde/3.3/lib/libkdecore.so.4


i'm using kate 3.2.1 (kde 3.3.1) on gentoo (gcc3.3.4)
Comment 10 Christoph Cullmann 2004-11-10 10:29:29 UTC
*** Bug 87508 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Cullmann 2004-11-10 10:31:23 UTC
*** Bug 92058 has been marked as a duplicate of this bug. ***
Comment 12 George Staikos 2004-12-01 22:08:21 UTC
Please retest with updated CVS-HEAD kdelibs.  I think I fixed this one today in kdecore too.  Reopen if not.
Comment 13 Nicolas Goutte 2005-01-07 14:52:51 UTC
*** Bug 96269 has been marked as a duplicate of this bug. ***
Comment 14 Nicolas Goutte 2005-01-07 14:58:32 UTC
*** Bug 96276 has been marked as a duplicate of this bug. ***
Comment 15 Dominik Stadler 2005-01-07 17:17:01 UTC
How do I find out which changes were actually done for this fix?

I am trying to test this, but would like to avoid going to CVS/Latest for all of KDE.
Comment 16 Justin Mitchell 2005-01-27 01:09:44 UTC
Same problem with KDE 3.3.1. w/ Kate 2.3.1.

Using host libthread_db library "/lib64/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 182920554720 (LWP 6174)]
[KCrash handler]
#3  0x00000000011c4780 in ?? ()
#4  0x0000003574548e2d in QObject::disconnect ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#5  0x0000002a96a05d57 in KAccelPrivate::eventFilter ()
   from /usr/lib64/libkdecore.so.4
#6  0x00000035745482c7 in QObject::activate_filters ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#7  0x00000035745483ae in QObject::event ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#8  0x000000357457c5a3 in QWidget::event ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#9  0x00000035746269f5 in QMainWindow::event ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#10 0x0000002a959330e1 in KMdiMainFrm::event () from /usr/lib64/libkmdi.so.1
#11 0x00000035744f20cd in QApplication::internalNotify ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#12 0x00000035744f27f4 in QApplication::notify ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#13 0x0000002a969870ce in KApplication::notify ()
   from /usr/lib64/libkdecore.so.4
#14 0x0000002a96a03f19 in KAccelEventHandler::x11Event ()
   from /usr/lib64/libkdecore.so.4
#15 0x0000002a9698989e in KApplication::x11EventFilter ()
   from /usr/lib64/libkdecore.so.4
#16 0x000000357448b5e1 in qt_set_x11_event_filter ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#17 0x00000035744973e6 in QApplication::x11ProcessEvent ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#18 0x00000035744a874b in QEventLoop::processEvents ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#19 0x0000003574506185 in QEventLoop::enterLoop ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#20 0x00000035745060e2 in QEventLoop::exec ()
   from /usr/lib64/qt-3.3/lib/libqt-mt.so.3
#21 0x0000003576201aff in kdemain () from /usr/lib64/libkdeinit_kate.so
#22 0x0000003f0671c4ca in __libc_start_main () from /lib64/tls/libc.so.6
#23 0x000000000040073a in ?? ()
#24 0x0000007fbffffa58 in ?? ()
#25 0x000000000000001c in ?? ()
#26 0x0000000000000001 in ?? ()
#27 0x0000007fbffffc85 in ?? ()
#28 0x0000000000000000 in ?? ()