Bug 292762 - With akonadi using an external mysql server, if mysql is restarted this lead to crash or errors
Summary: With akonadi using an external mysql server, if mysql is restarted this lead ...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 4.11
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 296054 303039 316647 319550 323087 324043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-29 08:47 UTC by Bruno Friedmann
Modified: 2017-01-07 22:37 UTC (History)
7 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 Bruno Friedmann 2012-01-29 08:47:15 UTC
Application: kontact (4.8.0)
KDE Platform Version: 4.8.00 (4.8.0 "release 462"
Qt Version: 4.8.0
Operating System: Linux 3.1.0-1.2-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: Define your setup like the following, use an external (not embedded) mysql instance and connect it with the socket option
UNIX_SOCKET=/var/run/mysql/mysql.sock

During normal day operation, mysql is started first, then a kde session with all akonadi stuff. If for a reason or another mysql is restarted, akonadi thing didn't catch the event and try to use the old /tmp/mysql.BLABLA temp directory which doesn't exist anymore
Then the whole Kontact (mainly kmail imap folder run warnings 
01_support: Unknown error. (There is no transaction in progress.) etc.

Trying a akonadi restart lead to that crash when kontact is open.

The crash can be reproduced every time.

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

Thread 3 (Thread 0x7fecbeca9700 (LWP 23333)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fecd3a10c12 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fecd43af1a0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00007fecd3a10c49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00007feccf080f05 in start_thread (arg=0x7fecbeca9700) at pthread_create.c:301
#4  0x00007fecd470063d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fecbe3a8700 (LWP 23339)):
#0  0x00007fecd46f7523 in poll () from /lib64/libc.so.6
#1  0x00007fecceb71a98 in g_main_context_poll (n_fds=1, fds=0x7fecb80013e0, timeout=2417, context=0x7fecb80009a0, priority=<optimized out>) at gmain.c:3386
#2  g_main_context_iterate (context=0x7fecb80009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00007fecceb71f59 in g_main_context_iteration (context=0x7fecb80009a0, may_block=1) at gmain.c:3136
#4  0x00007fecd4e6e956 in QEventDispatcherGlib::processEvents (this=0x7fecb80008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fecd4e3e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fecd4e3e8d7 in QEventLoop::exec (this=0x7fecbe3a7e20, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fecd4d3f537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fecd4d4255b in QThreadPrivate::start (arg=0x852a80) at thread/qthread_unix.cpp:298
#9  0x00007feccf080f05 in start_thread (arg=0x7fecbe3a8700) at pthread_create.c:301
#10 0x00007fecd470063d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fecd71e7760 (LWP 23324)):
[KCrash Handler]
#6  QModelIndex (other=..., this=0x7fff9bbd3260) at /usr/include/QtCore/qabstractitemmodel.h:65
#7  KSelectionProxyModelPrivate::mapTopLevelToSource (this=0x11aa8d0, row=0, column=0) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:1596
#8  0x00007fecd657df43 in KSelectionProxyModel::mapToSource (this=0x11a5090, proxyIndex=...) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:2124
#9  0x00007fecd657881f in KSelectionProxyModel::data (this=0x11a5090, index=..., role=34) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:2228
#10 0x00007fecd14c9f24 in data (arole=34, this=0x7fff9bbd33b0) at /usr/include/QtCore/qabstractitemmodel.h:402
#11 Akonadi::EntityMimeTypeFilterModel::filterAcceptsRow (this=<optimized out>, sourceRow=<optimized out>, sourceParent=...) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/entitymimetypefiltermodel.cpp:105
#12 0x00007fecd5e00e86 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x11a71b0, source_parent=..., start=<optimized out>, end=429, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:769
#13 0x00007fecd5e0116f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x11a71b0, source_parent=<optimized out>, start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1280
#14 0x00007fecd4e53761 in QMetaObject::activate (sender=0x11a5090, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd3670) at kernel/qobject.cpp:3556
#15 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=0, _t3=429) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#16 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x11a5090) at kernel/qabstractitemmodel.cpp:2433
#17 0x00007fecd6584188 in KSelectionProxyModelPrivate::insertSelectionIntoProxy (this=0x11aa8d0, selection=...) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:1936
#18 0x00007fecd65847a7 in KSelectionProxyModelPrivate::selectionChanged (this=0x11aa8d0, _selected=<optimized out>, _deselected=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kselectionproxymodel.cpp:1870
#19 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115db30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd3cc0) at kernel/qobject.cpp:3556
#20 0x00007fecd5dcb997 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#21 0x00007fecd5dd13d1 in QItemSelectionModel::emitSelectionChanged (this=0x115db30, newSelection=<optimized out>, oldSelection=<optimized out>) at itemviews/qitemselectionmodel.cpp:1600
#22 0x00007fecd5dd2781 in QItemSelectionModel::select (this=0x115db30, selection=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1110
#23 0x00007fecd5dcd9ca in QItemSelectionModel::select (this=0x115db30, index=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:985
#24 0x00007fecd656186e in KViewStateSaverPrivate::restoreSelection (this=0x36d8cd0) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:343
#25 0x00007fecd6561fba in KViewStateSaver::restoreSelection (this=<optimized out>, indexStrings=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:362
#26 0x00007fecd65620f8 in KViewStateSaverPrivate::processPendingChanges (this=0x36d8cd0) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:188
#27 0x00007fecd656269c in KViewStateSaver::restoreState (this=<optimized out>, configGroup=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:207
#28 0x00007fec6bd52d2c in KViewStateMaintainer<Akonadi::ETMViewStateSaver>::restoreState (this=0x1161950) at /usr/include/kviewstatemaintainer.h:101
#29 0x00007fec6bd40fe1 in ActionManager::restoreCollectionViewSetting (this=0x1157490) at /usr/src/debug/kdepim-4.8.0/korganizer/actionmanager.cpp:887
#30 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1162910, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#31 0x00007fec6bd60582 in AkonadiCollectionView::rowsInserted (this=0x1162910) at /usr/src/debug/kdepim-4.8.0/korganizer/akonadicollectionview.cpp:531
#32 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1163c30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd4390) at kernel/qobject.cpp:3556
#33 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#34 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x1163c30) at kernel/qabstractitemmodel.cpp:2433
#35 0x00007fecd5dfcd17 in QSortFilterProxyModelPrivate::insert_source_items (this=0x1163c50, source_to_proxy=..., proxy_to_source=..., source_items=<optimized out>, source_parent=<optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:695
#36 0x00007fecd5e018c5 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x1163c50, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1200
#37 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115de40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd4790) at kernel/qobject.cpp:3556
#38 0x00007fecd4e9fe77 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#39 0x00007fecd655184f in KCheckableProxyModelPrivate::selectionChanged (this=<optimized out>, selected=<optimized out>, deselected=...) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kcheckableproxymodel.cpp:122
#40 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115db30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd49e0) at kernel/qobject.cpp:3556
#41 0x00007fecd5dcb997 in QItemSelectionModel::selectionChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:166
#42 0x00007fecd5dd13d1 in QItemSelectionModel::emitSelectionChanged (this=0x115db30, newSelection=<optimized out>, oldSelection=<optimized out>) at itemviews/qitemselectionmodel.cpp:1600
#43 0x00007fecd5dd2781 in QItemSelectionModel::select (this=0x115db30, selection=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1110
#44 0x00007fecd5dcd9ca in QItemSelectionModel::select (this=0x115db30, index=<optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:985
#45 0x00007fecd656186e in KViewStateSaverPrivate::restoreSelection (this=0x36d8840) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:343
#46 0x00007fecd6561fba in KViewStateSaver::restoreSelection (this=<optimized out>, indexStrings=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:362
#47 0x00007fecd65620f8 in KViewStateSaverPrivate::processPendingChanges (this=0x36d8840) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:188
#48 0x00007fecd656269c in KViewStateSaver::restoreState (this=<optimized out>, configGroup=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/itemviews/kviewstatesaver.cpp:207
#49 0x00007fec6bd52d2c in KViewStateMaintainer<Akonadi::ETMViewStateSaver>::restoreState (this=0x1161950) at /usr/include/kviewstatemaintainer.h:101
#50 0x00007fec6bd40fe1 in ActionManager::restoreCollectionViewSetting (this=0x1157490) at /usr/src/debug/kdepim-4.8.0/korganizer/actionmanager.cpp:887
#51 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1162910, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#52 0x00007fec6bd60582 in AkonadiCollectionView::rowsInserted (this=0x1162910) at /usr/src/debug/kdepim-4.8.0/korganizer/akonadicollectionview.cpp:531
#53 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1163c30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd50b0) at kernel/qobject.cpp:3556
#54 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#55 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x1163c30) at kernel/qabstractitemmodel.cpp:2433
#56 0x00007fecd5dfcd17 in QSortFilterProxyModelPrivate::insert_source_items (this=0x1163c50, source_to_proxy=..., proxy_to_source=..., source_items=<optimized out>, source_parent=<optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:695
#57 0x00007fecd5e00e53 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x1163c50, source_parent=..., start=<optimized out>, end=<optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:806
#58 0x00007fecd5e0116f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x1163c50, source_parent=<optimized out>, start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1280
#59 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115de40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd5410) at kernel/qobject.cpp:3556
#60 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#61 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x115de40) at kernel/qabstractitemmodel.cpp:2433
#62 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115cdb0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd55d0) at kernel/qobject.cpp:3556
#63 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#64 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x115cdb0) at kernel/qabstractitemmodel.cpp:2433
#65 0x00007fecd5dfcd17 in QSortFilterProxyModelPrivate::insert_source_items (this=0x115d1c0, source_to_proxy=..., proxy_to_source=..., source_items=<optimized out>, source_parent=<optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:695
#66 0x00007fecd5e00e53 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x115d1c0, source_parent=..., start=<optimized out>, end=<optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:806
#67 0x00007fecd5e0116f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x115d1c0, source_parent=<optimized out>, start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1280
#68 0x00007fecd4e53761 in QMetaObject::activate (sender=0x115c5e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd5930) at kernel/qobject.cpp:3556
#69 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#70 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x115c5e0) at kernel/qabstractitemmodel.cpp:2433
#71 0x00007fecd5dfcd17 in QSortFilterProxyModelPrivate::insert_source_items (this=0x115c600, source_to_proxy=..., proxy_to_source=..., source_items=<optimized out>, source_parent=<optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:695
#72 0x00007fecd5e00e53 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x115c600, source_parent=..., start=<optimized out>, end=<optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:806
#73 0x00007fecd5e0116f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x115c600, source_parent=<optimized out>, start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1280
#74 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1155610, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd5c90) at kernel/qobject.cpp:3556
#75 0x00007fecd4e9ffb4 in QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#76 0x00007fecd4e3991d in QAbstractItemModel::endInsertRows (this=0x1155610) at kernel/qabstractitemmodel.cpp:2433
#77 0x00007fecd14ee732 in Akonadi::EntityTreeModelPrivate::monitoredItemLinked (this=0x1155af0, item=..., collection=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/entitytreemodel_p.cpp:1177
#78 0x00007fecd4e53761 in QMetaObject::activate (sender=0x1154860, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd5f20) at kernel/qobject.cpp:3556
#79 0x00007fecd14af34a in Akonadi::Monitor::itemLinked (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.0/build/akonadi/monitor.moc:217
#80 0x00007fecd14e7ff1 in Akonadi::MonitorPrivate::emitItemNotification (this=0x1154f40, msg=..., item=<optimized out>, collection=<optimized out>, collectionDest=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/monitor_p.cpp:540
#81 0x00007fecd14efcc2 in Akonadi::MonitorPrivate::emitNotification (this=0x1154f40, msg=...) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/monitor_p.cpp:288
#82 0x00007fecd157f701 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x1154f40, msg=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/changerecorder_p.h:60
#83 0x00007fecd1533ce6 in Akonadi::MonitorPrivate::flushPipeline (this=0x1154f40) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/monitor_p.cpp:429
#84 0x00007fecd1533d79 in Akonadi::MonitorPrivate::dataAvailable (this=0x1154f40) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/monitor_p.cpp:438
#85 0x00007fecd4e53761 in QMetaObject::activate (sender=0xc9b500, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#86 0x00007fecd1577fdd in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::processResult (this=0xc9b500, job=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/entitycache_p.h:192
#87 0x00007fecd4e53761 in QMetaObject::activate (sender=0x24d0730, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9bbd6670) at kernel/qobject.cpp:3556
#88 0x00007fecd52d4412 in KJob::result (this=<optimized out>, _t1=0x24d0730) at /usr/src/debug/kdelibs-4.8.0/build/kdecore/kjob.moc:208
#89 0x00007fecd52d4450 in KJob::emitResult (this=0x24d0730) at /usr/src/debug/kdelibs-4.8.0/kdecore/jobs/kjob.cpp:318
#90 0x00007fecd4e58926 in QObject::event (this=0x24d0730, e=<optimized out>) at kernel/qobject.cpp:1204
#91 0x00007fecd5852e84 in notify_helper (e=0x1da7660, receiver=0x24d0730, this=0x64e580) at kernel/qapplication.cpp:4550
#92 QApplicationPrivate::notify_helper (this=0x64e580, receiver=0x24d0730, e=0x1da7660) at kernel/qapplication.cpp:4522
#93 0x00007fecd5857d03 in QApplication::notify (this=0x7fff9bbd7030, receiver=0x24d0730, e=0x1da7660) at kernel/qapplication.cpp:4411
#94 0x00007fecd6596786 in KApplication::notify (this=0x7fff9bbd7030, receiver=0x24d0730, event=0x1da7660) at /usr/src/debug/kdelibs-4.8.0/kdeui/kernel/kapplication.cpp:311
#95 0x00007fecd4e3f89c in QCoreApplication::notifyInternal (this=0x7fff9bbd7030, receiver=0x24d0730, event=0x1da7660) at kernel/qcoreapplication.cpp:876
#96 0x00007fecd4e4313a in sendEvent (event=0x1da7660, receiver=0x24d0730) at kernel/qcoreapplication.h:231
#97 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60da60) at kernel/qcoreapplication.cpp:1500
#98 0x00007fecd4e6e4c3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#99 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#100 0x00007fecceb7158d in g_main_dispatch (context=0x645c00) at gmain.c:2425
#101 g_main_context_dispatch (context=0x645c00) at gmain.c:2995
#102 0x00007fecceb71d88 in g_main_context_iterate (context=0x645c00, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#103 0x00007fecceb71f59 in g_main_context_iteration (context=0x645c00, may_block=1) at gmain.c:3136
#104 0x00007fecd4e6e8ef in QEventDispatcherGlib::processEvents (this=0x60d320, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#105 0x00007fecd58f62de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#106 0x00007fecd4e3e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#107 0x00007fecd4e3e8d7 in QEventLoop::exec (this=0x7fff9bbd6fc0, flags=...) at kernel/qeventloop.cpp:204
#108 0x00007fecd4e43435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#109 0x0000000000403919 in main (argc=1, argv=0x7fff9bbd7658) at /usr/src/debug/kdepim-4.8.0/kontact/src/main.cpp:218

This bug may be a duplicate of or related to bug 272525.

Possible duplicates by query: bug 291034, bug 282511, bug 281017, bug 280273, bug 280025.

Reported using DrKonqi
Comment 1 Christophe Marin 2012-02-13 11:06:38 UTC
Reassign
Comment 2 Bruno Friedmann 2012-05-14 11:40:08 UTC
Shouldn't akonadi a bit more resistant and before crashing, just try to reconnect automatically to mysql socket ?
Comment 3 Jekyll Wu 2012-07-05 07:09:11 UTC
*** Bug 303039 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2012-07-05 07:09:19 UTC
*** Bug 296054 has been marked as a duplicate of this bug. ***
Comment 5 Bruno Friedmann 2013-10-24 10:26:06 UTC
This is still active, also on postgresql usage.
If the database disappear for what ever reason. akonadi is simply not able to try to reconnect automatically.
On never version, at least it doesn't crash, but as it doesn't work without stopping it, and relaunch it's a major pain in A....

If you need a use case, imagine a big terminal server having a centralized db instance. and during saturday night the db server is shutdown to make a full backup, or a update package restart the server. All users who don't have closed akonadi (shudown it) won't be able to use akonadi before a full restart :-(
Comment 6 Daniel Vrátil 2013-10-24 15:05:47 UTC
For MySQL at least (haven't tried with PostgreSQL), there's unfortunately a bug in Qt [0]  that prevents us from fixing this in any reasonable way in Akonadi. Simply put: Qt  will claim connection to database is valid even when the server is not running anymore, and we only learn about it the hard way when a query fails - but even then the MySQL client libraries will return different error code each time, so detecting what went wrong gets really hard.

[0] https://bugreports.qt-project.org/browse/QTBUG-17140
Comment 7 Jekyll Wu 2013-11-09 05:21:19 UTC
*** Bug 323087 has been marked as a duplicate of this bug. ***
Comment 8 Jekyll Wu 2013-11-09 05:21:28 UTC
*** Bug 319550 has been marked as a duplicate of this bug. ***
Comment 9 Jekyll Wu 2013-11-09 05:21:48 UTC
*** Bug 324043 has been marked as a duplicate of this bug. ***
Comment 10 Daniel Vrátil 2013-12-06 17:28:08 UTC
*** Bug 316647 has been marked as a duplicate of this bug. ***
Comment 11 Denis Kurz 2016-09-24 20:43:33 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 12 Denis Kurz 2017-01-07 22:37:55 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.