Bug 325999

Summary: Kontact crash when disabling and re-enabling a reminder (calendar)
Product: [Applications] kontact Reporter: Jürgen Richtsfeld <richts>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.11.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jürgen Richtsfeld 2013-10-14 08:42:53 UTC
Application: kontact (4.11.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.11.0-12-generic x86_64
Distribution: Ubuntu Saucy Salamander (development branch)

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

I disabled and re-enabled the notification on a calendar (on a caldav resource) and after confirming the re-enabled notification the application crashed.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbd69ec87c0 (LWP 10350))]

Thread 5 (Thread 0x7fbd4b65f700 (LWP 10351)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbd64ca91cd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fbd64ca9209 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fbd613d3f6e in start_thread (arg=0x7fbd4b65f700) at pthread_create.c:311
#4  0x00007fbd674369cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fbd0ad5c700 (LWP 10352)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fbd649e9bbd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fbd64cd8a76 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fbd613d3f6e in start_thread (arg=0x7fbd0ad5c700) at pthread_create.c:311
#4  0x00007fbd674369cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fbcfb786700 (LWP 10361)):
#0  0x00007fbd60f3b0da in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fbd60f3b3b9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbd60efb689 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbd60efb79c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fbd67bafa76 in QEventDispatcherGlib::processEvents (this=0x7fbcec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fbd67b815ef in QEventLoop::processEvents (this=this@entry=0x7fbcfb785d70, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fbd67b818e5 in QEventLoop::exec (this=this@entry=0x7fbcfb785d70, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fbd67a8088f in QThread::exec (this=this@entry=0xf74a20) at thread/qthread.cpp:542
#8  0x00007fbd67b62d13 in QInotifyFileSystemWatcherEngine::run (this=0xf74a20) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007fbd67a82f2f in QThreadPrivate::start (arg=0xf74a20) at thread/qthread_unix.cpp:338
#10 0x00007fbd613d3f6e in start_thread (arg=0x7fbcfb786700) at pthread_create.c:311
#11 0x00007fbd674369cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7fbcf918d700 (LWP 10365)):
#0  __pthread_mutex_unlock_usercnt (mutex=0x7fbce4000a60, decr=1) at pthread_mutex_unlock.c:38
#1  0x00007fbd60f3b3c1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbd60efa820 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbd60efb555 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fbd60efb79c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fbd67bafa76 in QEventDispatcherGlib::processEvents (this=0x7fbce40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fbd67b815ef in QEventLoop::processEvents (this=this@entry=0x7fbcf918cdb0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fbd67b818e5 in QEventLoop::exec (this=this@entry=0x7fbcf918cdb0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fbd67a8088f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007fbd67a82f2f in QThreadPrivate::start (arg=0x99e4f0) at thread/qthread_unix.cpp:338
#10 0x00007fbd613d3f6e in start_thread (arg=0x7fbcf918d700) at pthread_create.c:311
#11 0x00007fbd674369cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fbd69ec87c0 (LWP 10350)):
[KCrash Handler]
#6  0x00007fbd67b94064 in QObject::thread (this=this@entry=0x4650ff0) at kernel/qobject.cpp:1370
#7  0x00007fbd67b9bbc8 in QObject::QObject (this=0x42d0370, parent=0x4650ff0) at kernel/qobject.cpp:724
#8  0x00007fbd6800ac74 in KJob::KJob (this=0x42d0370, dd=..., parent=<optimized out>) at ../../kdecore/jobs/kjob.cpp:58
#9  0x00007fbd6800a40d in KCompositeJob::KCompositeJob (this=0x42d0370, parent=0x4650ff0) at ../../kdecore/jobs/kcompositejob.cpp:32
#10 0x00007fbd66458445 in Akonadi::Job::Job (this=0x42d0370, dd=0x7047740, parent=0x4650ff0) at ../../akonadi/job.cpp:258
#11 0x00007fbd66450bf9 in Akonadi::ItemModifyJob::ItemModifyJob (this=0x42d0370, item=..., parent=0x4650ff0) at ../../akonadi/itemmodifyjob.cpp:113
#12 0x00007fbd092644be in Akonadi::IncidenceChanger::Private::performModification (this=0x42646b0, change=...) at ../../../akonadi/calendar/incidencechanger.cpp:979
#13 0x00007fbd09264d7d in Akonadi::IncidenceChanger::modifyIncidence (this=0x42e0840, changedItem=..., originalPayload=..., parent=parent@entry=0x42ae890) at ../../../akonadi/calendar/incidencechanger.cpp:913
#14 0x00007fbce9549cc4 in CalendarView::toggleAlarm (this=0x42ae890, item=...) at ../../korganizer/calendarview.cpp:1414
#15 0x00007fbce954fd92 in CalendarView::qt_static_metacall (_o=0x42ae890, _c=264196, _id=74370817, _a=0x7fbd676fd740 <main_arena>) at ./calendarview.moc:477
#16 0x00007fbd67b96a58 in QMetaObject::activate (sender=0x460b990, m=m@entry=0x7fbce9a1ecc0 <KOrg::BaseView::staticMetaObject>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7fff813a12b0) at kernel/qobject.cpp:3539
#17 0x00007fbce981c785 in KOrg::BaseView::toggleAlarmSignal (this=<optimized out>, _t1=...) at ./baseview.moc:238
#18 0x00007fbd67b96a58 in QMetaObject::activate (sender=sender@entry=0x4658460, m=m@entry=0x7fbce980f560 <KOEventPopupMenu::staticMetaObject>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7fff813a13d0) at kernel/qobject.cpp:3539
#19 0x00007fbce956e71d in toggleAlarmSignal (_t1=..., this=0x4658460) at ./koeventpopupmenu.moc:212
#20 KOEventPopupMenu::toggleAlarm (this=0x4658460) at ../../korganizer/koeventpopupmenu.cpp:207
#21 0x00007fbce9570e5d in KOEventPopupMenu::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./koeventpopupmenu.moc:113
#22 0x00007fbd67b96a58 in QMetaObject::activate (sender=sender@entry=0x46659a0, m=m@entry=0x7fbd6901cde0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff813a1530) at kernel/qobject.cpp:3539
#23 0x00007fbd6856da32 in QAction::triggered (this=this@entry=0x46659a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#24 0x00007fbd6856f403 in QAction::activate (this=this@entry=0x46659a0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#25 0x00007fbd6899c7f9 in QMenuPrivate::activateCausedStack (this=this@entry=0x4658aa0, causedStack=..., action=action@entry=0x46659a0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#26 0x00007fbd689a0d19 in QMenuPrivate::activateAction (this=0x4658aa0, action=0x46659a0, action_e=QAction::Trigger, self=<optimized out>) at widgets/qmenu.cpp:1130
#27 0x00007fbd685c331e in QWidget::event (this=this@entry=0x4658460, event=event@entry=0x7fff813a1b70) at kernel/qwidget.cpp:8375
#28 0x00007fbd689a4aeb in QMenu::event (this=0x4658460, e=0x7fff813a1b70) at widgets/qmenu.cpp:2481
#29 0x00007fbd68573dfc in QApplicationPrivate::notify_helper (this=this@entry=0x7f91e0, receiver=receiver@entry=0x4658460, e=e@entry=0x7fff813a1b70) at kernel/qapplication.cpp:4567
#30 0x00007fbd6857a5ad in QApplication::notify (this=this@entry=0x7fff813a23a0, receiver=receiver@entry=0x4658460, e=e@entry=0x7fff813a1b70) at kernel/qapplication.cpp:4110
#31 0x00007fbd6927da6a in KApplication::notify (this=0x7fff813a23a0, receiver=0x4658460, event=0x7fff813a1b70) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007fbd67b828bd in QCoreApplication::notifyInternal (this=0x7fff813a23a0, receiver=receiver@entry=0x4658460, event=event@entry=0x7fff813a1b70) at kernel/qcoreapplication.cpp:946
#33 0x00007fbd68579d63 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x4658460, event=event@entry=0x7fff813a1b70, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x4658460, buttonDown=buttonDown@entry=0x7fbd690582f8 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#35 0x00007fbd685eeb0c in QETWidget::translateMouseEvent (this=this@entry=0x4658460, event=event@entry=0x7fff813a1ec0) at kernel/qapplication_x11.cpp:4565
#36 0x00007fbd685ee079 in QApplication::x11ProcessEvent (this=0x7fff813a23a0, event=event@entry=0x7fff813a1ec0) at kernel/qapplication_x11.cpp:3624
#37 0x00007fbd68615922 in x11EventSourceDispatch (s=0x7fa000, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007fbd60efb3a6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fbd60efb6f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fbd60efb79c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007fbd67bafa76 in QEventDispatcherGlib::processEvents (this=0x7e4170, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#42 0x00007fbd686159d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007fbd67b815ef in QEventLoop::processEvents (this=this@entry=0x7fff813a22a0, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007fbd67b818e5 in QEventLoop::exec (this=this@entry=0x7fff813a22a0, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007fbd67b86e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#46 0x00007fbd6857234c in QApplication::exec () at kernel/qapplication.cpp:3828
#47 0x0000000000403660 in main (argc=1, argv=0x7fff813a24e8) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 324085, bug 304244, bug 299295, bug 294851.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:33:31 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 22:36:45 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.