Bug 353326 - Korganizer crashed when trying to add a new event.
Summary: Korganizer crashed when trying to add a new event.
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.2.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
Keywords: drkonqi
: 353482 353797 354193 354728 355158 359610 361180 378617 (view as bug list)
Depends on:
Reported: 2015-09-29 16:50 UTC by Luis Silva
Modified: 2017-04-26 20:58 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:

VCard used to reproduce crash (270 bytes, text/vcard)
2015-11-07 20:48 UTC, Matthias Hoffmann
Backtrace during crash of kaddressbook (6.84 KB, text/plain)
2015-11-07 20:49 UTC, Matthias Hoffmann

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Silva 2015-09-29 16:50:34 UTC
Application: korganizer ()

Qt Version: 5.4.2
Operating System: Linux 4.2.0-12-generic i686
Distribution: Ubuntu Wily Werewolf (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Korganizer crashed when trying to add a new event.
I opened korganizer and right-clicked on a time slot in week view.  This opened a menu with options. I clicke on adding a new event and korganizer crashed immediately.

-- Backtrace:
Application: korganizer (korganizer), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xac440a40 (LWP 3680))]

Thread 2 (Thread 0xa7502b40 (LWP 3700)):
#0  0xb770cbe8 in __kernel_vsyscall ()
#1  0xb3adaa6c in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb58accb6 in __pthread_cond_wait (cond=0x9d1fca8, mutex=0x9d1fc90) at forward.c:149
#3  0xa9d99148 in ?? () from /usr/lib/i386-linux-gnu/dri/r600_dri.so
#4  0xa9d98735 in ?? () from /usr/lib/i386-linux-gnu/dri/r600_dri.so
#5  0xb3ad52fc in start_thread (arg=0xa7502b40) at pthread_create.c:334
#6  0xb589fbbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122

Thread 1 (Thread 0xac440a40 (LWP 3680)):
[KCrash Handler]
#7  0xb4b4d1ca in Akonadi::Tag::operator= (this=0xbfcea494, other=...) at ../../../../akonadi/src/core/tag.cpp:80
#8  0xb4b4d32f in Akonadi::Tag::Tag (this=0xbfcea494, other=...) at ../../../../akonadi/src/core/tag.cpp:72
#9  0xb4bec467 in Akonadi::TagModelPrivate::tagForIndex (this=0x9c01c50, index=...) at ../../../../akonadi/src/core/models/tagmodel_p.cpp:105
#10 0xb4beb25c in Akonadi::TagModel::data (this=0xa357608, index=..., role=262) at ../../../../akonadi/src/core/models/tagmodel.cpp:91
#11 0xb4cf1a49 in Akonadi::TagWidget::updateView (this=0xa355eb0) at ../../../../akonadi/src/widgets/tagwidget.cpp:102
#12 0xb4cf54ac in Akonadi::TagWidget::qt_static_metacall (_o=0xa355eb0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfcea628) at moc_tagwidget.cpp:84
#13 0xb5d96c51 in QMetaObject::activate (sender=0xa357608, signalOffset=26, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3717
#14 0xb5d9714d in QMetaObject::activate (sender=0xa357608, m=0xb4c70fb0 <Akonadi::TagModel::staticMetaObject>, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3582
#15 0xb4bea7d2 in Akonadi::TagModel::populated (this=0xa357608) at ./moc_tagmodel.cpp:199
#16 0xb4bec11b in Akonadi::TagModelPrivate::tagsFetchDone (this=0x9c01c50, job=0xa32d3b0) at ../../../../akonadi/src/core/models/tagmodel_p.cpp:245
#17 0xb4beaa48 in Akonadi::TagModel::qt_static_metacall (_o=0xa357608, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfcea864) at ./moc_tagmodel.cpp:103
#18 0xb5d96c51 in QMetaObject::activate (sender=0xa32d3b0, signalOffset=3, local_signal_index=0, argv=0xbfcea864) at kernel/qobject.cpp:3717
#19 0xb5d9714d in QMetaObject::activate (sender=0xa32d3b0, m=0xb65f1adc <KJob::staticMetaObject>, local_signal_index=0, argv=0xbfcea864) at kernel/qobject.cpp:3582
#20 0xb65a3c49 in KJob::finished (this=0xa32d3b0, _t1=0xa32d3b0) at ./moc_kjob.cpp:531
#21 0xb65a4a1a in KJob::emitResult (this=0xa32d3b0) at ../../../src/lib/jobs/kjob.cpp:292
#22 0xb4b8285e in Akonadi::JobPrivate::delayedEmitResult (this=<optimized out>) at ../../../../akonadi/src/core/jobs/job.cpp:153
#23 Akonadi::Job::qt_static_metacall (_o=0xa32d3b0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xa427880) at ./moc_job.cpp:107
#24 0xb5d93ac0 in QMetaCallEvent::placeMetaCall (this=0xa458818, object=0xa32d3b0) at kernel/qobject.cpp:485
#25 0xb5d97883 in QObject::event (this=0xa32d3b0, e=0xa458818) at kernel/qobject.cpp:1245
#26 0xb66dddaa in QApplicationPrivate::notify_helper (this=0x991e568, receiver=0xa32d3b0, e=0xa458818) at kernel/qapplication.cpp:3720
#27 0xb66e367f in QApplication::notify (this=0xbfceaefc, receiver=0xa32d3b0, e=0xa458818) at kernel/qapplication.cpp:3503
#28 0xb5d63c6f in QCoreApplication::notifyInternal (this=0xbfceaefc, receiver=0xa32d3b0, event=0xa458818) at kernel/qcoreapplication.cpp:935
#29 0xb5d6608d in QCoreApplication::sendEvent (event=0xa458818, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x99059f8) at kernel/qcoreapplication.cpp:1552
#31 0xb5d665c7 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1410
#32 0xb5dbdf43 in postEventSourceDispatch (s=0x9955c88) at kernel/qeventdispatcher_glib.cpp:271
#33 0xb398ece9 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb398ef89 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#35 0xb398f054 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0xb5dbe333 in QEventDispatcherGlib::processEvents (this=0x9958e08, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#37 0xac1bfbc1 in QPAEventDispatcherGlib::processEvents (this=0x9958e08, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:115
#38 0xb5d60e23 in QEventLoop::processEvents (this=0xbfceae28, flags=...) at kernel/qeventloop.cpp:128
#39 0xb5d61272 in QEventLoop::exec (this=0xbfceae28, flags=...) at kernel/qeventloop.cpp:204
#40 0xb5d69355 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#41 0xb606fd21 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#42 0xb66d9cb4 in QApplication::exec () at kernel/qapplication.cpp:2956
#43 0x0804fa3d in main (argc=1, argv=0xbfceb004) at ../../korganizer/main.cpp:61

Reported using DrKonqi
Comment 1 Luis Silva 2015-10-04 11:43:43 UTC
Incidentally, I am getting very similar backtraces for a systematic crash at kaddressbook's start and a series of other crashes in kdepim.
Comment 2 Matthias Hoffmann 2015-11-07 20:48:15 UTC
Created attachment 95377 [details]
VCard used to reproduce crash

I was able to reproduce this crash on an empty kaddressbook. I've imported the attached VCard and directly after, kaddressbook crashed (will attach backtrace). It kept on crashing directly after each restart. Also KOrganizer crashes if I try to add a new event.

System information:
Kubuntu Wily Werewolf
KDE FW 5.15.0
Qt 5.4.2
Comment 3 Matthias Hoffmann 2015-11-07 20:49:09 UTC
Created attachment 95378 [details]
Backtrace during crash of kaddressbook
Comment 4 eric 2016-01-27 20:03:27 UTC
This still happens with korganizer and kaddresssbook, both version 15.12.1.

After importing new *.vcf files:
Korganizer crashes when trying to add a new event or after I click on the 'To-Do List' view; 
Kaddressbook crashes immediately after startup.
Comment 5 eric 2016-01-30 17:58:58 UTC
Does kaddressbook still crash when the vCard (a few postings above this one) is imported _after_ first removing the "BDAY" line in the vCard-file (and maybe also other lines with a date)?

There are similar reports about synchronizing/importing contacts from different sources or adding a new contact manually that results in a crash. See for example my bug report: https://bugs.kde.org/show_bug.cgi?id=358696
Comment 6 Denis Kurz 2017-01-17 11:21:52 UTC
*** Bug 353797 has been marked as a duplicate of this bug. ***
Comment 7 Denis Kurz 2017-01-17 11:21:58 UTC
*** Bug 355158 has been marked as a duplicate of this bug. ***
Comment 8 Denis Kurz 2017-01-17 11:22:07 UTC
*** Bug 354728 has been marked as a duplicate of this bug. ***
Comment 9 Denis Kurz 2017-01-17 11:22:15 UTC
*** Bug 353482 has been marked as a duplicate of this bug. ***
Comment 10 Denis Kurz 2017-01-17 11:22:24 UTC
*** Bug 359610 has been marked as a duplicate of this bug. ***
Comment 11 Denis Kurz 2017-01-17 11:24:39 UTC
This bug was fixed along with Bug 365944, with the patch mentioned in Bug 365944, Comment 2, i.e., in version 5.3.0 or later.
Comment 12 Denis Kurz 2017-01-17 11:27:37 UTC
*** Bug 354193 has been marked as a duplicate of this bug. ***
Comment 13 Denis Kurz 2017-01-17 11:27:50 UTC
*** Bug 361180 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2017-04-26 20:58:49 UTC
*** Bug 378617 has been marked as a duplicate of this bug. ***