Bug 196763 - kmail crash - attachement related
Summary: kmail crash - attachement related
Status: RESOLVED DUPLICATE of bug 195893
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-16 16:16 UTC by S. Umar
Modified: 2009-07-06 19:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kmail crash report (2.26 KB, text/plain)
2009-07-01 17:14 UTC, S. Umar
Details
gdb crash report (10.33 KB, text/plain)
2009-07-01 17:32 UTC, S. Umar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S. Umar 2009-06-16 16:16:27 UTC
Version:            (using KDE 4.2.4)
Compiler:          gcc-4.3.2 
OS:                Linux
Installed from:    Fedora RPMs

Kmail crashes (experienced multiple times doing the same steps)
when an e-mail with an attachement is sent and one immediately
moves to read mail from inbox. Possibly also when new mail is 
coming when one is being sent at the same time.
FYI, Thanks
Comment 1 Dario Andres 2009-06-16 20:38:18 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? Thanks
Comment 2 S. Umar 2009-07-01 15:23:44 UTC
OK....I can reproduce it everytime as follows:

  1. Choose a folder that has "mbox" format (does not happen for maildir format).
  2. With the mouse right button choose to "compact" the mail folder.
  3. Click on any message in the message window.

Here is the last part of valgrind output:

==27517==                                                                                                                              
==27517== Invalid read of size 8                                                                                                       
==27517==    at 0x35C9CA79DF: (within /usr/lib64/libkmailprivate.so.4.2.0)                                                             
==27517==    by 0x35C9B8809D: KMMainWidget::updateMessageActions() (in /usr/lib64/libkmailprivate.so.4.2.0)                            
==27517==    by 0x35C9B9E7B4: KMMainWidget::qt_metacall(QMetaObject::Call, int, void**) (in /usr/lib64/libkmailprivate.so.4.2.0)
==27517==    by 0x3CAE359421: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQtCore.so.4.5.1)
==27517==    by 0x3CAE353702: QObject::event(QEvent*) (in /usr/lib64/libQtCore.so.4.5.1)
==27517==    by 0x35BFD8F46C: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib64/libQtGui.so.4.5.1)
==27517==    by 0x35BFD976E9: QApplication::notify(QObject*, QEvent*) (in /usr/lib64/libQtGui.so.4.5.1)
==27517==    by 0x35C0A070AA: KApplication::notify(QObject*, QEvent*) (in /usr/lib64/libkdeui.so.5.2.0)
==27517==    by 0x3CAE3437DB: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib64/libQtCore.so.4.5.1)
==27517==    by 0x3CAE370A08: (within /usr/lib64/libQtCore.so.4.5.1)
==27517==    by 0x3CAE36D11C: (within /usr/lib64/libQtCore.so.4.5.1)
==27517==    by 0x380C2377BA: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.1800.4)
==27517==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
*** KMail got signal 11 (Crashing)
KCrash: Application 'kmail' crashing...
sock_file=/home/umar/.kde/socket-compsci.cas.vanderbilt.edu/kdeinit4__0
Comment 3 S. Umar 2009-07-01 17:14:00 UTC
Created attachment 34978 [details]
kmail crash report
Comment 4 S. Umar 2009-07-01 17:32:16 UTC
Created attachment 34979 [details]
gdb crash report
Comment 5 S. Umar 2009-07-03 03:12:46 UTC
This bug seems to be the same as bug#188219 
I am not closing it since the patch described above has
not been ported to KDE 4.2 branch.
Comment 6 Christophe Marin 2009-07-06 19:18:27 UTC
Backtrace from comment #4 :

kmail(29237) KMail::MessageListView::StorageModel::releaseMessage: Trying to release a message at row  4  that no longer exists in the folder                                                                                                                                 

Program received signal SIGSEGV, Segmentation fault.
KMail::MessageListView::Widget::getSelectionStats (this=0x692120, selectedSernums=@0x7fffffffd0d0, 
    selectedVisibleSernums=@0x7fffffffd0c0, allSelectedBelongToSameThread=0x7fffffffd0ef,          
    includeCollapsedChildren=<value optimized out>) at /usr/src/debug/kdepim-4.2.4/kmail/messagelistview/widget.cpp:579
579         selectedSernums.append( mb->getMsgSerNum() );                                                              
Missing separate debuginfos, use: debuginfo-install OpenEXR-libs-1.6.1-4.fc10.x86_64 aspell-0.60.6-3.fc10.x86_64 bzip2-libs-1.0.5-3.fc10.x86_64 cyrus-sasl-lib-2.1.22-19.fc10.x86_64 dbus-libs-1.2.4-4.fc10.x86_64 e2fsprogs-libs-1.41.4-6.fc10.x86_64 enchant-1.4.2-4.fc10.x86_64 expat-2.0.1-5.x86_64 fontconfig-2.6.0-3.fc10.x86_64 freetype-2.3.9-1.fc10.x86_64 gamin-0.1.9-6.fc10.x86_64 giflib-4.1.6-2.fc10.x86_64 glib2-2.18.4-2.fc10.x86_64 glibc-2.9-3.x86_64 gpgme-1.1.7-1.fc10.x86_64 hunspell-1.2.7-5.fc10.x86_64 ilmbase-1.0.1-2.fc9.x86_64 jasper-libs-1.900.1-9.fc10.x86_64 kdebase-runtime-libs-4.2.4-1.1.fc10.x86_64 kdelibs-4.2.4-2.1.fc10.x86_64 keyutils-libs-1.2-3.fc9.x86_64 krb5-libs-1.6.3-18.fc10.x86_64 lcms-libs-1.18-2.fc10.x86_64 libICE-1.0.4-4.fc10.x86_64 libSM-1.1.0-2.fc10.x86_64 libX11-1.1.5-4.fc10.x86_64 libXau-1.0.4-1.fc10.x86_64 libXcursor-1.1.9-3.fc10.x86_64 libXdmcp-1.0.2-6.fc10.x86_64 libXext-1.0.4-1.fc9.x86_64 libXfixes-4.0.3-4.fc10.x86_64 libXft-2.1.13-1.fc10.x86_64 libXi-1.1.3-4.fc9.x86_64 libXinerama-1.0.3-2.fc10.x86_64 libXpm-3.5.7-4.fc9.x86_64 libXrandr-1.2.3-1.fc10.x86_64 libXrender-0.9.4-3.fc9.x86_64 libXtst-1.0.3-3.fc9.x86_64 libacl-2.2.47-3.fc10.x86_64 libattr-2.4.43-2.fc10.x86_64 libcap-2.10-2.fc10.x86_64 libgcc-4.3.2-7.x86_64 libgpg-error-1.6-2.x86_64 libical-0.43-4.fc10.x86_64 libjpeg-6b-43.fc10.x86_64 libmng-1.0.9-7.x86_64 libpng-1.2.37-1.fc10.x86_64 libselinux-2.0.78-1.fc10.x86_64 libstdc++-4.3.2-7.x86_64 libtiff-3.8.2-11.fc10.x86_64 libutempter-1.1.5-2.fc9.x86_64 libxcb-1.1.91-6.fc10.x86_64 libxml2-2.7.3-1.fc10.x86_64 linuxwacom-0.8.0.3-8.fc10.x86_64 openldap-2.4.12-1.fc10.x86_64 openssl-0.9.8g-14.fc10.x86_64 pcre-7.8-1.fc10.x86_64 phonon-4.3.1-6.fc10.x86_64 qt-4.5.1-13.fc10.x86_64 qt-x11-4.5.1-13.fc10.x86_64 soprano-2.2.3-1.fc10.x86_64 strigi-libs-0.6.4-4.fc10.x86_64 zlib-1.2.3-18.fc9.x86_64                                               
(gdb) thread apply all backtrace

Thread 1 (Thread 0x7ffff7af8810 (LWP 29237)):
#0  KMail::MessageListView::Widget::getSelectionStats (this=0x692120, selectedSernums=@0x7fffffffd0d0,
    selectedVisibleSernums=@0x7fffffffd0c0, allSelectedBelongToSameThread=0x7fffffffd0ef,
    includeCollapsedChildren=<value optimized out>) at /usr/src/debug/kdepim-4.2.4/kmail/messagelistview/widget.cpp:579
#1  0x00000035c9b8809e in KMMainWidget::updateMessageActions (this=0x672bd0)
    at /usr/src/debug/kdepim-4.2.4/kmail/kmmainwidget.cpp:4291
#2  0x00000035c9b9e7b5 in KMMainWidget::qt_metacall (this=0x672bd0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
    _a=0x7fffffffd1f0) at /usr/src/debug/kdepim-4.2.4/x86_64-redhat-linux-gnu/kmail/kmmainwidget.moc:364
#3  0x0000003cae359422 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#4  0x0000003cae353703 in QObject::event () from /usr/lib64/libQtCore.so.4
#5  0x00000035bfd8f46d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#6  0x00000035bfd976ea in QApplication::notify () from /usr/lib64/libQtGui.so.4
#7  0x00000035c0a070ab in KApplication::notify () from /usr/lib64/libkdeui.so.5
#8  0x0000003cae3437dc in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#9  0x0000003cae370a09 in ?? () from /usr/lib64/libQtCore.so.4
#10 0x0000003cae36d11d in ?? () from /usr/lib64/libQtCore.so.4
#11 0x000000380c2377bb in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#12 0x000000380c23af8d in ?? () from /lib64/libglib-2.0.so.0
#13 0x000000380c23b14b in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#14 0x0000003cae36d07f in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#15 0x00000035bfe2675f in ?? () from /usr/lib64/libQtGui.so.4
#16 0x0000003cae342082 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#17 0x0000003cae34244d in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#18 0x0000003cae344714 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#19 0x0000000000402b5b in main (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/src/debug/kdepim-4.2.4/kmail/main.cpp:146
Comment 7 Christophe Marin 2009-07-06 19:21:20 UTC

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