Bug 170076 - Severe mail loss after a KMail crash when moving folders
Summary: Severe mail loss after a KMail crash when moving folders
Status: RESOLVED DUPLICATE of bug 161554
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 14:20 UTC by Unai Garro
Modified: 2009-07-18 18:04 UTC (History)
2 users (show)

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 Unai Garro 2008-08-30 14:20:15 UTC
Version:           4.1.64 (using Devel)
Compiler:          gcc 4.2.3  gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
OS:                Linux
Installed from:    Compiled sources

kmail seems to crash very reproduceably when moving local folders.

I usually easily reproduce it by having /LocalFolder/FolderA and /LocalFolder/FolderA/FolderB, and try moving FolderB to LocalFolder.

If not during the move, on the next click on the folder it crashes most of the times.

The backtrace always finishes in the folderType() method:
 
#5  0x00007fcd05f947c0 in KMFolder::folderType () from /usr/local/kde4/lib/libkmailprivate.so.4
#6  0x00007fcd05f297ee in KMFolderTree::doFolderSelected () from /usr/local/kde4/lib/libkmailprivate.so.4
#7  0x00007fcd05f299bb in KMFolderTree::contentsMouseReleaseEvent () from /usr/local/kde4/lib/libkmailprivate.so.4
#8  0x00007fccfe3584ee in Q3ScrollView::viewportMouseReleaseEvent (this=0xc2c880, e=0x7fff10b03d90) at widgets/q3scrollview.cpp:1761
#9  0x00007fccfe3590b1 in Q3ScrollView::eventFilter (this=0xc2c880, obj=0xc2e720, e=0x7fff10b03d90) at widgets/q3scrollview.cpp:1479
#10 0x00007fccfe2ef092 in Q3ListView::eventFilter (this=0xc2c880, o=0xc2e720, e=0x7fff10b03d90) at itemviews/q3listview.cpp:3777
#11 0x00007fcd05f256b1 in KMFolderTree::eventFilter () from /usr/local/kde4/lib/libkmailprivate.so.4
#12 0x00007fcd069ecab3 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x63a4e0, receiver=0xc2e720, event=0x7fff10b03d90) at kernel/qcoreapplication.cpp:698
#13 0x00007fcd077b6a26 in QApplicationPrivate::notify_helper (this=0x63a4e0, receiver=0xc2e720, e=0x7fff10b03d90) at kernel/qapplication.cpp:3796
#14 0x00007fcd077b75e8 in QApplication::notify (this=0x7fff10b04cb0, receiver=0xc2e720, e=0x7fff10b03d90) at kernel/qapplication.cpp:3527
#15 0x00007fcd07201efb in KApplication::notify () from /usr/local/kde4/lib/libkdeui.so.5
#16 0x00007fcd069ee576 in QCoreApplication::notifyInternal (this=0x7fff10b04cb0, receiver=0xc2e720, event=0x7fff10b03d90) at kernel/qcoreapplication.cpp:587
#17 0x00007fcd077c29e5 in QCoreApplication::sendSpontaneousEvent (receiver=0xc2e720, event=0x7fff10b03d90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#18 0x00007fcd077bb1ea in QApplicationPrivate::sendMouseEvent (receiver=0xc2e720, event=0x7fff10b03d90, alienWidget=0xc2e720, nativeWidget=0x94b490, buttonDown=0x7fcd082100c8, 
    lastMouseReceiver=@0x7fcd082100d0) at kernel/qapplication.cpp:2792
#19 0x00007fcd0782f999 in QETWidget::translateMouseEvent (this=0x94b490, event=0x7fff10b04770) at kernel/qapplication_x11.cpp:4048
#20 0x00007fcd0782d1d4 in QApplication::x11ProcessEvent (this=0x7fff10b04cb0, event=0x7fff10b04770) at kernel/qapplication_x11.cpp:3044
#21 0x00007fcd0785942d in x11EventSourceDispatch (s=0x63db20, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#22 0x00007fcd027173d4 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0x00007fcd0271a6e5 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0x00007fcd0271abcb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0x00007fcd06a1c82c in QEventDispatcherGlib::processEvents (this=0x639610, flags=@0x7fff10b049f0) at kernel/qeventdispatcher_glib.cpp:325
#26 0x00007fcd07858c3f in QGuiEventDispatcherGlib::processEvents (this=0x639610, flags=@0x7fff10b04a50) at kernel/qguieventdispatcher_glib.cpp:204
#27 0x00007fcd069eb6c0 in QEventLoop::processEvents (this=0x7fff10b04b10, flags=@0x7fff10b04ad0) at kernel/qeventloop.cpp:149
#28 0x00007fcd069eb8bc in QEventLoop::exec (this=0x7fff10b04b10, flags=@0x7fff10b04b30) at kernel/qeventloop.cpp:196
#29 0x00007fcd069eedc0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:849
#30 0x00007fcd077b67ac in QApplication::exec () at kernel/qapplication.cpp:3330
Comment 1 Unai Garro 2008-08-30 14:24:16 UTC
"If not during the move, on the next click on the folder"

I should have written on the next click on _any_ folder.

Also as add-on note, after the crash, I've found some case when neither the e-mails were in the destination, nor the origin, so e-mails are lost completely.
Comment 2 Unai Garro 2008-10-05 10:27:25 UTC
Update on this bug... I tried the same process again. Now kmail doesn't crash, but after moving a rather large folder with multiple subfolders, everything except the root folder (all subfolders and e-mails) were missing. They showed in the list after the move, but when clicked, they were missing. They disappearede completely from the list after an application restart.

I changed the bug from crash status to grave, since now it doesn't crash but e-mails get lost after the move.

Comment 3 Unai Garro 2008-10-07 23:34:10 UTC
Sounds like nobody is having this bug? or is it not important enough that it can cause a severe mail loss? Not a single comment to confirm?? uhmmm... closed.
Comment 4 Dario Andres 2008-12-31 14:42:08 UTC

*** This bug has been marked as a duplicate of bug 168513 ***
Comment 5 roland 2009-07-05 21:58:46 UTC
Re-open whichever bug number of these duplicates.  I can confirm this bug happens regularly.

Application: Kontact (kontact), signal SIGSEGV
0x00007fc48543bce1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fc490b83750 (LWP 3934))]

Thread 2 (Thread 0x7fc477086950 (LWP 4074)):
#0  0x00007fc485466662 in select () from /lib64/libc.so.6
#1  0x00007fc4906af366 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x00007fc4905e6f72 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007fc490373070 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fc48546d10d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc490b83750 (LWP 3934)):
[KCrash Handler]
#5  0x00007fc48c1ffdbe in Q3ListView::contentsMousePressEventEx(QMouseEvent*) () from /usr/lib64/libQt3Support.so.4
#6  0x00007fc48bbeff7e in K3ListView::contentsMousePressEvent(QMouseEvent*) () from /usr/lib64/libkde3support.so.4
#7  0x00007fc48c255f89 in Q3ScrollView::viewportMousePressEvent(QMouseEvent*) () from /usr/lib64/libQt3Support.so.4
#8  0x00007fc48c2576d6 in Q3ScrollView::eventFilter(QObject*, QEvent*) () from /usr/lib64/libQt3Support.so.4
#9  0x00007fc48c1fb17e in Q3ListView::eventFilter(QObject*, QEvent*) () from /usr/lib64/libQt3Support.so.4
#10 0x00007fc4906ce358 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#11 0x00007fc48725b18c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007fc4872637fa in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#13 0x00007fc48fb80d6b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#14 0x00007fc4906cf091 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#15 0x00007fc487262b98 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#16 0x00007fc4872c7059 in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007fc4872c5a77 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fc4872ec214 in ?? () from /usr/lib64/libQtGui.so.4
#19 0x00007fc484d010fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#20 0x00007fc484d048cd in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x00007fc484d04a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#22 0x00007fc4906f74ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#23 0x00007fc4872eb9bf in ?? () from /usr/lib64/libQtGui.so.4
#24 0x00007fc4906cd9a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#25 0x00007fc4906cdb2d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#26 0x00007fc4906cfffd in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#27 0x0000000000404a95 in _start ()
Comment 6 Dario Andres 2009-07-07 21:07:16 UTC
@roland@logikalsolutions.com: 
- What is your KDE4 version ?
- What were you doing when the application crashed? 
Your backtrace do not look too much similar as the first one.
Thanks
Comment 7 roland 2009-07-07 21:25:47 UTC
I have no idea on how to check the KDE version.  It is the latest and greatest 4.x version shipping with OpenSuSE 11.1.  I have all updates applied.

I was moving a folder from a sub folder up to the same level as its parent under "local folders".

Once I did that, we called Sys$boom
Comment 8 Dario Andres 2009-07-07 21:30:43 UTC
@roland@logikalsolutions.com: run Konsole, type "kmail --version" + Return and you will get both KMail and KDE versions. Thanks
Comment 9 roland 2009-07-07 21:34:20 UTC
roland@linux-j7oz:~> kmail --version
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3) "release 4.10.4"
KMail: 1.10.3
roland@linux-j7oz:~>



On Tuesday 07 July 2009 02:31:10 pm Dario Andres wrote:
> https://bugs.kde.org/show_bug.cgi?id=170076
>
>
>
>
>
> --- Comment #8 from Dario Andres <andresbajotierra gmail com>  2009-07-07
> 21:30:43 --- @roland@logikalsolutions.com: run Konsole, type "kmail
> --version" + Return and you will get both KMail and KDE versions. Thanks
Comment 10 Christophe Marin 2009-07-18 18:04:36 UTC
Q3ListView disappeared from KMail in KDE 4.2. Please upgrade your version.

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