Bug 258041 - Mark a read mail as unread / moving emails [ref, QByteArray, MarkAsCommand::markMessages, MarkAsCommand::slotFetchDone]
Summary: Mark a read mail as unread / moving emails [ref, QByteArray, MarkAsCommand::m...
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 258438 258554 259799 279609 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-27 04:50 UTC by Felix Lemke
Modified: 2011-08-28 15:15 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.34 KB, text/plain)
2010-12-11 12:59 UTC, FabioLima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Lemke 2010-11-27 04:50:11 UTC
Application: kontact (4.6 pre)
KDE Platform Version: 4.5.80 (4.6 Beta1)
Qt Version: 4.7.1
Operating System: Linux 2.6.34.7-0.5-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Everytime I mark a read eMail as unread, kontact crashs (but I think it is more akonadi related).

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f11d3b87760 (LWP 3629))]

Thread 2 (Thread 0x7f11bc808710 (LWP 3630)):
#0  0x00007f11cbf5b39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f11d05dceb4 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f11cbf56a4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f11d118e82d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f11d3b87760 (LWP 3629)):
[KCrash Handler]
#6  ref (this=0x2913a00) at /usr/include/QtCore/qatomic_x86_64.h:121
#7  QByteArray (this=0x2913a00) at /usr/include/QtCore/qbytearray.h:422
#8  MarkAsCommand::markMessages (this=0x2913a00) at /usr/src/debug/kdepimlibs-4.5.80/akonadi/kmime/markascommand.cpp:105
#9  0x00007f11b9cbea20 in MarkAsCommand::slotFetchDone (this=0x2913a00, job=<value optimized out>) at /usr/src/debug/kdepimlibs-4.5.80/akonadi/kmime/markascommand.cpp:75
#10 0x00007f11b9cbebc0 in MarkAsCommand::qt_metacall (this=0x2913a00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7692dbc0)
    at /usr/src/debug/kdepimlibs-4.5.80/build/akonadi/kmime/markascommand_p.moc:74
#11 0x00007f11d2548fef in QMetaObject::activate (sender=0x2e4c890, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff7692dbc0) at kernel/qobject.cpp:3272
#12 0x00007f11d29296e2 in KJob::result (this=<value optimized out>, _t1=0x2e4c890) at /usr/src/debug/kdelibs-4.5.80/build/kdecore/kjob.moc:194
#13 0x00007f11d2929720 in KJob::emitResult (this=0x2e4c890) at /usr/src/debug/kdelibs-4.5.80/kdecore/jobs/kjob.cpp:312
#14 0x00007f11ce33f2fd in Akonadi::Job::qt_metacall (this=0x2e4c890, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x32086d0)
    at /usr/src/debug/kdepimlibs-4.5.80/build/akonadi/job.moc:91
#15 0x00007f11ce3a8f95 in Akonadi::ItemFetchJob::qt_metacall (this=0x2e4c890, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x32086d0)
    at /usr/src/debug/kdepimlibs-4.5.80/build/akonadi/itemfetchjob.moc:73
#16 0x00007f11d2547c6a in QObject::event (this=0x2e4c890, e=<value optimized out>) at kernel/qobject.cpp:1211
#17 0x00007f11d18f1cd4 in QApplicationPrivate::notify_helper (this=0x6408e0, receiver=0x2e4c890, e=0x3223810) at kernel/qapplication.cpp:4445
#18 0x00007f11d18fa1ca in QApplication::notify (this=<value optimized out>, receiver=0x2e4c890, e=0x3223810) at kernel/qapplication.cpp:4324
#19 0x00007f11d2ea6976 in KApplication::notify (this=0x7fff7692e680, receiver=0x2e4c890, event=0x3223810) at /usr/src/debug/kdelibs-4.5.80/kdeui/kernel/kapplication.cpp:311
#20 0x00007f11d2533e2c in QCoreApplication::notifyInternal (this=0x7fff7692e680, receiver=0x2e4c890, event=0x3223810) at kernel/qcoreapplication.cpp:732
#21 0x00007f11d2537625 in sendEvent (receiver=0x0, event_type=0, data=0x60d7f0) at kernel/qcoreapplication.h:215
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60d7f0) at kernel/qcoreapplication.cpp:1373
#23 0x00007f11d255e8f3 in sendPostedEvents (s=0x63ccf0) at kernel/qcoreapplication.h:220
#24 postEventSourceDispatch (s=0x63ccf0) at kernel/qeventdispatcher_glib.cpp:277
#25 0x00007f11cabf3a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f11cabf4270 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f11cabf4510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f11d255ea8f in QEventDispatcherGlib::processEvents (this=0x6138a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#29 0x00007f11d1996eae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007f11d2533262 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007f11d2533475 in QEventLoop::exec (this=0x7fff7692e5d0, flags=...) at kernel/qeventloop.cpp:201
#32 0x00007f11d25378db in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#33 0x0000000000404037 in main (argc=1, argv=0x7fff7692ec68) at /usr/src/debug/kdepim-4.5.80/kontact/src/main.cpp:217

Reported using DrKonqi
Comment 1 Dario Andres 2010-12-02 23:01:16 UTC
From bug 258554:
- What I was doing when the application crashed:
Started kde, open Kmail, moved a bunch of emails frm my inbox to another mail
subdir (using offline IMAP mail), then kmail crashes. Also, it's painfully slow. specially to check emails.
Comment 2 Dario Andres 2010-12-02 23:01:23 UTC
*** Bug 258554 has been marked as a duplicate of this bug. ***
Comment 3 Marcel Martin 2010-12-09 20:41:41 UTC
Same problem and backtrace here. To reproduce: Click on any message, hit Ctrl+U.

Selecting "Mark Message" -> "Mark Mail as Unread" in the context menu does NOT trigger the crash, but works as expected.
Comment 4 FabioLima 2010-12-11 12:59:59 UTC
Created attachment 54420 [details]
New crash information added by DrKonqi

kmail (2.0.89) on KDE Platform 4.5.80 (4.6 Beta1) using Qt 4.7.1

I maked the message as unread and tryied to move frpom an disconected imap folder to another, then kmail crashed.

-- Backtrace (Reduced):
#8  QByteArray (this=0xa25a3e8) at /usr/include/QtCore/qbytearray.h:422
#9  MarkAsCommand::markMessages (this=0xa25a3e8) at /home/phil/buildroot/desktop-testing/kdepimlibs/src/kdepimlibs-4.5.80/akonadi/kmime/markascommand.cpp:105
#10 0xb55094d2 in MarkAsCommand::slotFetchDone (this=0xa25a3e8, job=0xa2eb010) at /home/phil/buildroot/desktop-testing/kdepimlibs/src/kdepimlibs-4.5.80/akonadi/kmime/markascommand.cpp:75
#11 0xb550969d in MarkAsCommand::qt_metacall (this=0xa25a3e8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfb37b88)
    at /home/phil/buildroot/desktop-testing/kdepimlibs/src/build/akonadi/kmime/markascommand_p.moc:74
[...]
[...]
#14 0xb72f8ae3 in KJob::result (this=0xa2eb010, _t1=0xa2eb010) at /home/phil/buildroot/desktop-testing/kdelibs/src/build/kdecore/kjob.moc:194
Comment 5 Tobias Koenig 2010-12-11 23:51:38 UTC
*** Bug 258438 has been marked as a duplicate of this bug. ***
Comment 6 Torgny Nyblom 2010-12-20 12:40:49 UTC
*** Bug 259799 has been marked as a duplicate of this bug. ***
Comment 7 Torgny Nyblom 2010-12-20 12:41:09 UTC
SVN commit 1208032 by tnyblom:

Since "Unread == ! Read" and we have no flag for unread, adapt the logic
after that.

BUG: 258041


 M  +22 -18    standardmailactionmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1208032
Comment 8 Christophe Marin 2011-08-28 15:15:10 UTC
*** Bug 279609 has been marked as a duplicate of this bug. ***