Bug 208245

Summary: Kmail 1.12.1 on KDE 4.3.1 crashes when new inbox created and file copied to it, then opened in it
Product: [Unmaintained] kmail Reporter: Jose Da Silva <Digital>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: arne_bab, kde-bugreport, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: this is kde bugreport from crash #2
crash #1
crash report with preview window shown below message list

Description Jose Da Silva 2009-09-23 08:34:52 UTC
Application that crashed: kmail
Version of the application: 1.12.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-desktop-2mnb i686
Distribution: "Mandriva Linux 2010.0"

What I was doing when the application crashed:
Currently testing Mandriva 2010.0 RC1 with KDE 4.3.1 and Kmail 1.12.1 and was able to repeatedly crash Kmail when I created a new folder, then copied an email from my inbox (in maildir format) into my new folder (I called inba which was in mbox format), then attempted to look at the new email in the inba folder, at which point Kmail crashed.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0x00000001 in ?? ()
#7  0xb757044a in ?? () from /usr/lib/libkmailprivate.so.4
#8  0xb75669dd in ?? () from /usr/lib/libkmailprivate.so.4
#9  0xb7566b33 in ?? () from /usr/lib/libkmailprivate.so.4
#10 0xb756a49d in ?? () from /usr/lib/libkmailprivate.so.4
#11 0xb71cac44 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb71cb965 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb7206365 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#14 0xb71d0576 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#15 0xb71c48fb in QObject::event () from /usr/lib/libQtCore.so.4
#16 0xb67d96cc in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#17 0xb67e110e in QApplication::notify () from /usr/lib/libQtGui.so.4
#18 0xb7e81a78 in KApplication::notify () from /usr/lib/libkdeui.so.5
#19 0xb71b475e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#20 0xb71e2c31 in ?? () from /usr/lib/libQtCore.so.4
#21 0xb71e047e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb4667bf2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb466b4c8 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb466b5ee in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb71e03c8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb687b51a in ?? () from /usr/lib/libQtGui.so.4
#27 0xb71b2d7d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#28 0xb71b31c9 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#29 0xb71b5660 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#30 0xb67d9544 in QApplication::exec () from /usr/lib/libQtGui.so.4
#31 0x0804a529 in _start ()

Reported using DrKonqi
Comment 1 Jose Da Silva 2009-09-23 08:38:19 UTC
Created attachment 37120 [details]
this is kde bugreport from crash #2

To be sure, I attempted to reproduce the crash. The 1st crash seen is actually the 3rd crash, this attachment is crash #2.
Comment 2 Jose Da Silva 2009-09-23 08:41:55 UTC
Created attachment 37121 [details]
crash #1

This was the 1st crash produced. To produce the crash, you need to have some emails within your inbox folder. Then create a new folder. My inbox is in maildir format, the new inbox is in mbox format, I named the new inbox with a nonsense name like inba. I then copied an email from my inbox into my inba folder. then I clicked on the email in my inba folder, which then made Kmail crash.
This is using Kmail in Mandriva 2010.0 RC1
Comment 3 Christophe Marin 2009-09-23 12:48:17 UTC
Unfortunately, the backtrace is not useful. If you can reproduce this bug, please install the debug package for kdepim and paste a better one.
More informations on this page: http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 4 Jose Da Silva 2009-09-24 07:32:01 UTC
This report happened when I pointed towards the "Local Folder" and right clicked to create a new inba folder (as mbox), copied a simple email from inbox (maildir format) by dragging the email to the inba folder and clicking copy.

When I clicked on the copied email within the inba folder, kmail crashed.


Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0x0a387380 in ?? ()
#7  0xb747544a in KMReaderWin::parseMsg (this=0x9ded060, aMsg=0xa2cf100) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1681
#8  0xb746b9dd in KMReaderWin::displayMessage (this=0x9ded060) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1605
#9  0xb746bb33 in KMReaderWin::updateReaderWin (this=0x9ded060) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1545
#10 0xb746f49d in KMReaderWin::qt_metacall (this=0x9ded060, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf948fac) at /usr/src/debug/kdepim-4.3.1/build/kmail/kmreaderwin.moc:168
#11 0xb70cfc44 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb70d0965 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb710b365 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#14 0xb70d5576 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#15 0xb70c98fb in QObject::event () from /usr/lib/libQtCore.so.4
#16 0xb66de6cc in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#17 0xb66e610e in QApplication::notify () from /usr/lib/libQtGui.so.4
#18 0xb7d86a78 in KApplication::notify () from /usr/lib/libkdeui.so.5
#19 0xb70b975e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#20 0xb70e7c31 in ?? () from /usr/lib/libQtCore.so.4
#21 0xb70e547e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb456ab92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb456e468 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb456e58e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb70e53c8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb678051a in ?? () from /usr/lib/libQtGui.so.4
#27 0xb70b7d7d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#28 0xb70b81c9 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#29 0xb70ba660 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#30 0xb66de544 in QApplication::exec () from /usr/lib/libQtGui.so.4
#31 0x0804a529 in main (argc=3, argv=0xbf9498b4) at /usr/src/debug/kdepim-4.3.1/kmail/main.cpp:146

You may note I copy and pasted the report this time because last time I copy and pasted to kwrite (then saved), but now kwrite crashes when I attempt to save the pasted data, so it may be that kwrite is also affected by the same bug maybe?
Comment 5 Jose Da Silva 2009-09-24 07:42:17 UTC
This trace produced while inbox was highlighted, and then I pointed to "File->New->Folder" and created a new folder called inbb (mbox format) which was then attached as a subfolder of inbox (maildir format). I then dragged an email from inbox and copied it into inbb. Then I pointed at inbb, highlighted the new and only email present in inbb and clicked the new email which then crashed kmail.

These crashes don't appear to happen if these new inboxes already exist with something already in them. If an email already exists before I drag something in, then I am okay.

I also notice that the preview panel is empty when I first click on these new inboxes after I have dragged an email into them.



Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0xb73aa447 in KMReaderWin::parseMsg (this=0x85961d0, aMsg=0x8cbdea8) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1681
#7  0xb73a09dd in KMReaderWin::displayMessage (this=0x85961d0) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1605
#8  0xb73a0b33 in KMReaderWin::updateReaderWin (this=0x85961d0) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1545
#9  0xb73a449d in KMReaderWin::qt_metacall (this=0x85961d0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf83df2c) at /usr/src/debug/kdepim-4.3.1/build/kmail/kmreaderwin.moc:168
#10 0xb7004c44 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb7005965 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb7040365 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#13 0xb700a576 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#14 0xb6ffe8fb in QObject::event () from /usr/lib/libQtCore.so.4
#15 0xb66136cc in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#16 0xb661b10e in QApplication::notify () from /usr/lib/libQtGui.so.4
#17 0xb7cbba78 in KApplication::notify () from /usr/lib/libkdeui.so.5
#18 0xb6fee75e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#19 0xb701cc31 in ?? () from /usr/lib/libQtCore.so.4
#20 0xb701a47e in ?? () from /usr/lib/libQtCore.so.4
#21 0xb449fb92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb44a3468 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0xb44a358e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#24 0xb701a3c8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#25 0xb66b551a in ?? () from /usr/lib/libQtGui.so.4
#26 0xb6fecd7d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#27 0xb6fed1c9 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#28 0xb6fef660 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#29 0xb6613544 in QApplication::exec () from /usr/lib/libQtGui.so.4
#30 0x0804a529 in main (argc=3, argv=0xbf83e834) at /usr/src/debug/kdepim-4.3.1/kmail/main.cpp:146
Comment 6 Jose Da Silva 2009-09-24 07:57:06 UTC
pointed to local folder and created a new folder.
Looked in the new folder called inbc (mbox format, empty, preview panel empty)

Copied an email from inbox (maildir format) into the new inbcc box, then looked at the inbcc box. Preview panel empty, clicked on the new (and only) email present, and then kmail crashed.

This bug seems repeatable.
I've added the Kwrite crash as bug 208351. Maybe the crash information within it may help resolve this crash as well as Kwrite's crash too.


Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0x098e9f8c in ?? ()
#7  0xb754a44a in KMReaderWin::parseMsg (this=0x94ef348, aMsg=0x935f338) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1681
#8  0xb75409dd in KMReaderWin::displayMessage (this=0x94ef348) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1605
#9  0xb7540b33 in KMReaderWin::updateReaderWin (this=0x94ef348) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:1545
#10 0xb754449d in KMReaderWin::qt_metacall (this=0x94ef348, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfbe7e3c) at /usr/src/debug/kdepim-4.3.1/build/kmail/kmreaderwin.moc:168
#11 0xb71a4c44 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb71a5965 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb71e0365 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#14 0xb71aa576 in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#15 0xb719e8fb in QObject::event () from /usr/lib/libQtCore.so.4
#16 0xb67b36cc in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#17 0xb67bb10e in QApplication::notify () from /usr/lib/libQtGui.so.4
#18 0xb7e5ba78 in KApplication::notify () from /usr/lib/libkdeui.so.5
#19 0xb718e75e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#20 0xb71bcc31 in ?? () from /usr/lib/libQtCore.so.4
#21 0xb71ba47e in ?? () from /usr/lib/libQtCore.so.4
#22 0xb463fb92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb4643468 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb464358e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb71ba3c8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb685551a in ?? () from /usr/lib/libQtGui.so.4
#27 0xb718cd7d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#28 0xb718d1c9 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#29 0xb718f660 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#30 0xb67b3544 in QApplication::exec () from /usr/lib/libQtGui.so.4
#31 0x0804a529 in main (argc=3, argv=0xbfbe8744) at /usr/src/debug/kdepim-4.3.1/kmail/main.cpp:146
Comment 7 Jose Da Silva 2009-10-12 23:33:59 UTC
More information plus crash details filed with the mandriva bugzilla.
https://qa.mandriva.com/show_bug.cgi?id=53942

It appears this crash is caused by the preview window - more details starting with comment 5 up to  9
https://qa.mandriva.com/show_bug.cgi?id=53942#c5
Comment 8 Jose Da Silva 2009-10-12 23:38:25 UTC
Created attachment 37547 [details]
crash report with preview window shown below message list

This crash report is already attached in https://qa.mandriva.com/show_bug.cgi?id=53942#c5

There are further snapshots taken in 6...9 at above page.
Comment 9 Jaime Torres 2009-10-13 10:34:11 UTC
This looks like a dup of bug 180741.
Comment 10 Jose Da Silva 2009-10-14 02:25:45 UTC
Thanks for pointing-out that bug, but you have several bugs in bug 180741 that may actually be separate problems. Some seem to sound like race-problems where one application looks for info before the other application flushes-out data.

This bug creates a segfault and appears only to happen if you enable the preview window, otherwise the problem does not appear to happen. I looked at bug 180741 and I think some of these bugs are related to the preview window:
bug 206180, bug 207197, bug 208296, (maybe if there was only 1 message in the trash then also) bug 208314, bug 209008, bug 209704.

I'll ask as https://bugs.kde.org/show_bug.cgi?id=180741#c41 hopefully it separates some of those bugs apart.
Comment 11 Nicolas L. 2009-10-17 05:40:06 UTC
backrace given comment #6
Comment 12 Christophe Marin 2009-10-17 21:47:36 UTC

*** This bug has been marked as a duplicate of bug 180741 ***
Comment 13 Dario Andres 2009-11-25 15:30:19 UTC
*** Bug 215869 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2009-12-15 12:53:40 UTC
*** Bug 215104 has been marked as a duplicate of this bug. ***