Bug 280832

Summary: crash after moving mails to different account
Product: [Frameworks and Libraries] Akonadi Reporter: Milian Wolff <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: Hrdlickovi
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2011-08-26 12:11:10 UTC
Application: kmail (4.8 pre)
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.3
Operating System: Linux 3.0-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
crash after I moved ~50 mails to a different imap account.

the cli outputted this information:

*** glibc detected *** kmail: corrupted double-linked list: 0x00000000088b8da0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x731f6)[0x7f0eec51a1f6]
/lib/libc.so.6(+0x73693)[0x7f0eec51a693]
/lib/libc.so.6(+0x7452f)[0x7f0eec51b52f]
/lib/libc.so.6(__libc_malloc+0x6d)[0x7f0eec51dbbd]
/usr/lib/libQtCore.so.4(_ZN10QByteArray7reallocEi+0x38)[0x7f0eed23d078]
/usr/lib/libQtCore.so.4(_ZN10QByteArray6resizeEi+0x49)[0x7f0eed23d199]
/usr/lib/libQtNetwork.so.4(_ZN15QAbstractSocket9writeDataEPKcx+0x117)[0x7f0eedbc85b7]
/usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf)[0x7f0eed2bf26f]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(+0x15e239)[0x7f0eef5bb239]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(_ZN7Akonadi14SessionPrivate9writeDataERK10QByteArray+0x35)[0x7f0eef5fa457]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(+0x168fa3)[0x7f0eef5c5fa3]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(+0x15533d)[0x7f0eef5b233d]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(_ZN7Akonadi12ItemFetchJob7doStartEv+0x14b)[0x7f0eef5b28af]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(+0x168b41)[0x7f0eef5c5b41]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(_ZN7Akonadi14SessionPrivate8startJobEPNS_3JobE+0xa1)[0x7f0eef5fa16f]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(_ZN7Akonadi14SessionPrivate11doStartNextEv+0x11f)[0x7f0eef5fa0c5]
/home/milian/projects/compiled/kde4/lib/libakonadi-kde.so.4(_ZN7Akonadi7Session11qt_metacallEN11QMetaObject4CallEiPPv+0x11d)[0x7f0eef5fb45f]
/usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x36e)[0x7f0eed33839e]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xb4)[0x7f0eedff3174]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x121)[0x7f0eedff7fe1]
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x36)[0x7f0ef271a226]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f0eed321bbc]
/usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x2af)[0x7f0eed324f2f]
/usr/lib/libQtCore.so.4(+0x185413)[0x7f0eed34c413]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1dd)[0x7f0ee285e29d]
/usr/lib/libglib-2.0.so.0(+0x42a78)[0x7f0ee285ea78]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x69)[0x7f0ee285ed09]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x76)[0x7f0eed34c876]
/usr/lib/libQtGui.so.4(+0x25a1be)[0x7f0eee0961be]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f0eed320db2]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xa7)[0x7f0eed320fb7]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x8b)[0x7f0eed3251ab]
kmail[0x403676]
/lib/libc.so.6(__libc_start_main+0xed)[0x7f0eec4c813d]
kmail[0x402659]
======= Memory map: ========
00400000-00405000 r-xp 00000000 08:12 1184471                            /home/development/projects/compiled/kde4/bin/kmail
00605000-00606000 rw-p 00005000 08:12 1184471                            /home/development/projects/compiled/kde4/bin/kmail
01cf5000-01d79000 rw-p 00000000 00:00 0                                  [heap]
01d79000-0bc02000 rw-p 00000000 00:00 0                                  [heap]
7f0ec37ff000-7f0ec3800000 ---p 00000000 00:00 0 
7f0ec3800000-7f0ec4000000 rw-p 00000000 00:00 0 
7f0ec4000000-7f0ec4085000 rw-p 00000000 00:00 0 
7f0ec4085000-7f0ec8000000 ---p 00000000 00:00 0 
7f0ec820f000-7f0ec830f000 rw-p 00000000 00:00 0 
7f0ec830f000-7f0ec8310000 ---p 00000000 00:00 0 
7f0ec8310000-7f0ec8c18000 rw-p 00000000 00:00 0 
7f0ec8c18000-7f0ec8c43000 r--p 00000000 08:03 14865                      /usr/share/fonts/TTF/FreeMonoBold.ttf
7f0ec8c43000-7f0ec8c44000 r--p 00000000 08:03 53096                      /usr/share/fonts/100dpi/courB08-ISO8859-1.pcf.gz
7f0ec8c44000-7f0ec8c5c000 r--p 00000000 08:03 57146                      /usr/share/fonts/Type1/n022003l.pfb
7f0ec8c5c000-7f0ec8c75000 r--p 00000000 08:03 66081                      /usr/share/fonts/Type1/n022004l.pfb
7f0ec8c75000-7f0ec8cb1000 r--p 00000000 08:03 66692                      /usr/share/fonts/TTF/couri.ttf
7f0ec8cb1000-7f0ec8cfe000 r--p 00000000 08:03 66714                      /usr/share/fonts/TTF/courbd.ttf
7f0ec8cfe000-7f0ec8d18000 r--p 00000000 08:03 66709                      /usr/share/fonts/TTF/andalemo.ttf
7f0ec8d18000-7f0ec8d24000 r--p 00000000 08:03 22045                      /usr/share/fonts/TTF/VeraMoBd.ttf
7f0ec8d24000-7f0ec8d25000 ---p 00000000 00:00 0 
7f0ec8d25000-7f0ec9525000 rw-p 00000000 00:00 0 
7f0ec9525000-7f0ec9526000 ---p 00000000 00:00 0 
7f0ec9526000-7f0ec9e26000 rw-p 00000000 00:00 0 
7f0ec9e26000-7f0ec9e2b000 r-xp 00000000 08:12 1231469                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_xdiff.so
7f0ec9e2b000-7f0eca02a000 ---p 00005000 08:12 1231469                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_xdiff.so
7f0eca02a000-7f0eca02b000 rw-p 00004000 08:12 1231469                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_xdiff.so
7f0eca02b000-7f0eca034000 r-xp 00000000 08:12 1231435                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_vcard.so
7f0eca034000-7f0eca233000 ---p 00009000 08:12 1231435                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_vcard.so
7f0eca233000-7f0eca234000 rw-p 00008000 08:12 1231435                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_vcard.so
7f0eca234000-7f0eca262000 r-xp 00000000 08:12 1224133                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_calendar.so
7f0eca262000-7f0eca462000 ---p 0002e000 08:12 1224133                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_calendar.so
7f0eca462000-7f0eca464000 rw-p 0002e000 08:12 1224133                    /home/development/projects/compiled/kde4/lib/kde4/messageviewer_bodypartformatter_text_calendar.so
7f0eca464000-7f0eca5ad000 r-xp 00000000 08:12 1210069                    /home/development/projects/compiled/kde4/lib/libkcal.so.4.7.0*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing...

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f0ef2cff780 (LWP 13754))]

Thread 6 (Thread 0x7f0ed539e700 (LWP 13757)):
#0  0x00007f0eecfb5ac4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0ee60860ea in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f0ee60861d9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f0eecfb1d60 in start_thread () from /lib/libpthread.so.0
#4  0x00007f0eec57a25d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0ecbfff700 (LWP 13815)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f0ecbffeaf0 in ?? ()
#2  0x00007fffab0c27e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x7f0ecb5f0700 (LWP 13846)):
#0  0x00007f0eec574093 in select () from /lib/libc.so.6
#1  0x00007f0eed303741 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f0eed23b0f5 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f0eecfb1d60 in start_thread () from /lib/libpthread.so.0
#4  0x00007f0eec57a25d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0ec9d25700 (LWP 14147)):
#0  0x00007f0eecfb5e3b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0eed23b50e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0eed22febf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f0eed23b0f5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f0eecfb1d60 in start_thread () from /lib/libpthread.so.0
#5  0x00007f0eec57a25d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0ed36ff700 (LWP 14148)):
#0  0x00007f0eec586d1b in ?? () from /lib/libc.so.6
#1  0x00007f0eec51fcaf in ?? () from /lib/libc.so.6
#2  0x00007f0eec51e0c1 in free () from /lib/libc.so.6
#3  0x00007f0ee2859ed5 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f0eed34c5d7 in QEventDispatcherGlib::~QEventDispatcherGlib() () from /usr/lib/libQtCore.so.4
#5  0x00007f0eed34c7e9 in QEventDispatcherGlib::~QEventDispatcherGlib() () from /usr/lib/libQtCore.so.4
#6  0x00007f0eed23a254 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f0eed23b0fd in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0eecfb1d60 in start_thread () from /lib/libpthread.so.0
#9  0x00007f0eec57a25d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0ef2cff780 (LWP 13754)):
[KCrash Handler]
#6  0x00007f0eec4db725 in raise () from /lib/libc.so.6
#7  0x00007f0eec4dcb9b in abort () from /lib/libc.so.6
#8  0x00007f0eec5142de in ?? () from /lib/libc.so.6
#9  0x00007f0eec51a1f6 in ?? () from /lib/libc.so.6
#10 0x00007f0eec51a693 in ?? () from /lib/libc.so.6
#11 0x00007f0eec51b52f in ?? () from /lib/libc.so.6
#12 0x00007f0eec51dbbd in malloc () from /lib/libc.so.6
#13 0x00007f0eed23d078 in QByteArray::realloc(int) () from /usr/lib/libQtCore.so.4
#14 0x00007f0eed23d199 in QByteArray::resize(int) () from /usr/lib/libQtCore.so.4
#15 0x00007f0eedbc85b7 in QAbstractSocket::writeData(char const*, long long) () from /usr/lib/libQtNetwork.so.4
#16 0x00007f0eed2bf26f in QIODevice::write(char const*, long long) () from /usr/lib/libQtCore.so.4
#17 0x00007f0eef5bb239 in QIODevice::write (this=0x20b0060, data=...) at /usr/include/QtCore/qiodevice.h:127
#18 0x00007f0eef5fa457 in Akonadi::SessionPrivate::writeData (this=0x1db0000, data=...) at /home/milian/projects/kde4/kdepimlibs/akonadi/session.cpp:327
#19 0x00007f0eef5c5fa3 in Akonadi::JobPrivate::writeData (this=0xb2aa690, data=...) at /home/milian/projects/kde4/kdepimlibs/akonadi/job.cpp:210
#20 0x00007f0eef5b233d in Akonadi::ItemFetchJobPrivate::startFetchJob (this=0xb2aa690) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:109
#21 0x00007f0eef5b28af in Akonadi::ItemFetchJob::doStart (this=0xa57b2b0) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:166
#22 0x00007f0eef5c5b41 in Akonadi::JobPrivate::startQueued (this=0xb2aa690) at /home/milian/projects/kde4/kdepimlibs/akonadi/job.cpp:153
#23 0x00007f0eef5fa16f in Akonadi::SessionPrivate::startJob (this=0x1db0000, job=0xa57b2b0) at /home/milian/projects/kde4/kdepimlibs/akonadi/session.cpp:267
#24 0x00007f0eef5fa0c5 in Akonadi::SessionPrivate::doStartNext (this=0x1db0000) at /home/milian/projects/kde4/kdepimlibs/akonadi/session.cpp:256
#25 0x00007f0eef5fb45f in Akonadi::Session::qt_metacall (this=0x20b1680, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x8c84ee0) at /home/milian/projects/.build/kde4/kdepimlibs/akonadi/session.moc:97
#26 0x00007f0eed33839e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00007f0eedff3174 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007f0eedff7fe1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007f0ef271a226 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0x00007f0eed321bbc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#31 0x00007f0eed324f2f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#32 0x00007f0eed34c413 in ?? () from /usr/lib/libQtCore.so.4
#33 0x00007f0ee285e29d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0x00007f0ee285ea78 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x00007f0ee285ed09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0x00007f0eed34c876 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007f0eee0961be in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007f0eed320db2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007f0eed320fb7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0x00007f0eed3251ab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#41 0x0000000000403676 in main (argc=1, argv=0x7fffab02d068) at /home/milian/projects/kde4/kdepim/kmail/main.cpp:145

Possible duplicates by query: bug 274989, bug 257258.

Reported using DrKonqi
Comment 1 Tarpast 2012-04-06 13:10:53 UTC
I confirm it. Kmail crash after moving much e-mails in to different account, but too pop3 accounts.
Comment 2 Denis Kurz 2016-09-24 20:36: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 3 Denis Kurz 2017-01-07 22:36:46 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.