Bug 282654

Summary: crash on manually filtering multiple emails
Product: [Frameworks and Libraries] Akonadi Reporter: Milian Wolff <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: volker.rothert
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2011-09-24 00:26:40 UTC
Application: kmail (4.8 pre)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
I selected a bunch of emails, and triggered the action for the "mark as spam" action. This should run the mails through sa-learn and then move the mails, which then triggered a crash as seen below.

All packages should be git master from today.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f872cfbd780 (LWP 28088))]

Thread 5 (Thread 0x7f8710b49700 (LWP 28127)):
#0  0x00007f8726f69b04 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f87202ff5ba in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f87202ff6a9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f8726f65da0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f872652e7dd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8710248700 (LWP 28130)):
#0  0x00007f871cad0b87 in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#1  0x00007f871cad16da in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f871cad1d09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f872730166e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f87272d5a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f87272d5c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f87271ed13f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f87271efbc5 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f8726f65da0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f872652e7dd in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f870516b700 (LWP 880)):
#0  0x00007f8726f69e7b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f87271effde in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f87271e497f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f87271efbc5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f8726f65da0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f872652e7dd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f870e4fd700 (LWP 882)):
#0  0x00007f8726f69e7b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f87271effde in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f87271e497f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f87271efbc5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f8726f65da0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f872652e7dd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f872cfbd780 (LWP 28088)):
[KCrash Handler]
#6  0x00007f87271f28a0 in QByteArray::append(QByteArray const&) () from /usr/lib/libQtCore.so.4
#7  0x00007f872950deb5 in QByteArray::operator+= (this=0x7fff96acef50, a=...) at /usr/include/QtCore/qbytearray.h:492
#8  0x00007f872950f4aa in operator+ (a1=0x7f872963d2d6 "ATR:", a2=...) at /usr/include/QtCore/qbytearray.h:552
#9  0x00007f87295a8b68 in Akonadi::ProtocolHelper::encodePartIdentifier (ns=Akonadi::ProtocolHelper::PartAttribute, label=..., version=0) at /home/milian/projects/kde4/kdepimlibs/akonadi/protocolhelper.cpp:223
#10 0x00007f87295a962a in Akonadi::ProtocolHelper::itemFetchScopeToByteArray (fetchScope=...) at /home/milian/projects/kde4/kdepimlibs/akonadi/protocolhelper.cpp:292
#11 0x00007f8729581fc7 in Akonadi::ItemFetchJobPrivate::startFetchJob (this=0x6f5c5c0) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:107
#12 0x00007f872958271b in Akonadi::ItemFetchJob::doStart (this=0x6e9faf0) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:176
#13 0x00007f87295959a9 in Akonadi::JobPrivate::startQueued (this=0x6f5c5c0) at /home/milian/projects/kde4/kdepimlibs/akonadi/job.cpp:153
#14 0x00007f87295c9df3 in Akonadi::SessionPrivate::startJob (this=0x12ceea0, job=0x6e9faf0) at /home/milian/projects/kde4/kdepimlibs/akonadi/session.cpp:267
#15 0x00007f87295c9d49 in Akonadi::SessionPrivate::doStartNext (this=0x12ceea0) at /home/milian/projects/kde4/kdepimlibs/akonadi/session.cpp:256
#16 0x00007f87295cb0e3 in Akonadi::Session::qt_metacall (this=0x14de840, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x73f8700) at /home/milian/projects/.build/kde4/kdepimlibs/akonadi/session.moc:97
#17 0x00007f87272ed18e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f8727fb2ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f8727fb7951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f872c9d4c96 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f87272d689c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#22 0x00007f87272d9c2f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#23 0x00007f87273011a3 in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007f871cad129d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x00007f871cad1a78 in ?? () from /usr/lib/libglib-2.0.so.0
#26 0x00007f871cad1d09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#27 0x00007f8727301606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0x00007f8728055eee in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f87272d5a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007f87272d5c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#31 0x00007f87272d9eab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#32 0x0000000000403686 in main (argc=1, argv=0x7fff96acfd68) at /home/milian/projects/kde4/kdepim/kmail/main.cpp:145

Possible duplicates by query: bug 238603.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 20:43:51 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 21:57:20 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.