Bug 271682 - Kontac crashes copying addressbook folder
Summary: Kontac crashes copying addressbook folder
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: libakonadi (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: investigated, triaged
: 272380 273643 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-25 12:23 UTC by Kasi
Modified: 2018-09-19 14:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kasi 2011-04-25 12:23:18 UTC
Application: kontact (4.4.11)
KDE Platform Version: 4.6.2 (4.6.2) "release 3"
Qt Version: 4.7.2
Operating System: Linux 2.6.37.1-1.2-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

-- Information about the crash:
I selected an addressbook folder and choose copying. Accidential I choose to paste the folder in the same folder of the original. Kontac crashes.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  QModelIndex (this=0x1534660, row=0, column=0) at /usr/include/QtCore/qabstractitemmodel.h:65
#7  KSelectionProxyModelPrivate::mapTopLevelToSource (this=0x1534660, row=0, column=0) at /usr/src/debug/kdelibs-4.6.2/kdeui/itemviews/kselectionproxymodel.cpp:1577
#8  0x00007f0b475afe04 in KSelectionProxyModel::mapToSource (this=0x149c740, proxyIndex=...) at /usr/src/debug/kdelibs-4.6.2/kdeui/itemviews/kselectionproxymodel.cpp:2100
#9  0x00007f0b474634e5 in KSelectionProxyModel::data (this=0x149c740, index=..., role=35) at /usr/src/debug/kdelibs-4.6.2/kdeui/itemviews/kselectionproxymodel.cpp:2204
#10 0x00007f0b41e8578c in data (this=<value optimized out>, sourceRow=0, sourceParent=...) at /usr/include/QtCore/qabstractitemmodel.h:398
#11 Akonadi::EntityMimeTypeFilterModel::filterAcceptsRow (this=<value optimized out>, sourceRow=0, sourceParent=...) at /usr/src/debug/kdepimlibs-4.6.2/akonadi/entitymimetypefiltermodel.cpp:106
#12 0x00007f0b4648c2a2 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x1534cb0, source_parent=..., start=<value optimized out>, end=4, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:767
#13 0x00007f0b4648c69f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x1534cb0, source_parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1278
#14 0x00007f0b4648e54c in QSortFilterProxyModel::qt_metacall (this=0x1534c90, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff354c8c50) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:135
#15 0x00007f0b46b47a5f in QMetaObject::activate (sender=0x149c740, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff354c8c50) at kernel/qobject.cpp:3278
#16 0x00007f0b46b8fa94 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=4) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#17 0x00007f0b46b2dbcc in QAbstractItemModel::endInsertRows (this=0x149c740) at kernel/qabstractitemmodel.cpp:2412
#18 0x00007f0b475b9aa0 in KSelectionProxyModelPrivate::insertSelectionIntoProxy (this=0x1534660, selection=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kdeui/itemviews/kselectionproxymodel.cpp:1912
#19 0x00007f0b475ba0ad in KSelectionProxyModelPrivate::selectionChanged (this=<value optimized out>, _selected=<value optimized out>, _deselected=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kdeui/itemviews/kselectionproxymodel.cpp:1846
#20 0x00007f0b475bb88e in KSelectionProxyModel::qt_metacall (this=0x149c740, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff354c9330) at /usr/src/debug/kdelibs-4.6.2/build/kdeui/moc_kselectionproxymodel.cpp:134
#21 0x00007f0b46b47a5f in QMetaObject::activate (sender=0x1533ba0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff354c9330) at kernel/qobject.cpp:3278
#22 0x00007f0b464573b7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#23 0x00007f0b4645db79 in QItemSelectionModel::emitSelectionChanged (this=0x1533ba0, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#24 0x00007f0b4645e36c in QItemSelectionModel::select (this=0x1533ba0, selection=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#25 0x00007f0b4644d4f4 in QTreeViewPrivate::select (this=0x14beab0, topIndex=<value optimized out>, bottomIndex=<value optimized out>, command=...) at itemviews/qtreeview.cpp:3652
#26 0x00007f0b4644e158 in QTreeView::setSelection (this=<value optimized out>, rect=<value optimized out>, command=...) at itemviews/qtreeview.cpp:2280
#27 0x00007f0b464045d1 in QAbstractItemView::mousePressEvent (this=0x14ed790, event=<value optimized out>) at itemviews/qabstractitemview.cpp:1674
#28 0x00007f0b45f4cf49 in QWidget::event (this=0x14ed790, event=0x7fff354caa20) at kernel/qwidget.cpp:8255
#29 0x00007f0b462f1a86 in QFrame::event (this=0x14ed790, e=0x7fff354caa20) at widgets/qframe.cpp:557
#30 0x00007f0b46401ec3 in QAbstractItemView::viewportEvent (this=0x14ed790, event=0x7fff354caa20) at itemviews/qabstractitemview.cpp:1628
#31 0x00007f0b46446cc5 in QTreeView::viewportEvent (this=0x14ed790, event=0x7fff354caa20) at itemviews/qtreeview.cpp:1256
#32 0x00007f0b46b33607 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x14ed990, event=0x7fff354caa20) at kernel/qcoreapplication.cpp:846
#33 0x00007f0b45efb111 in QApplicationPrivate::notify_helper (this=0x650be0, receiver=0x14ed990, e=0x7fff354caa20) at kernel/qapplication.cpp:4458
#34 0x00007f0b45f03f7c in QApplication::notify (this=<value optimized out>, receiver=0x14ed990, e=0x7fff354caa20) at kernel/qapplication.cpp:4023
#35 0x00007f0b47495d46 in KApplication::notify (this=0x7fff354cb750, receiver=0x14ed990, event=0x7fff354caa20) at /usr/src/debug/kdelibs-4.6.2/kdeui/kernel/kapplication.cpp:311
#36 0x00007f0b46b3347c in QCoreApplication::notifyInternal (this=0x7fff354cb750, receiver=0x14ed990, event=0x7fff354caa20) at kernel/qcoreapplication.cpp:731
#37 0x00007f0b45efc155 in sendEvent (receiver=0x14ed990, event=0x7fff354caa20, alienWidget=0x14ed990, nativeWidget=0x14a70a0, buttonDown=0x7f0b469cd198, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:215
#38 QApplicationPrivate::sendMouseEvent (receiver=0x14ed990, event=0x7fff354caa20, alienWidget=0x14ed990, nativeWidget=0x14a70a0, buttonDown=0x7f0b469cd198, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#39 0x00007f0b45f7ab48 in QETWidget::translateMouseEvent (this=0x14a70a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4461
#40 0x00007f0b45f79209 in QApplication::x11ProcessEvent (this=0x7fff354cb750, event=0x7fff354cb380) at kernel/qapplication_x11.cpp:3587
#41 0x00007f0b45fa0f12 in x11EventSourceDispatch (s=0x63eb90, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007f0b3e25ebd3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#43 0x00007f0b3e25f3b0 in ?? () from /lib64/libglib-2.0.so.0
#44 0x00007f0b3e25f650 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#45 0x00007f0b46b5e22f in QEventDispatcherGlib::processEvents (this=0x6133a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#46 0x00007f0b45fa0bae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007f0b46b328d2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007f0b46b32ae5 in QEventLoop::exec (this=0x7fff354cb6a0, flags=...) at kernel/qeventloop.cpp:201
#49 0x00007f0b46b36f2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#50 0x0000000000404107 in _start ()

Possible duplicates by query: bug 262447.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-04-25 13:51:48 UTC
reproducible with git master.

The akonadi server crashes here

#0  0x00007f5f7d47830d in write () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f5f7989e222 in net_real_write () from /usr/lib64/libmysqlclient_r.so.16
#2  0x00007f5f7989e6eb in net_flush () from /usr/lib64/libmysqlclient_r.so.16
#3  0x00007f5f7989e8a0 in net_write_command () from /usr/lib64/libmysqlclient_r.so.16
#4  0x00007f5f7989b514 in cli_advanced_command () from /usr/lib64/libmysqlclient_r.so.16
#5  0x00007f5f7986d795 in execute () from /usr/lib64/libmysqlclient_r.so.16
#6  0x00007f5f7986e007 in cli_stmt_execute () from /usr/lib64/libmysqlclient_r.so.16
#7  0x00007f5f7986f11d in mysql_stmt_execute () from /usr/lib64/libmysqlclient_r.so.16
#8  0x00007f5f79bd93d5 in QMYSQLResult::exec() () from /usr/lib64/qt4/plugins/sqldrivers/libqsqlmysql.so
#9  0x00007f5f7cf0b8d6 in QSqlQuery::exec (this=0x7f5f6900bbd8) at kernel/qsqlquery.cpp:943
#10 0x000000000052c485 in Akonadi::QueryBuilder::exec (this=0x7f5f6900bbc0) at /kde/src/akonadi/server/src/storage/querybuilder.cpp:284
#11 0x00000000004d8b00 in Akonadi::Collection::insert (this=0x7f5f6900bfb0, insertId=0x0) at /kde/build/akonadi/server/entities.cpp:2301
#12 0x00000000004fdf12 in Akonadi::DataStore::appendCollection (this=0xa94170, collection=...) at /kde/src/akonadi/server/src/storage/datastore.cpp:250
#13 0x00000000004a946d in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:44
#14 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#15 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#16 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#17 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#18 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#19 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#20 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#21 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#22 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#23 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#24 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#25 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#26 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#27 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#28 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#29 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#30 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
 
 
[...]
 
#20149 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#20150 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#20151 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#20152 0x00000000004a97bd in Akonadi::ColCopy::copyCollection (this=0x899260, source=..., target=...) at /kde/src/akonadi/server/src/handler/colcopy.cpp:62
#20153 0x00000000004a9c5e in Akonadi::ColCopy::parseStream (this=0x899260) at /kde/src/akonadi/server/src/handler/colcopy.cpp:96
#20154 0x000000000049cb95 in Akonadi::AkonadiConnection::slotNewData (this=0x87c9f0) at /kde/src/akonadi/server/src/akonadiconnection.cpp:139
#20155 0x000000000049db6a in Akonadi::AkonadiConnection::qt_metacall (this=0x87c9f0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7f5f69809960) at /kde/build/akonadi/server/akonadiconnection.moc:79
#20156 0x00007f5f7d7fea5f in QMetaObject::activate (sender=0x9a47c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#20157 0x00007f5f7d845d98 in QIODevice::qt_metacall (this=0x9a47c0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7f5f69809a80) at .moc/release-shared/moc_qiodevice.cpp:77
#20158 0x00007f5f7d1f5ca0 in QLocalSocket::qt_metacall (this=0x9a47c0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7f5f69809a80) at .moc/release-shared/moc_qlocalsocket.cpp:81
#20159 0x00007f5f7d7fea5f in QMetaObject::activate (sender=0xa892d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#20160 0x00007f5f7d1f16df in QAbstractSocketPrivate::canReadNotification (this=0x7fbbe0) at socket/qabstractsocket.cpp:639
#20161 0x00007f5f7d1df2e1 in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1103
#20162 0x00007f5f7d7ea47c in QCoreApplication::notifyInternal (this=0x7fff18e2d210, receiver=0xa43dd0, event=0x7f5f69809b50) at kernel/qcoreapplication.cpp:731
#20163 0x00007f5f7d8164db in sendEvent (event=0x7f5f69809b50, receiver=<optimized out>) at kernel/qcoreapplication.h:215
#20164 QEventDispatcherUNIX::activateSocketNotifiers (this=<optimized out>) at kernel/qeventdispatcher_unix.cpp:892
#20165 0x00007f5f7d8173d6 in QEventDispatcherUNIXPrivate::doSelect (this=<optimized out>, flags=Cannot access memory at address 0x7f5f00000000
) at kernel/qeventdispatcher_unix.cpp:305
#20166 0x00007f5f7d8184ef in QEventDispatcherUNIX::processEvents (this=0x9faa20, flags=...) at kernel/qeventdispatcher_unix.cpp:934
#20167 0x00007f5f7d7e98d2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
 
#20168 0x00007f5f7d7e9ae5 in QEventLoop::exec (this=0x7f5f69809dd0, flags=...) at kernel/qeventloop.cpp:201
#20169 0x00007f5f7d6fe7a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:492
#20170 0x000000000049c744 in Akonadi::AkonadiConnection::run (this=0x87c9f0) at /kde/src/akonadi/server/src/akonadiconnection.cpp:104
#20171 0x00007f5f7d701095 in QThreadPrivate::start (arg=0x87c9f0) at thread/qthread_unix.cpp:320
#20172 0x00007f5f7d470a3f in start_thread (arg=0x7f5f6980a700) at pthread_create.c:297
#20173 0x00007f5f7baa667d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Comment 2 Stephen Kelly 2011-04-26 01:56:47 UTC
I can't reproduce this, but the model crash may have been fixed with 0f7cf4634300a9d5af3c1498a3efd6320fd590fb in kdelibs.

The querybuilder stuff makes far less sense to me...
Comment 3 Christophe Marin 2011-05-03 23:31:46 UTC
*** Bug 272380 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2011-05-19 15:04:11 UTC
*** Bug 273643 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Crouthamel 2018-09-19 14:24:21 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.