Bug 334779

Summary: KNotes crashes Kontact
Product: [Applications] kontact Reporter: twtroughton
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.13.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description twtroughton 2014-05-14 18:19:53 UTC
Application: kontact (4.13.1)
KDE Platform Version: 4.13.1
Qt Version: 4.8.6
Operating System: Linux 3.13.0-24-generic i686
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
I had two collections selected in KNotes. One was supposed to be the default collections. I created a note, which appeared twice. Edited one note - entered message. When I edited the second note with a different message, I got a dialogue box asking me to compare and choose one. I selected one, then deleted the other. Went to KNotes Settings, collections, and unselected the not default collection. Kontact crashed.

Other notes - There is nothing in my .kde/share/apps/knotes directory except a print folder.

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

Thread 6 (Thread 0xae7cdb40 (LWP 3198)):
#0  0xb7720424 in __kernel_vsyscall ()
#1  0xb31a3d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb60ae8ec in __pthread_cond_wait (cond=0xb57fdcb0, mutex=0xb57fdc98) at forward.c:149
#3  0xb4f859ac in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb4f859ff in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb319ff70 in start_thread (arg=0xae7cdb40) at pthread_create.c:312
#6  0xb60a170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 5 (Thread 0xadeacb40 (LWP 3199)):
#0  0xb7720424 in __kernel_vsyscall ()
#1  0xb31a3d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb60ae8ec in __pthread_cond_wait (cond=0xadf1a7dc, mutex=0xadf1a7c4) at forward.c:149
#3  0xb4fb49f3 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb4c90574 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb4f9b7c6 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb4fb4369 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb319ff70 in start_thread (arg=0xadeacb40) at pthread_create.c:312
#8  0xb60a170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 4 (Thread 0xab30db40 (LWP 3203)):
#0  0xb63f6def in testAndSetOrdered (newValue=0, expectedValue=1, this=0x92d0a28) at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:144
#1  testAndSetRelease (newValue=0, expectedValue=1, this=0x92d0a28) at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:271
#2  unlockInline (this=0x8d0f494) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:171
#3  unlock (this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:121
#4  ~QMutexLocker (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:115
#5  canWaitLocked (this=<optimized out>) at ../../include/QtCore/private/../../../src/corelib/thread/qthread_p.h:229
#6  postEventSourcePrepare (s=0xaaa02800, timeout=0xab30d11c) at kernel/qeventdispatcher_glib.cpp:270
#7  0xb30b99b3 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb30ba2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb30ba528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb63f695f in QEventDispatcherGlib::processEvents (this=0xaaa00468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#11 0xb63c5823 in QEventLoop::processEvents (this=this@entry=0xab30d288, flags=...) at kernel/qeventloop.cpp:149
#12 0xb63c5b49 in QEventLoop::exec (this=this@entry=0xab30d288, flags=...) at kernel/qeventloop.cpp:204
#13 0xb62b223d in QThread::exec (this=this@entry=0x8d1d0f0) at thread/qthread.cpp:537
#14 0xb62b238b in QThread::run (this=0x8d1d0f0) at thread/qthread.cpp:604
#15 0xb62b4b6f in QThreadPrivate::start (arg=0x8d1d0f0) at thread/qthread_unix.cpp:349
#16 0xb319ff70 in start_thread (arg=0xab30db40) at pthread_create.c:312
#17 0xb60a170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 3 (Thread 0xaa222b40 (LWP 3208)):
#0  0xb7720424 in __kernel_vsyscall ()
#1  0xb60927ab in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb30c920b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb30ba3e8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb30ba528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb63f695f in QEventDispatcherGlib::processEvents (this=0xa9900468, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0xb63c5823 in QEventLoop::processEvents (this=this@entry=0xaa222258, flags=...) at kernel/qeventloop.cpp:149
#7  0xb63c5b49 in QEventLoop::exec (this=this@entry=0xaa222258, flags=...) at kernel/qeventloop.cpp:204
#8  0xb62b223d in QThread::exec (this=this@entry=0x9259818) at thread/qthread.cpp:537
#9  0xb63a5c44 in QInotifyFileSystemWatcherEngine::run (this=0x9259818) at io/qfilesystemwatcher_inotify.cpp:265
#10 0xb62b4b6f in QThreadPrivate::start (arg=0x9259818) at thread/qthread_unix.cpp:349
#11 0xb319ff70 in start_thread (arg=0xaa222b40) at pthread_create.c:312
#12 0xb60a170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 2 (Thread 0xa98ffb40 (LWP 3209)):
#0  0xb7720424 in __kernel_vsyscall ()
#1  0xb31a3d4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb60ae8ec in __pthread_cond_wait (cond=0xac4a98d0, mutex=0xac4a98b8) at forward.c:149
#3  0xac3a6c92 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xac3a6cdf in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb319ff70 in start_thread (arg=0xa98ffb40) at pthread_create.c:312
#6  0xb60a170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb13f0740 (LWP 3197)):
[KCrash Handler]
#7  ref (this=0x2f007d) at /usr/include/qt4/QtCore/qatomic_i386.h:120
#8  QSharedDataPointer (o=..., this=0xbf8ad0fc) at /usr/include/qt4/QtCore/qshareddata.h:93
#9  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#10 0xb59d3c66 in Akonadi::Entity::Entity (this=0xbf8ad190, other=...) at ../../akonadi/entity.cpp:55
#11 0xb5a8d493 in Akonadi::Item::Item (this=0xbf8ad190, other=...) at ../../akonadi/item.cpp:130
#12 0xac9abaa7 in KNotesIconViewItem::item (this=0x9664380) at ../../../../kontact/plugins/knotes/knotesiconview.cpp:263
#13 0xac9a74f5 in KNotesPart::slotCollectionChanged (this=this@entry=0x92ace98, col=..., set=...) at ../../../../kontact/plugins/knotes/knotes_part.cpp:807
#14 0xac9b339f in KNotesPart::qt_static_metacall (_o=_o@entry=0x92ace98, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=30, _a=0xbf8ad2c4) at moc_knotes_part.cpp:133
#15 0xb63dc0f7 in QMetaObject::activate (sender=sender@entry=0x92b5210, m=m@entry=0xb5c0f218 <Akonadi::Monitor::staticMetaObject>, local_signal_index=local_signal_index@entry=14, argv=argv@entry=0xbf8ad2c4) at kernel/qobject.cpp:3539
#16 0xb5ab00bd in Akonadi::Monitor::collectionChanged (this=0x92b5210, _t1=..., _t2=...) at ./moc_monitor.cpp:329
#17 0xb5aba4e6 in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x92b5220, msg=..., col=..., par=..., dest=...) at ../../akonadi/monitor_p.cpp:926
#18 0xb5abb2de in Akonadi::MonitorPrivate::emitNotification (this=0x92b5220, msg=...) at ../../akonadi/monitor_p.cpp:494
#19 0xb5ab6bce in Akonadi::MonitorPrivate::flushPipeline (this=this@entry=0x92b5220) at ../../akonadi/monitor_p.cpp:706
#20 0xb5ab6da0 in Akonadi::MonitorPrivate::dataAvailable (this=0x92b5220) at ../../akonadi/monitor_p.cpp:715
#21 0xb5ab0753 in Akonadi::Monitor::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0xbf8ad4e8, _c=<optimized out>) at ./moc_monitor.cpp:178
#22 0xb63dc0f7 in QMetaObject::activate (sender=sender@entry=0x92b4b00, m=m@entry=0xb5c0e0dc <Akonadi::EntityCacheBase::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#23 0xb5a54d25 in Akonadi::EntityCacheBase::dataAvailable (this=0x92b4b00) at ./moc_entitycache_p.cpp:101
#24 0xb5a0fc81 in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::processResult (this=0x92b4b00, job=0x9ce4c98) at ../../akonadi/entitycache_p.h:213
#25 0xb5a54c63 in Akonadi::EntityCacheBase::qt_static_metacall (_o=_o@entry=0x92b4b00, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf8ad688) at ./moc_entitycache_p.cpp:53
#26 0xb63dc0f7 in QMetaObject::activate (sender=sender@entry=0x9ce4c98, m=m@entry=0xb67e14cc <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0xbf8ad688) at kernel/qobject.cpp:3539
#27 0xb663cf95 in KJob::result (this=this@entry=0x9ce4c98, _t1=_t1@entry=0x9ce4c98) at ./kjob.moc:207
#28 0xb663cfe2 in KJob::emitResult (this=this@entry=0x9ce4c98) at ../../kdecore/jobs/kjob.cpp:318
#29 0xb5aabbe7 in Akonadi::JobPrivate::delayedEmitResult (this=0xa2b5340) at ../../akonadi/job.cpp:161
#30 0xb63d88aa in QMetaCallEvent::placeMetaCall (this=0xa4c5090, object=0x9ce4c98) at kernel/qobject.cpp:524
#31 0xb63e06fb in QObject::event (this=0x9ce4c98, e=0xa4c5090) at kernel/qobject.cpp:1194
#32 0xb69227f4 in QApplicationPrivate::notify_helper (this=0x8bf5388, receiver=0x9ce4c98, e=0xa4c5090) at kernel/qapplication.cpp:4567
#33 0xb69292d3 in QApplication::notify (this=0xbf8adcf8, receiver=receiver@entry=0x9ce4c98, e=e@entry=0xa4c5090) at kernel/qapplication.cpp:4353
#34 0xb74721f4 in KApplication::notify (this=0xbf8adcf8, receiver=0x9ce4c98, event=0xa4c5090) at ../../kdeui/kernel/kapplication.cpp:311
#35 0xb63c6e4a in QCoreApplication::notifyInternal (this=0xbf8adcf8, receiver=receiver@entry=0x9ce4c98, event=event@entry=0xa4c5090) at kernel/qcoreapplication.cpp:953
#36 0xb63ca70d in sendEvent (event=0xa4c5090, receiver=0x9ce4c98) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x8bca010) at kernel/qcoreapplication.cpp:1577
#38 0xb63cac1c in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#39 0xb63f723e in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#40 postEventSourceDispatch (s=0x8bf5488) at kernel/qeventdispatcher_glib.cpp:287
#41 0xb30ba1e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#42 0xb30ba468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#43 0xb30ba528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#44 0xb63f693b in QEventDispatcherGlib::processEvents (this=this@entry=0x8bcad98, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#45 0xb69d75de in QGuiEventDispatcherGlib::processEvents (this=0x8bcad98, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0xb63c5823 in QEventLoop::processEvents (this=this@entry=0xbf8adc48, flags=...) at kernel/qeventloop.cpp:149
#47 0xb63c5b49 in QEventLoop::exec (this=this@entry=0xbf8adc48, flags=...) at kernel/qeventloop.cpp:204
#48 0xb63cb8fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#49 0xb6920a24 in QApplication::exec () at kernel/qapplication.cpp:3828
#50 0x0804ab4c in main (argc=1, argv=0xbf8addd4) at ../../../kontact/src/main.cpp:219

The reporter indicates this bug may be a duplicate of or related to bug 334778.

Possible duplicates by query: bug 331678, bug 331499, bug 330269, bug 329805, bug 325911.

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:31:53 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:27: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.