Bug 384419

Summary: Followup reminder crashes after an item is deleted, dialog closed and a reply to an email is send out
Product: [Frameworks and Libraries] Akonadi Reporter: Achim Bohnet <ach>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.6.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Achim Bohnet 2017-09-06 09:29:23 UTC
Application: akonadi_followupreminder_agent (5.6.0)

Qt Version: 5.9.1
Frameworks Version: 5.37.0
Operating System: Linux 4.10.0-32-generic x86_64
Distribution: KDE neon User Edition 5.10

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

* Deleting an Item in the FollowupReminder Dialog
* Replying to an e-mail (imap resource to dovecot server)
-> crash

repeated 3 times always produced a crash

- Unusual behavior I noticed:

3 Points: 

Starting with 17.08 I've notived sometimes

 1) reading e-mail sometimes does not mark them as read
 2) Moving/deleting msg does not always work:  can not connect to akonadi

I've not can't reliable  reproduce them (so no bug report yet) and after some
times and a few tries it works again until it fails again.

 3) I get no Event Reminder dialog anymore.  I _assume_ it correlates to the FollowupReminder
    that I started using a few week ago.  NO time yet to investigate.

Drkonqi pointed be to bug 372712 as a duplicate, I didn't find similarities but maybe an
export seen that my report is a duplicate.

The crash can be reproduced every time.

-- Backtrace:
Application: Followup Reminder Agent (akonadi_followupreminder_agent), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6626ada940 (LWP 14451))]

Thread 6 (Thread 0x7f6606174700 (LWP 14511)):
#0  0x00007f663581f70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f662e0d4861 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f662e0c5e11 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f662e0c64ae in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f662e0c6560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f662e0d47a9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f662884b078 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
#7  0x00007f6631e4d6ba in start_thread (arg=0x7f6606174700) at pthread_create.c:333
#8  0x00007f663582b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f66213ec700 (LWP 14457)):
#0  0x00007f663581f70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f66301db38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f66301db49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f663635d94b in QEventDispatcherGlib::processEvents (this=0x7f660c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f66363067ca in QEventLoop::exec (this=this@entry=0x7f66213ebc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f663612fcd4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f6636134989 in QThreadPrivate::start (arg=0xe992e0) at thread/qthread_unix.cpp:368
#7  0x00007f6631e4d6ba in start_thread (arg=0x7f66213ec700) at pthread_create.c:333
#8  0x00007f663582b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f6621bed700 (LWP 14454)):
#0  __GI___tls_get_addr (ti=0x7f66365c1770) at dl-tls.c:832
#1  0x00007f6636133836 in get_thread_data () at thread/qthread_unix.cpp:189
#2  QThreadData::current (createIfNecessary=createIfNecessary@entry=true) at thread/qthread_unix.cpp:244
#3  0x00007f663635dd51 in postEventSourcePrepare (timeout=0x0, s=0x7f66180012d0) at kernel/qeventdispatcher_glib.cpp:252
#4  postEventSourceCheck (source=0x7f66180012d0) at kernel/qeventdispatcher_glib.cpp:269
#5  0x00007f66301dadc1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f66301db330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f66301db49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f663635d94b in QEventDispatcherGlib::processEvents (this=0x7f66180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#9  0x00007f66363067ca in QEventLoop::exec (this=this@entry=0x7f6621becc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#10 0x00007f663612fcd4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#11 0x00007f6636134989 in QThreadPrivate::start (arg=0xe88890) at thread/qthread_unix.cpp:368
#12 0x00007f6631e4d6ba in start_thread (arg=0x7f6621bed700) at pthread_create.c:333
#13 0x00007f663582b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f66223ee700 (LWP 14453)):
#0  0x00007f663581f70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f66301db38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f66301db49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f663635d94b in QEventDispatcherGlib::processEvents (this=0x7f66140008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f66363067ca in QEventLoop::exec (this=this@entry=0x7f66223edc50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f663612fcd4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f66399fab75 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f6636134989 in QThreadPrivate::start (arg=0x7f6639a70da0) at thread/qthread_unix.cpp:368
#8  0x00007f6631e4d6ba in start_thread (arg=0x7f66223ee700) at pthread_create.c:333
#9  0x00007f663582b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f662461e700 (LWP 14452)):
#0  0x00007f663581f70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f663226fc62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f66322718d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f662654f329 in QXcbEventReader::run (this=0xe4d230) at qxcbconnection.cpp:1322
#4  0x00007f6636134989 in QThreadPrivate::start (arg=0xe4d230) at thread/qthread_unix.cpp:368
#5  0x00007f6631e4d6ba in start_thread (arg=0x7f662461e700) at pthread_create.c:333
#6  0x00007f663582b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f6626ada940 (LWP 14451)):
[KCrash Handler]
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x0) at /usr/include/c++/5/bits/atomic_base.h:396
#7  QAtomicOps<int>::load<int> (_q_value=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qatomic_cxx11.h:227
#8  QBasicAtomicInteger<int>::load (this=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbasicatomic.h:102
#9  QtPrivate::RefCount::ref (this=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:55
#10 QString::QString (other=..., this=this@entry=0x7ffdad75db90) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:907
#11 FollowUpReminder::FollowUpReminderInfo::messageId (this=this@entry=0xe7d1f0) at /workspace/build/libfollowupreminder/src/followupreminderinfo.cpp:157
#12 0x000000000040e34d in FollowUpReminderManager::slotCheckFollowUpFinished (this=0xeb8ab0, messageId=..., id=70232) at /workspace/build/agents/followupreminderagent/followupremindermanager.cpp:128
#13 0x00007f6636334f46 in QtPrivate::QSlotObjectBase::call (a=0x7ffdad75dd20, r=0xeb8ab0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#14 QMetaObject::activate (sender=sender@entry=0x1128230, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffdad75dd20) at kernel/qobject.cpp:3749
#15 0x00007f6636335527 in QMetaObject::activate (sender=sender@entry=0x1128230, m=m@entry=0x61da60 <FollowUpReminderJob::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffdad75dd20) at kernel/qobject.cpp:3628
#16 0x0000000000416744 in FollowUpReminderJob::finished (this=this@entry=0x1128230, _t1=..., _t2=70232) at /workspace/build/obj-x86_64-linux-gnu/agents/followupreminderagent/moc_followupreminderjob.cpp:131
#17 0x00000000004132b7 in FollowUpReminderJob::slotItemFetchJobDone (this=0x1128230, job=0x111b310) at /workspace/build/agents/followupreminderagent/jobs/followupreminderjob.cpp:85
#18 0x00007f6636334f46 in QtPrivate::QSlotObjectBase::call (a=0x7ffdad75df30, r=0x1128230, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#19 QMetaObject::activate (sender=sender@entry=0x111b310, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffdad75df30) at kernel/qobject.cpp:3749
#20 0x00007f6636335527 in QMetaObject::activate (sender=sender@entry=0x111b310, m=m@entry=0x7f66378ad500 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffdad75df30) at kernel/qobject.cpp:3628
#21 0x00007f663765b48c in KJob::result (this=this@entry=0x111b310, _t1=_t1@entry=0x111b310, _t2=...) at /workspace/build/obj-x86_64-linux-gnu/src/lib/moc_kjob.cpp:570
#22 0x00007f663765bfa1 in KJob::finishJob (this=0x111b310, emitResult=emitResult@entry=true) at /workspace/build/src/lib/jobs/kjob.cpp:109
#23 0x00007f663765bfba in KJob::emitResult (this=<optimized out>) at /workspace/build/src/lib/jobs/kjob.cpp:293
#24 0x00007f66389ae319 in Akonadi::JobPrivate::delayedEmitResult (this=<optimized out>) at /workspace/build/src/core/jobs/job.cpp:173
#25 0x00007f66389af359 in Akonadi::Job::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /workspace/build/obj-x86_64-linux-gnu/src/core/moc_job.cpp:110
#26 0x00007f6636335c59 in QObject::event (this=0x111b310, e=<optimized out>) at kernel/qobject.cpp:1246
#27 0x00007f6636c703fc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x111b310, e=0xedb6c0) at kernel/qapplication.cpp:3717
#28 0x00007f6636c77e07 in QApplication::notify (this=0x7ffdad75e590, receiver=0x111b310, e=0xedb6c0) at kernel/qapplication.cpp:3476
#29 0x00007f6636308798 in QCoreApplication::notifyInternal2 (receiver=0x111b310, event=event@entry=0xedb6c0) at kernel/qcoreapplication.cpp:1018
#30 0x00007f663630af7b in QCoreApplication::sendEvent (event=0xedb6c0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xe321b0) at kernel/qcoreapplication.cpp:1678
#32 0x00007f663630b3e8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1532
#33 0x00007f663635e323 in postEventSourceDispatch (s=0xe6cf50) at kernel/qeventdispatcher_glib.cpp:276
#34 0x00007f66301db197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f66301db3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f66301db49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f663635d92f in QEventDispatcherGlib::processEvents (this=0xe79bc0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007f66363067ca in QEventLoop::exec (this=this@entry=0x7ffdad75e4f0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#39 0x00007f663630f704 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291
#40 0x00007f66366f12ec in QGuiApplication::exec () at kernel/qguiapplication.cpp:1679
#41 0x00007f6636c70355 in QApplication::exec () at kernel/qapplication.cpp:2905
#42 0x00007f66393e18fa in Akonadi::AgentBase::init (r=r@entry=0xe87ec0) at /workspace/build/src/agentbase/agentbase.cpp:952
#43 0x000000000040cbe7 in Akonadi::AgentBase::init<FollowUpReminderAgent> (argc=3, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/agentbase.h:480
#44 0x00007f6635744830 in __libc_start_main (main=0x40b8c0 <main(int, char**)>, argc=3, argv=0x7ffdad75e6b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdad75e6a8) at ../csu/libc-start.c:291
#45 0x000000000040b8f9 in _start ()

Possible duplicates by query: bug 372712.

Reported using DrKonqi
Comment 1 Justin Zobel 2020-12-17 05:31:26 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 2 Bug Janitor Service 2021-01-01 04:37:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-01-16 04:36:21 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!