Bug 93440 - kmail shows empty folder index and crashes when clicking on a mail
Summary: kmail shows empty folder index and crashes when clicking on a mail
Status: RESOLVED DUPLICATE of bug 89549
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.7.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-17 12:11 UTC by Jens
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the folder index (7.95 KB, image/png)
2004-11-17 12:12 UTC, Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2004-11-17 12:11:11 UTC
Version:           1.7.1 (using KDE 3.3.1, SuSE)
Compiler:          gcc version 3.3.3 (SuSE Linux)
OS:                Linux (i686) release 2.6.5-7.111-default

Hi,

This is new in KMail 1.7.1 (KDE 3.3.1). I have never experienced this in KMail 1.6.x (KDE 3.2.3).

See screenshot attachment - when I enter an IMAP folder that is currently being updated, KMail's folder index shows all mails for a split-second, then they vanish and only the "tree structure" is visible. 

I can expand and contract the "[-]" signs at the left side at will, and select an (empty) line - but when I double-click on a line KMail crashes. This seems to be heavily timing dependant because I cannot reproduce it all the time, only sporadically.


Here's a backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1536)]
[KCrash handler]
#5  0x40297ff5 in KMMsgBase::transferInProgress ()
   from /opt/kde3/lib/libkmailprivate.so.0
#6  0x401ecc7a in KMHeaders::selectMessage ()
   from /opt/kde3/lib/libkmailprivate.so.0
#7  0x401f6050 in KMHeaders::qt_invoke ()
   from /opt/kde3/lib/libkmailprivate.so.0
#8  0x41a3b13e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x41d94495 in QListView::doubleClicked ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x414248c8 in KListView::contentsMouseDoubleClickEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#11 0x41b53a12 in QScrollView::viewportMouseDoubleClickEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x41b54eb6 in QScrollView::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x41b24d88 in QListView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x401f6d70 in KMHeaders::eventFilter ()
   from /opt/kde3/lib/libkmailprivate.so.0
#15 0x41a3b9de in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41a3bac0 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x41a706af in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x419d940f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x419db778 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x41673d5e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#21 0x41977dc3 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x41976c9d in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x419875d5 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x419f1071 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x419f0eb6 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x419dae8f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x0804a996 in main ()
Comment 1 Jens 2004-11-17 12:12:17 UTC
Created attachment 8313 [details]
Screenshot showing the folder index
Comment 2 Jens 2004-11-17 13:05:17 UTC
Just happened again.  this time, I sent an email which was saved to the same folder (IMAP), the folder view updated but all the mails vanished. Double clicking on one mail crashed KMail.

Is it possible to attach valgrind to a running KMail? Because I tried valgrind and KMail gets so slow that it is not possible having it run under valgrind all the time.

Here's a gdb output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1760)]
0x40297ff5 in KMMsgBase::transferInProgress ()
   from /opt/kde3/lib/libkmailprivate.so.0
(gdb) bt 20
#0  0x40297ff5 in KMMsgBase::transferInProgress ()
   from /opt/kde3/lib/libkmailprivate.so.0
#1  0x401ecc7a in KMHeaders::selectMessage ()
   from /opt/kde3/lib/libkmailprivate.so.0
#2  0x401f6050 in KMHeaders::qt_invoke ()
   from /opt/kde3/lib/libkmailprivate.so.0
#3  0x41a3b13e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#4  0x41d94495 in QListView::doubleClicked ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x414248c8 in KListView::contentsMouseDoubleClickEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#6  0x41b53a12 in QScrollView::viewportMouseDoubleClickEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x41b54eb6 in QScrollView::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0x41b24d88 in QListView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x401f6d70 in KMHeaders::eventFilter ()
   from /opt/kde3/lib/libkmailprivate.so.0
#10 0x41a3b9de in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x41a3bac0 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x41a706af in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x419d940f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x419db778 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x41673d5e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#16 0x41977dc3 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x41976c9d in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x419875d5 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x419f1071 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
(More stack frames follow...)
Comment 3 David Faure 2004-11-17 13:37:40 UTC
> Is it possible to attach valgrind to a running KMail?
No that is not possible - valgrind is a CPU emulator, it needs to run kmail from the start.
But if it happens that often, you can certainly run kmail in valgrind

valgrind --tool=memcheck --num-callers=50 kmail --nofork 2>&1 | tee log

Comment 4 Till Adam 2004-12-14 09:13:11 UTC

*** This bug has been marked as a duplicate of 89549 ***