Bug 59297 - kmail initial configuration dialog crashes
Summary: kmail initial configuration dialog crashes
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 59298 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-03 21:18 UTC by Holger Schröder
Modified: 2007-09-14 12:17 UTC (History)
0 users

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 Holger Schröder 2003-06-03 21:18:03 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Hi,

kmail from a fresh cvs head checkout crashes. do this to reproduce it:

be sure to have never started kmail with the KDEHOME before, aka delete the kmail config files.

now start kmail. the new configuration dialog appears, there you can select if you want groupware functions or not and stuff like that. don't change anything, just click ok.

now a dialog appears, where you can enter your name, organization and email address. enter your name and leave the dialog untouched for some minutes, it crashes.


thanks, Holger

following is the backtrace:

(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)...[New Thread 16384 (LWP 23826)]
0x41d19759 in wait4 () from /lib/libc.so.6
#0  0x41d19759 in wait4 () from /lib/libc.so.6
#1  0x41d9320c in __DTOR_END__ () from /lib/libc.so.6
#2  0x41b122f9 in waitpid () from /lib/libpthread.so.0
#3  0x40ec739d in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#4  <signal handler called>
#5  0x41575682 in QGListIterator::QGListIterator(QGList const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#6  0x0809a9bb in QValueListPrivate<KURL>::QValueListPrivate(QValueListPrivate<KURL> const&) ()
#7  0x0809f19f in kmcrashHandler ()
#8  0x40ec7a37 in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#9  <signal handler called>
#10 0x41575682 in QGListIterator::QGListIterator(QGList const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#11 0x0809a9bb in QValueListPrivate<KURL>::QValueListPrivate(QValueListPrivate<KURL> const&) ()
#12 0x0809ccd4 in KMKernel::staticMetaObject() ()
#13 0x4128f956 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#14 0x4128f721 in QObject::activate_signal(int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0x415fba1b in QTimer::timeout() () from /usr/qt/3/lib/libqt-mt.so.3
#16 0x412b4aa2 in QTimer::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#17 0x4122c8c7 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#18 0x4122bce5 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#19 0x40e22de9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#20 0x4121a7a0 in QEventLoop::activateTimers() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x411d3f9e in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x41242126 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#23 0x4122cbb1 in QApplication::enter_loop() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#24 0x41431ae1 in QDialog::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#25 0x0817ad40 in QPtrList<KCal::Attendee>::deleteItem(void*) ()
#26 0x0809ac6d in QValueListPrivate<KURL>::QValueListPrivate(QValueListPrivate<KURL> const&) ()
#27 0x08093c60 in QComboBox::setEditText(QString const&) ()
#28 0x40ee9aa8 in KUniqueApplication::processDelayed() ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#29 0x40ee9fef in KUniqueApplication::qt_invoke(int, QUObject*) ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#30 0x4128f956 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#31 0x415f9649 in QSignal::signal(QVariant const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#32 0x412abf88 in QSignal::activate() () from /usr/qt/3/lib/libqt-mt.so.3
#33 0x412b4c63 in QSingleShotTimer::event(QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#34 0x4122c8c7 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#35 0x4122bce5 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#36 0x40e22de9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/cvs/lib/libkdecore.so.4
#37 0x4121a7a0 in QEventLoop::activateTimers() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#38 0x411d3f9e in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#39 0x41242126 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#40 0x41241fc8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#41 0x4122cb51 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#42 0x08093fc5 in QComboBox::setEditText(QString const&) ()
#43 0x41c83d90 in __libc_start_main () from /lib/libc.so.6
Comment 1 Thiago Macieira 2003-06-04 00:21:57 UTC
*** Bug 59298 has been marked as a duplicate of this bug. ***
Comment 2 Stephan Kulow 2003-06-04 09:07:06 UTC
Please compile with --enable-debug=full and start kmail with --nofork 
your backtrace is useless and I don't want to remove my kmailrc :) 
Comment 3 Till Adam 2003-06-04 20:39:44 UTC
Subject: kdepim/kmail

CVS commit by tilladam: 

Don't crash when dumpDeadLetters is called before we have a main window.

CCMAIL: 59297-done@bugs.kde.org


  M +7 -5      kmkernel.cpp   1.184


--- kdepim/kmail/kmkernel.cpp  #1.183:1.184
@@ -1052,13 +1052,15 @@ void KMKernel::dumpDeadLetters()
   mDeadLetterTimer->stop();
   QWidget *win;
-  QPtrListIterator<KMainWindow> it(*KMainWindow::memberList);
   QDir dir = QDir::home();
   QString fname = dir.path();
   QFile::remove(fname + "/dead.letter.tmp");
+  if (KMainWindow::memberList) {
+    QPtrListIterator<KMainWindow> it(*KMainWindow::memberList);
 
   while ((win = it.current()) != 0) {
     ++it;
     if (win->inherits("KMComposeWin")) ((KMComposeWin*)win)->deadLetter();
-//    delete win; // WABA: Don't delete, we might crash in there!
+      //    delete win; // WABA: Don't delete, we might crash in there!
+    }
   }
   QFile::remove(fname + "/dead.letter");