Bug 61225 - Crash in File->Save As
Summary: Crash in File->Save As
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: kfile (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: VHI crash
Target Milestone: ---
Assignee: Carsten Pfeiffer
URL:
Keywords:
: 61329 61838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-14 17:46 UTC by Matt Rogers
Modified: 2003-09-18 16:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the backtrace (5.05 KB, text/plain)
2003-07-14 17:47 UTC, Matt Rogers
Details
Valgrind of kword crash (5.39 KB, text/plain)
2003-07-27 23:18 UTC, Joseph Wenninger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rogers 2003-07-14 17:46:07 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2.3 
OS:          Linux

When using File->Save As in Kate (or KWrite), the application crashes when clicking on either the "Save" or the "Cancel" button. A backtrace will be attached.
Comment 1 Matt Rogers 2003-07-14 17:47:10 UTC
Created attachment 2002 [details]
the backtrace
Comment 2 Matt Rogers 2003-07-14 17:48:37 UTC
Forgot to mention that the file does get saved, the crash occurs when the dialog is 
destroyed. 
Comment 3 Christoph Cullmann 2003-07-21 14:51:34 UTC
no idea, seems kdelibs problem, worked whole time, now borked since 1-2 weeks, 
here my bt: 
 
[New Thread 16384 (LWP 2804)] 
0x41445af9 in wait4 () from /lib/libc.so.6 
#0  0x41445af9 in wait4 () from /lib/libc.so.6 
#1  0x414b8f60 in sys_sigabbrev () from /lib/libc.so.6 
#2  0x407d0660 in KCrash::_crashHandler () from /opt/kde/lib/libkdecore.so.4 
#3  0x41445aab in waitpid () from /lib/libc.so.6 
#4  0x41272061 in waitpid () from /lib/libpthread.so.0 
#5  0x407267e2 in KCrash::defaultCrashHandler(int) (sig=11) at kcrash.cpp:240 
#6  <signal handler called> 
#7  0x40afd188 in QWidget::~QWidget() () from /opt/qt/lib/libqt-mt.so.3 
#8  0x40bd92b4 in QScrollBar::~QScrollBar() () from /opt/qt/lib/libqt-mt.so.3 
#9  0x40bdbd49 in QScrollView::~QScrollView() () from /opt/qt/lib/libqt-mt.so.3 
#10 0x40b9c1ac in QListBox::~QListBox() () from /opt/qt/lib/libqt-mt.so.3 
#11 0x4057bdda in ~KCompletionBox (this=0x827e178) at kcompletionbox.cpp:48 
#12 0x404b66e5 in ~KLineEdit (this=0x827e880) at klineedit.cpp:114 
#13 0x40afd243 in QWidget::~QWidget() () from /opt/qt/lib/libqt-mt.so.3 
#14 0x40b65fb0 in QComboBox::~QComboBox() () from /opt/qt/lib/libqt-mt.so.3 
#15 0x4053e3b1 in ~KComboBox (this=0x827c120) at kcombobox.cpp:80 
#16 0x402eba22 in ~KURLComboBox (this=0x827c120) at qptrlist.h:70 
#17 0x40afd7a3 in QWidget::~QWidget() () from /opt/qt/lib/libqt-mt.so.3 
#18 0x40afd243 in QWidget::~QWidget() () from /opt/qt/lib/libqt-mt.so.3 
#19 0x40c506b4 in QDialog::~QDialog() () from /opt/qt/lib/libqt-mt.so.3 
#20 0x405101d5 in ~KDialogBase (this=0xbfffed30) at kdialogbase.cpp:107 
#21 0x402cd176 in ~KFileDialog (this=0xbfffed30) at kfiledialog.cpp:194 
#22 0x41d130e6 in ~KateFileDialog (this=0x2a) at katefiledialog.cpp:84 
#23 0x41d024dc in KateView::saveAs() (this=0x8190c38) at qshared.h:50 
#24 0x41cfbc81 in KateView::qt_invoke(int, QUObject*) (this=0x8190c38, _id=121, 
_o=0xbfffef20) at kateview.moc:580 
#25 0x40acbe61 in QObject::activate_signal(QConnectionList*, QUObject*) () from /
opt/qt/lib/libqt-mt.so.3 
#26 0x40acbc5d in QObject::activate_signal(int) () from /opt/qt/lib/libqt-mt.so.3 
#27 0x404957d4 in KAction::activated() (this=0x81a79a0) at qmetaobject.h:261 
#28 0x40494e87 in KAction::slotActivated() (this=0x81a79a0) at kaction.cpp:1054 
#29 0x40495978 in KAction::qt_invoke(int, QUObject*) (this=0x81a79a0, _id=14, 
_o=0xbffff040) at kaction.moc:181 
#30 0x40acbddf in QObject::activate_signal(QConnectionList*, QUObject*) () from /opt/
qt/lib/libqt-mt.so.3 
#31 0x40acbc5d in QObject::activate_signal(int) () from /opt/qt/lib/libqt-mt.so.3 
#32 0x40df3dd4 in QButton::clicked() () from /opt/qt/lib/libqt-mt.so.3 
#33 0x40b6197c in QButton::mouseReleaseEvent(QMouseEvent*) () from /opt/qt/lib/
libqt-mt.so.3 
#34 0x40b02782 in QWidget::event(QEvent*) () from /opt/qt/lib/libqt-mt.so.3 
#35 0x40a6f5e1 in QApplication::internalNotify(QObject*, QEvent*) () from /opt/qt/lib/
libqt-mt.so.3 
#36 0x40a6ecf5 in QApplication::notify(QObject*, QEvent*) () from /opt/qt/lib/libqt-mt.
so.3 
#37 0x406908ff in KApplication::notify(QObject*, QEvent*) (this=0x80530b0, 
receiver=0x823f1d8, event=0xbffff470) at kapplication.cpp:460 
#38 0x40a07fab in QETWidget::translateMouseEvent(_XEvent const*) () from /opt/qt/
lib/libqt-mt.so.3 
#39 0x40a05b6b in QApplication::x11ProcessEvent(_XEvent*) () from /opt/qt/lib/libqt-
mt.so.3 
#40 0x40a1b091 in QEventLoop::processEvents(unsigned) () from /opt/qt/lib/libqt-mt.
so.3 
#41 0x40a83233 in QEventLoop::enterLoop() () from /opt/qt/lib/libqt-mt.so.3 
#42 0x40a830f8 in QEventLoop::exec() () from /opt/qt/lib/libqt-mt.so.3 
#43 0x40a6f810 in QApplication::exec() () from /opt/qt/lib/libqt-mt.so.3 
#44 0x40021897 in kdemain (argc=1, argv=0xbffff9e4) at kwritemain.cpp:643 
#45 0x0804864f in main (argc=1, argv=0xbffff9e4) at kwrite.la.cpp:2 
 
Comment 4 Christoph Cullmann 2003-07-23 23:33:10 UTC
workaround in kate part: 
 
in the file kdelibs/kate/part/katefiledialog.cpp 
 
change: 
  setMode(KFile::File); 
  setOperationMode( Saving ); 
 
  QStringList filter; 
  filter << "all/allfiles"; 
  filter << "text/plain"; 
  setMimeFilter (filter, "all/allfiles"); 
 
to: 
  setFilter ("all/allfiles test/plain"); 
   
  setMode(KFile::File); 
  setOperationMode( Saving ); 
 
 
WORKS :// 
that is not nice, and not documented 
Comment 5 Joseph Wenninger 2003-07-25 11:00:25 UTC
Hi 
 
Koffice is unusable because of the same problem at the moment :( 
Save as simply crashes after klicking on ok, with the same BT (#1-#21) 
 
Kind regards 
Joseph Wenninger 
Comment 6 Carsten Pfeiffer 2003-07-25 13:20:08 UTC
Is it the change from setMimeFilter() to setFilter() that keeps it from crashing or the 
order in which those methods are called? 
 
I'm trying to debug it, but I updated Qt yesterday and need to recompile everything 
now, so that takes some time :( 
Comment 7 Carsten Pfeiffer 2003-07-26 17:53:09 UTC
Subject: kdelibs/kio/kfile/tests

CVS commit by pfeiffer: 

really, I cannot reproduce #61225 (with current qt-copy, i.e. 3.2)
cullmann, jowenn, matt, can you have a look at kfdtest.cpp and see if you
can modify it to reproduce the crash?
cd kio/kfile/tests && make kfstest && ./kfstest eventloop

CCMAIL: crossfire@babylon2k.de, kde@jowenn.at, 61225@bugs.kde.org


  A            kfdtest.cpp   1.1 [no copyright]
  A            kfdtest.h   1.1 [UNKNOWN]
  M +1 -1      Makefile.am   1.14
  M +11 -2     kfstest.cpp   1.8


--- kdelibs/kio/kfile/tests/Makefile.am  #1.13:1.14
@@ -33,5 +33,5 @@
 kcustommenueditortest_SOURCES = kcustommenueditortest.cpp
 kurlrequestertest_SOURCES = kurlrequestertest.cpp
-kfstest_SOURCES = kfstest.cpp
+kfstest_SOURCES = kfstest.cpp kfdtest.cpp
 kfiletreeviewtest_SOURCES = kfiletreeviewtest.cpp
 kopenwithtest_SOURCES = kopenwithtest.cpp

--- kdelibs/kio/kfile/tests/kfstest.cpp  #1.7:1.8
@@ -40,4 +40,6 @@
 #include <kicondialog.h>
 
+#include "kfdtest.h"
+
 int main(int argc, char **argv)
 {
@@ -93,8 +95,9 @@ int main(int argc, char **argv)
         KFileDialog *dlg = new KFileDialog( startDir, QString::null, 0L,
                                             "file dialog", true );
+        dlg->setMode( KFile::File);
     dlg->setOperationMode( KFileDialog::Saving );
     QStringList filter;
-    filter << "text/plain" << "text/html";
-    dlg->setMimeFilter( filter, "text/plain" );
+    filter << "all/allfiles" << "text/plain";
+    dlg->setMimeFilter( filter, "all/allfiles" );
 
         if ( dlg->exec() == KDialog::Accepted )
@@ -102,4 +105,10 @@ int main(int argc, char **argv)
     }
 
+    else if ( argv1 == QString::fromLatin1("eventloop") )
+    {
+        KFDTest *test = new KFDTest( startDir );
+        return a.exec();
+    }
+    
     else if (argv1 == QString::fromLatin1("save")) {
         KURL u = KFileDialog::getSaveURL();


Comment 8 Joseph Wenninger 2003-07-27 23:18:56 UTC
Created attachment 2090 [details]
Valgrind of kword crash
Comment 9 Clarence Dang 2003-08-20 08:45:11 UTC
*** Bug 61838 has been marked as a duplicate of this bug. ***
Comment 10 Clarence Dang 2003-08-20 08:46:39 UTC
*** Bug 61329 has been marked as a duplicate of this bug. ***
Comment 11 Zbigniew Lisiecki 2003-09-18 12:34:53 UTC
hi, i can reproduce a simmilar bug in SuSE 8.1 Linux after an KDE3.0 -> 3.1 
update. it may be connected with wrong libqt-mt version. See also 
http://www.kde-forum.org/viewtopic.php?t=1258 for my bt. The same seem to 
happen when i save kword document with tables. Tables doesn't work too ! 
(one cannot expand an upper row), but our bug #61225 seem not to depend on a 
misconfigured table. 
Comment 12 Carsten Pfeiffer 2003-09-18 14:51:49 UTC
The bug is fixed in CVS already (please update to KDE 3.1.4) 
Comment 13 Matt Rogers 2003-09-18 16:47:12 UTC
yup, it's fixed (at least for kate). haven't been able to reproduce this for quite some time 
now. Thanks Carsten.