Bug 250005 - crash when trying to import contact from horde
Summary: crash when trying to import contact from horde
Status: RESOLVED FIXED
Alias: None
Product: akunambol
Classification: Miscellaneous
Component: syncronization (show other bugs)
Version: 0.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Riccardo Iaconelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 13:53 UTC by simon
Modified: 2010-09-07 10:05 UTC (History)
0 users

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 simon 2010-09-03 13:53:33 UTC
Application: akunambol (0.2)
KDE Platform Version: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.34-zen1 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

i added a basic contact (name, email) in horde and when trying to import this i get a crash.

some debug output

akunambol(27946) KDELog::printLine: 13:50:37 INFO ContactsSource: adding new item
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG ContactsSource: BEGIN:VCARD
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG VERSION:2.1
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG NICKNAME:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG BDAY:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG PHOTO;ENCODING=b:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TZ;VALUE=text:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG EMAIL:horde@horde.de
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TEL;HOME:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TEL;WORK:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TEL;CELL:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TEL;FAX:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TEL;PAGER:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG TITLE:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG ROLE:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG CATEGORIES:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG NOTE:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG URL:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG N:Horde Kontatc;;;;
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG FN:Horde Kontatc
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG ORG:
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG ADR;HOME:;;;;;;
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG ADR;WORK:;;;;;;
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG END:VCARD
akunambol(27946) KDELog::printLine: 13:50:37 DEBUG
ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 690
Connecting to the serverKCrash: crashing... crashRecursionCounter = 2

-- Backtrace:
Application: Akunambol (akunambol), signal: Aborted
[Current thread is 1 (Thread 0x7f06fceac740 (LWP 27946))]

Thread 2 (Thread 0x7f06ead7e910 (LWP 27948)):
[KCrash Handler]
#6  0x00007f06f8382315 in raise () from /lib/libc.so.6
#7  0x00007f06f8383811 in abort () from /lib/libc.so.6
#8  0x00007f06f90e7bf9 in qt_message_output (msgType=QtFatalMsg, buf=0x9007b8 "ASSERT: \"i >= 0 && i < size()\" in file /usr/include/qt4/QtCore/qstring.h, line 690") at global/qglobal.cpp:2250
#9  0x00007f06f90e7df1 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f06f92aa6c8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7f06ead7c640)
    at global/qglobal.cpp:2296
#10 0x00007f06f90e7f1d in qFatal (msg=0x7f06f92aa6c8 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2479
#11 0x00007f06f90e8193 in qt_assert (assertion=0x7f06fbc8a79a "i >= 0 && i < size()", file=0x7f06fbc8a9f8 "/usr/include/qt4/QtCore/qstring.h", line=690) at global/qglobal.cpp:2013
#12 0x00007f06fbc43d90 in QString::operator[] (this=0x7f06ead7ca00, i=0) at /usr/include/qt4/QtCore/qstring.h:690
#13 0x00007f06fbc78f96 in KABC::VCardTool::parseVCards (this=0x7f06ead7d1e0, vcard=<value optimized out>)
    at /var/tmp/portage/kde-base/kdepimlibs-4.4.9999/work/kdepimlibs-4.4.9999/kabc/vcardtool.cpp:612
#14 0x00007f06fbc6c5bf in KABC::VCardConverter::parseVCards (this=<value optimized out>, vcard=...)
    at /var/tmp/portage/kde-base/kdepimlibs-4.4.9999/work/kdepimlibs-4.4.9999/kabc/vcardconverter.cpp:61
#15 0x00007f06fbc6c5f1 in KABC::VCardConverter::parseVCard (this=0x6d2c, vcard=...) at /var/tmp/portage/kde-base/kdepimlibs-4.4.9999/work/kdepimlibs-4.4.9999/kabc/vcardconverter.cpp:52
#16 0x000000000041e71e in ContactsSource::insertItem (this=0x710970, item=...) at /home/user/akunambol-0.2/syncsource/contactssource.cpp:119
#17 0x00007f06fc4100c4 in Funambol::CacheSyncSource::addItem (this=0x6d2a, item=...) at lCacheSyncSource.cpp:499
#18 0x00007f06fc3f4cd4 in Funambol::SyncManager::processSyncItem (this=0x7f06ead7da60, item=0x2288250, cmdInfo=..., syncMLBuilder=...) at lSyncManager.cpp:2433
#19 0x00007f06fc3f583c in Funambol::SyncManager::checkForServerChanges (this=0x7f06ead7da60, syncml=0x2306920, statusList=...) at lSyncManager.cpp:1031
#20 0x00007f06fc3f8be3 in Funambol::SyncManager::sync (this=0x7f06ead7da60) at lSyncManager.cpp:1683
#21 0x00007f06fc417c60 in Funambol::SyncClient::sync (this=0x7dc370, config=..., sources=0x7f06ead7e000) at lSyncClient.cpp:110
#22 0x0000000000426230 in SyncThread::run (this=0x20963f0) at /home/user/akunambol-0.2/syncsource/sourcemanager.cpp:91
#23 0x00007f06f90f4536 in QThreadPrivate::start (arg=0x20963f0) at thread/qthread_unix.cpp:248
#24 0x00007f06f8e54297 in start_thread () from /lib/libpthread.so.0
#25 0x00007f06f84208cd in clone () from /lib/libc.so.6
#26 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f06fceac740 (LWP 27946)):
#0  0x00007f06f8417896 in poll () from /lib/libc.so.6
#1  0x00007f06f2a3ab4a in _xcb_conn_wait () from /usr/lib/libxcb.so.1
#2  0x00007f06f2a3c4cc in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f06f7c423ec in _XReply () from /usr/lib/libX11.so.6
#4  0x00007f06f7c36672 in XSync () from /usr/lib/libX11.so.6
#5  0x00007f06fa160b37 in QRasterWindowSurface::flush (this=0x1eff230, widget=0x7dc3c0, rgn=..., offset=...) at painting/qwindowsurface_raster.cpp:223
#6  0x00007f06fa186237 in qt_flush (widget=0x7dc3c0, region=..., windowSurface=0x1eff230, tlw=0x7dc3c0, tlwOffset=...) at painting/qbackingstore.cpp:104
#7  0x00007f06fa1862e9 in QWidgetBackingStore::flush (this=0x1a84440, widget=0x0, surface=0x0) at painting/qbackingstore.cpp:1352
#8  0x00007f06fa1865bb in QWidgetBackingStore::endPaint (this=0x1a84440, cleaned=..., windowSurface=0x1eff230, beginPaintInfo=0x7ffff7bb79b0) at painting/qbackingstore.cpp:386
#9  0x00007f06fa187ae4 in QWidgetBackingStore::sync (this=0x1a84440) at painting/qbackingstore.cpp:1294
#10 0x00007f06f9f401f1 in QWidgetPrivate::syncBackingStore (this=0x207c8f0) at kernel/qwidget.cpp:1672
#11 0x00007f06f9f4c352 in QWidget::event (this=0x7dc3c0, event=0x22f12e0) at kernel/qwidget.cpp:8291
#12 0x00007f06f9ecd253 in QApplicationPrivate::notify_helper (this=0x67f700, receiver=0x7dc3c0, e=0x22f12e0) at kernel/qapplication.cpp:4304
#13 0x00007f06f9ed01a2 in QApplication::notify (this=0x7ffff7bbb210, receiver=0x7dc3c0, e=0x22f12e0) at kernel/qapplication.cpp:4269
#14 0x00007f06fc8a4061 in KApplication::notify (this=0x7ffff7bbb210, receiver=0x7dc3c0, event=0x22f12e0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#15 0x00007f06f922116d in QCoreApplication::notifyInternal (this=0x7ffff7bbb210, receiver=0x7dc3c0, event=0x22f12e0) at kernel/qcoreapplication.cpp:704
#16 0x00007f06f922649d in QCoreApplication::sendEvent (receiver=0x7dc3c0, event=0x22f12e0) at kernel/qcoreapplication.h:215
#17 0x00007f06f9221783 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x63f6f0) at kernel/qcoreapplication.cpp:1345
#18 0x00007f06f9221a92 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#19 0x00007f06f925ede9 in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:220
#20 0x00007f06f925ddc6 in postEventSourceDispatch (s=0x6831f0) at kernel/qeventdispatcher_glib.cpp:276
#21 0x00007f06f440f671 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0x00007f06f4412e08 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#23 0x00007f06f4412fbc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#24 0x00007f06f925cbe1 in QEventDispatcherGlib::processEvents (this=0x67f690, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#25 0x00007f06f9fc0a07 in QGuiEventDispatcherGlib::processEvents (this=0x67f690, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00007f06f921d57b in QEventLoop::processEvents (this=0x7ffff7bb8c00, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007f06f921d79f in QEventLoop::exec (this=0x7ffff7bb8c00, flags=...) at kernel/qeventloop.cpp:201
#28 0x00007f06fa50b43d in QDialog::exec (this=0x7dc3c0) at dialogs/qdialog.cpp:546
#29 0x0000000000417ae3 in MainWindow::sync (this=0x7ffff7bbb0c0, appSource=0x6feff0) at /home/user/akunambol-0.2/qtgui/mainwindow.cpp:142
#30 0x0000000000410447 in MainWindow::qt_metacall (this=0x7ffff7bbb0c0, _c=InvokeMetaMethod, _id=3, _a=0x7ffff7bb8eb0) at /home/user/akunambol-0.2/build/moc_mainwindow.cpp:99
#31 0x00007f06f9228f5f in QMetaObject::metacall (object=0x7ffff7bbb0c0, cl=InvokeMetaMethod, idx=34, argv=0x7ffff7bb8eb0) at kernel/qmetaobject.cpp:237
#32 0x00007f06f923e318 in QMetaObject::activate (sender=0x7f1350, m=0x427480, local_signal_index=0, argv=0x7ffff7bb8eb0) at kernel/qobject.cpp:3293
#33 0x000000000041015b in SourcePushButton::clicked (this=0x7f1350, _t1=0x6feff0) at /home/user/akunambol-0.2/build/moc_sourcepushbutton.cpp:89
#34 0x000000000041af2d in SourcePushButton::clickedSlot (this=0x7f1350) at /home/user/akunambol-0.2/qtgui/sourcepushbutton.cpp:51
#35 0x0000000000410216 in SourcePushButton::qt_metacall (this=0x7f1350, _c=InvokeMetaMethod, _id=1, _a=0x7ffff7bb90b0) at /home/user/akunambol-0.2/build/moc_sourcepushbutton.cpp:77
#36 0x00007f06f9228f5f in QMetaObject::metacall (object=0x7f1350, cl=InvokeMetaMethod, idx=42, argv=0x7ffff7bb90b0) at kernel/qmetaobject.cpp:237
#37 0x00007f06f923e318 in QMetaObject::activate (sender=0x7f1350, m=0x7f06fac47680, local_signal_index=2, argv=0x7ffff7bb90b0) at kernel/qobject.cpp:3293
#38 0x00007f06fa745285 in QAbstractButton::clicked (this=0x7f1350, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:206
#39 0x00007f06fa395d78 in QAbstractButtonPrivate::emitClicked (this=0x7a8c80) at widgets/qabstractbutton.cpp:546
#40 0x00007f06fa397196 in QAbstractButtonPrivate::click (this=0x7a8c80) at widgets/qabstractbutton.cpp:539
#41 0x00007f06fa397494 in QAbstractButton::mouseReleaseEvent (this=0x7f1350, e=0x7ffff7bb9f90) at widgets/qabstractbutton.cpp:1121
#42 0x00007f06f9f4b3c8 in QWidget::event (this=0x7f1350, event=0x7ffff7bb9f90) at kernel/qwidget.cpp:7998
#43 0x00007f06fa395d22 in QAbstractButton::event (this=0x7f1350, e=0x7ffff7bb9f90) at widgets/qabstractbutton.cpp:1080
#44 0x00007f06fa4687d9 in QPushButton::event (this=0x7f1350, e=0x7ffff7bb9f90) at widgets/qpushbutton.cpp:679
#45 0x00007f06f9ecd253 in QApplicationPrivate::notify_helper (this=0x67f700, receiver=0x7f1350, e=0x7ffff7bb9f90) at kernel/qapplication.cpp:4304
#46 0x00007f06f9ece11d in QApplication::notify (this=0x7ffff7bbb210, receiver=0x7f1350, e=0x7ffff7bb9f90) at kernel/qapplication.cpp:3869
#47 0x00007f06fc8a4061 in KApplication::notify (this=0x7ffff7bbb210, receiver=0x7f1350, event=0x7ffff7bb9f90)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#48 0x00007f06f922116d in QCoreApplication::notifyInternal (this=0x7ffff7bbb210, receiver=0x7f1350, event=0x7ffff7bb9f90) at kernel/qcoreapplication.cpp:704
#49 0x00007f06f9ee2e1d in QCoreApplication::sendSpontaneousEvent (receiver=0x7f1350, event=0x7ffff7bb9f90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#50 0x00007f06f9ed488e in QApplicationPrivate::sendMouseEvent (receiver=0x7f1350, event=0x7ffff7bb9f90, alienWidget=0x7f1350, nativeWidget=0x7ffff7bbb0c0, buttonDown=0x7f06fac59ea8, 
    lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2967
#51 0x00007f06f9f8bcac in QETWidget::translateMouseEvent (this=0x7ffff7bbb0c0, event=0x7ffff7bbabe0) at kernel/qapplication_x11.cpp:4368
#52 0x00007f06f9f8cdfe in QApplication::x11ProcessEvent (this=0x7ffff7bbb210, event=0x7ffff7bbabe0) at kernel/qapplication_x11.cpp:3379
#53 0x00007f06f9fc13a6 in x11EventSourceDispatch (s=0x683430, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#54 0x00007f06f440f671 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0x00007f06f4412e08 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#56 0x00007f06f4412fbc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0x00007f06f925cbe1 in QEventDispatcherGlib::processEvents (this=0x67f690, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#58 0x00007f06f9fc0a07 in QGuiEventDispatcherGlib::processEvents (this=0x67f690, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#59 0x00007f06f921d57b in QEventLoop::processEvents (this=0x7ffff7bbaff0, flags=...) at kernel/qeventloop.cpp:149
#60 0x00007f06f921d79f in QEventLoop::exec (this=0x7ffff7bbaff0, flags=...) at kernel/qeventloop.cpp:201
#61 0x00007f06f9221bb7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#62 0x00007f06f9ed01e4 in QApplication::exec () at kernel/qapplication.cpp:3583
#63 0x00000000004163f5 in main (argc=1, argv=0x7ffff7bbb3b8) at /home/user/akunambol-0.2/qtgui/main.cpp:158

Reported using DrKonqi
Comment 1 Riccardo Iaconelli 2010-09-04 14:41:03 UTC
looks like a bug in KABC, Marco already wrote a patch. it will be committed asap
Comment 2 Riccardo Iaconelli 2010-09-07 10:05:34 UTC
fixed with r1172275.