Bug 290537

Summary: Kontact crashes when deleting IMAP account
Product: [Frameworks and Libraries] Akonadi Reporter: Jessie A. Morris <jessie>
Component: libakonadiAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash    
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jessie A. Morris 2012-01-03 21:59:57 UTC
Application: kontact (4.8 rc1)
KDE Platform Version: 4.7.95 (4.8 RC1 (4.7.95)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-14-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
I selected an account to remove it, and clicked remove. It caused Kontact to crash. I will update this bug with info on whether or not it removed the account.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0x7f93bde027a0 (LWP 6274))]

Thread 5 (Thread 0x7f93a3f4e700 (LWP 6275)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f93ba662c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f93ba662d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f93b5e46efc in start_thread (arg=0x7f93a3f4e700) at pthread_create.c:304
#4  0x00007f93bb37089d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f93a364d700 (LWP 6276)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f93bb30d9df in _L_lock_10501 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f93bb30bd71 in __GI___libc_free (mem=0x7f93bb6291c0) at malloc.c:3736
#3  0x00007f93bbacdc63 in QTimerInfoList::unregisterTimer (this=0x25de7a0, timerId=905969669) at kernel/qeventdispatcher_unix.cpp:499
#4  0x00007f93bbabcd51 in stop (this=0x27a8680) at kernel/qtimer.cpp:257
#5  QTimer::stop (this=0x27a8680) at kernel/qtimer.cpp:254
#6  0x00007f93bbabce55 in QTimer::timerEvent (this=0x27a8680, e=<optimized out>) at kernel/qtimer.cpp:270
#7  0x00007f93bbab8789 in QObject::event (this=0x27a8680, e=<optimized out>) at kernel/qobject.cpp:1181
#8  0x00007f93bc4a2424 in notify_helper (e=0x7f93a364cb80, receiver=0x27a8680, this=0x25dbe80) at kernel/qapplication.cpp:4486
#9  QApplicationPrivate::notify_helper (this=0x25dbe80, receiver=0x27a8680, e=0x7f93a364cb80) at kernel/qapplication.cpp:4458
#10 0x00007f93bc4a7291 in QApplication::notify (this=0x7fff86401810, receiver=0x27a8680, e=0x7f93a364cb80) at kernel/qapplication.cpp:4365
#11 0x00007f93bd1b6a46 in KApplication::notify (this=0x7fff86401810, receiver=0x27a8680, event=0x7f93a364cb80) at ../../kdeui/kernel/kapplication.cpp:311
#12 0x00007f93bbaa1afc in QCoreApplication::notifyInternal (this=0x7fff86401810, receiver=0x27a8680, event=0x7f93a364cb80) at kernel/qcoreapplication.cpp:787
#13 0x00007f93bbaced62 in sendEvent (event=0x7f93a364cb80, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#14 QTimerInfoList::activateTimers (this=0x25de7a0) at kernel/qeventdispatcher_unix.cpp:603
#15 0x00007f93bbacc538 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#16 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#17 0x00007f93b5974a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f93b5975258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f93b5975429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f93bbacced6 in QEventDispatcherGlib::processEvents (this=0x25dda10, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#21 0x00007f93bbaa0cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#22 0x00007f93bbaa0ef7 in QEventLoop::exec (this=0x7f93a364cde0, flags=...) at kernel/qeventloop.cpp:201
#23 0x00007f93bb9b827f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#24 0x00007f93bb9bad05 in QThreadPrivate::start (arg=0x272f580) at thread/qthread_unix.cpp:331
#25 0x00007f93b5e46efc in start_thread (arg=0x7f93a364d700) at pthread_create.c:304
#26 0x00007f93bb37089d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9353672700 (LWP 6304)):
#0  0x00007f93bb364773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f93b5974f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f93b5975429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f93bbaccf3e in QEventDispatcherGlib::processEvents (this=0x33ae0a0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f93bbaa0cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f93bbaa0ef7 in QEventLoop::exec (this=0x7f9353671db0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f93bb9b827f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f93bba83cbf in QInotifyFileSystemWatcherEngine::run (this=0x33e3490) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f93bb9bad05 in QThreadPrivate::start (arg=0x33e3490) at thread/qthread_unix.cpp:331
#9  0x00007f93b5e46efc in start_thread (arg=0x7f9353672700) at pthread_create.c:304
#10 0x00007f93bb37089d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f93517ff700 (LWP 10206)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f93bb30d9df in _L_lock_10501 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f93bb30bd71 in __GI___libc_free (mem=0x7f93bb6291c0) at malloc.c:3736
#3  0x00007f93bbaccdd6 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x2736790, __in_chrg=<optimized out>) at kernel/qeventdispatcher_glib.cpp:399
#4  0x00007f93bbacce49 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x2736790, __in_chrg=<optimized out>) at kernel/qeventdispatcher_glib.cpp:401
#5  0x00007f93bb9b9e34 in QThreadPrivate::finish (arg=0x36dfca0) at thread/qthread_unix.cpp:367
#6  0x00007f93bb9bad0d in ~__pthread_cleanup_class (this=<synthetic pointer>, __in_chrg=<optimized out>) at /usr/include/pthread.h:545
#7  ~__pthread_cleanup_class (this=<synthetic pointer>, __in_chrg=<optimized out>) at thread/qthread_unix.cpp:824
#8  QThreadPrivate::start (arg=0x36dfca0) at thread/qthread_unix.cpp:290
#9  0x00007f93b5e46efc in start_thread (arg=0x7f93517ff700) at pthread_create.c:304
#10 0x00007f93bb37089d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f93bde027a0 (LWP 6274)):
[KCrash Handler]
#6  0x00007f93bb2c53a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f93bb2c8b0b in __GI_abort () at abort.c:92
#8  0x00007f93bb2fd113 in __libc_message (do_abort=2, fmt=0x7f93bb3ee0d8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f93bb307a96 in malloc_printerr (action=3, str=0x7f93bb3ee278 "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:6283
#10 0x00007f93bb30bd7c in __GI___libc_free (mem=<optimized out>) at malloc.c:3738
#11 0x00007f93b813547c in qDeleteAll<QList<Node*>::const_iterator> (end=<optimized out>, begin=<optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:322
#12 qDeleteAll<QList<Node*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#13 Akonadi::EntityTreeModelPrivate::removeChildEntities (this=0x2cc4560, collectionId=191) at ../../akonadi/entitytreemodel_p.cpp:860
#14 0x00007f93b813541f in Akonadi::EntityTreeModelPrivate::removeChildEntities (this=0x2cc4560, collectionId=190) at ../../akonadi/entitytreemodel_p.cpp:855
#15 0x00007f93b813d449 in Akonadi::EntityTreeModelPrivate::monitoredCollectionRemoved (this=0x2cc4560, collection=...) at ../../akonadi/entitytreemodel_p.cpp:808
#16 0x00007f93b813d951 in Akonadi::EntityTreeModelPrivate::agentInstanceRemoved (this=0x2cc4560, instance=...) at ../../akonadi/entitytreemodel_p.cpp:254
#17 0x00007f93b812a399 in Akonadi::EntityTreeModel::qt_metacall (this=0x2bbf110, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff864005c0) at ./entitytreemodel.moc:175
#18 0x00007f93bbab4eba in QMetaObject::activate (sender=0x2bc57a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff864005c0) at kernel/qobject.cpp:3278
#19 0x00007f93b80c5075 in Akonadi::AgentManager::instanceRemoved (this=<optimized out>, _t1=<optimized out>) at ./agentmanager.moc:170
#20 0x00007f93b80c6071 in Akonadi::AgentManagerPrivate::agentInstanceRemoved (this=0x2c6e470, identifier=...) at ../../akonadi/agentmanager.cpp:117
#21 0x00007f93b80cbf29 in Akonadi::AgentManager::qt_metacall (this=0x2bc57a0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff864006f0) at ./agentmanager.moc:130
#22 0x00007f93bbab4eba in QMetaObject::activate (sender=0x2b93eb0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff864006f0) at kernel/qobject.cpp:3278
#23 0x00007f93b81fdfd5 in OrgFreedesktopAkonadiAgentManagerInterface::agentInstanceRemoved (this=<optimized out>, _t1=<optimized out>) at agentmanagerinterface.moc:278
#24 0x00007f93b81fe4be in OrgFreedesktopAkonadiAgentManagerInterface::qt_metacall (this=0x2b93eb0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff86400f80) at agentmanagerinterface.moc:166
#25 0x00007f93b84ae0e9 in QDBusConnectionPrivate::deliverCall (this=0x25d0fa0, object=0x2b93eb0, msg=..., metaTypes=..., slotIdx=11) at qdbusintegrator.cpp:942
#26 0x00007f93b84b738f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#27 0x00007f93bbab8a5e in QObject::event (this=0x2b93eb0, e=<optimized out>) at kernel/qobject.cpp:1217
#28 0x00007f93bc4a2424 in notify_helper (e=0x49da440, receiver=0x2b93eb0, this=0x25dbe80) at kernel/qapplication.cpp:4486
#29 QApplicationPrivate::notify_helper (this=0x25dbe80, receiver=0x2b93eb0, e=0x49da440) at kernel/qapplication.cpp:4458
#30 0x00007f93bc4a7291 in QApplication::notify (this=0x7fff86401810, receiver=0x2b93eb0, e=0x49da440) at kernel/qapplication.cpp:4365
#31 0x00007f93bd1b6a46 in KApplication::notify (this=0x7fff86401810, receiver=0x2b93eb0, event=0x49da440) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007f93bbaa1afc in QCoreApplication::notifyInternal (this=0x7fff86401810, receiver=0x2b93eb0, event=0x49da440) at kernel/qcoreapplication.cpp:787
#33 0x00007f93bbaa551f in sendEvent (event=0x49da440, receiver=0x2b93eb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x25b06b0) at kernel/qcoreapplication.cpp:1428
#35 0x00007f93bbacca73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#36 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#37 0x00007f93b5974a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f93b5975258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f93b5975429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f93bbacced6 in QEventDispatcherGlib::processEvents (this=0x25b2170, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#41 0x00007f93bc54a07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f93bbaa0cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f93bbaa0ef7 in QEventLoop::exec (this=0x7fff864017a0, flags=...) at kernel/qeventloop.cpp:201
#44 0x00007f93bbaa5789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#45 0x0000000000403629 in main (argc=1, argv=0x7fff86401e38) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 290162, bug 290083, bug 290055, bug 289855, bug 289831.

Reported using DrKonqi
Comment 1 Jessie A. Morris 2012-01-03 22:00:20 UTC
Account was successfully removed.
Comment 2 Denis Kurz 2016-09-24 20:42:04 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:07:54 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.