Bug 313804

Summary: Akonadi imap resource crash with no evident clue
Product: [Frameworks and Libraries] Akonadi Reporter: Bruno Friedmann <bruno>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kdepim-bugs, mollekopf, vkrause
Priority: NOR Keywords: triaged
Version: 4.9   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bruno Friedmann 2013-01-24 06:29:20 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.5 "release 3"
Qt Version: 4.8.4
Operating System: Linux 3.4.11-2.16-desktop x86_64
Distribution: "openSUSE 12.2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: From the last few days, this kind of crash happen from time to time. 
Those resources are there from a long time, and were working.
This crash for example happen during the night when the computer was idle.

All those kind of trouble happen now, cause the nepomuk database was cleaned adn restarted from scratch

The crash can be reproduced some of the time.

-- Backtrace:
Application: 01_bruno of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6494759780 (LWP 3870))]

Thread 3 (Thread 0x7f647bfff700 (LWP 10637)):
#0  0x00007f64901d61ed in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f648ed6782f in read (__nbytes=16, __buf=0x7f647bffec20, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x7f6474001da0) at gwakeup.c:212
#3  0x00007f648ed2c209 in g_main_context_check (context=context@entry=0x7f64700009a0, max_priority=2147483647, fds=fds@entry=0x7f64700067e0, n_fds=n_fds@entry=1) at gmain.c:2980
#4  0x00007f648ed2c622 in g_main_context_iterate (context=context@entry=0x7f64700009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3143
#5  0x00007f648ed2c7a4 in g_main_context_iteration (context=0x7f64700009a0, may_block=1) at gmain.c:3207
#6  0x00007f6493bda136 in QEventDispatcherGlib::processEvents (this=0x7f64700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f6493baa94f in QEventLoop::processEvents (this=this@entry=0x7f647bffede0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f6493baabd8 in QEventLoop::exec (this=0x7f647bffede0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f6493aad0b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#10 0x00007f64927f3367 in KIMAP::SessionThread::run (this=0xddf920) at /usr/src/debug/kdepimlibs-4.9.5/kimap/sessionthread.cpp:182
#11 0x00007f6493ab008c in QThreadPrivate::start (arg=0xddf920) at thread/qthread_unix.cpp:338
#12 0x00007f648fa8be0e in start_thread (arg=0x7f647bfff700) at pthread_create.c:305
#13 0x00007f64901e22cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f648366d700 (LWP 10711)):
#0  0x00007f64901da14f in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f648ed2c684 in g_main_context_poll (n_fds=1, fds=0x7f647c0241d0, timeout=-1, context=0x7f647c014cc0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x7f647c014cc0, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3141
#3  0x00007f648ed2c7a4 in g_main_context_iteration (context=0x7f647c014cc0, may_block=1) at gmain.c:3207
#4  0x00007f6493bda136 in QEventDispatcherGlib::processEvents (this=0x7f647c0041b0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f6493baa94f in QEventLoop::processEvents (this=this@entry=0x7f648366cde0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f6493baabd8 in QEventLoop::exec (this=0x7f648366cde0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f6493aad0b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f64927f3367 in KIMAP::SessionThread::run (this=0x114d9d0) at /usr/src/debug/kdepimlibs-4.9.5/kimap/sessionthread.cpp:182
#9  0x00007f6493ab008c in QThreadPrivate::start (arg=0x114d9d0) at thread/qthread_unix.cpp:338
#10 0x00007f648fa8be0e in start_thread (arg=0x7f648366d700) at pthread_create.c:305
#11 0x00007f64901e22cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f6494759780 (LWP 3870)):
[KCrash Handler]
#6  same_key (key0=<optimized out>, h0=296620, this=<optimized out>) at /usr/include/QtCore/qhash.h:225
#7  QHash<long long, Akonadi::Item>::findNode (this=this@entry=0x106cff0, akey=@0x7fffce152a68: 296620, ahp=ahp@entry=0x7fffce152a34) at /usr/include/QtCore/qhash.h:887
#8  0x00007f64942a5f0e in insert (avalue=..., akey=@0x7fffce152a68: 296620, this=0x106cff0) at /usr/include/QtCore/qhash.h:759
#9  Akonadi::ItemSync::Private::slotLocalListDone (this=0x106cfe0, job=<optimized out>) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/itemsync.cpp:264
#10 0x00007f6493bc10ff in QMetaObject::activate (sender=0x12b7340, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffce152bf0) at kernel/qobject.cpp:3548
#11 0x00007f6490aeea82 in KJob::result (this=this@entry=0x12b7340, _t1=_t1@entry=0x12b7340) at /usr/src/debug/kdelibs-4.9.5/build/kdecore/kjob.moc:208
#12 0x00007f6490aeeac0 in KJob::emitResult (this=0x12b7340) at /usr/src/debug/kdelibs-4.9.5/kdecore/jobs/kjob.cpp:318
#13 0x00007f6493bc05de in QObject::event (this=0x12b7340, e=<optimized out>) at kernel/qobject.cpp:1203
#14 0x00007f6492f5585c in QApplicationPrivate::notify_helper (this=this@entry=0xd87860, receiver=receiver@entry=0x12b7340, e=e@entry=0x63f2ae0) at kernel/qapplication.cpp:4562
#15 0x00007f6492f59cda in QApplication::notify (this=0x7fffce153580, receiver=0x12b7340, e=0x63f2ae0) at kernel/qapplication.cpp:4423
#16 0x00007f64910c4636 in KApplication::notify (this=0x7fffce153580, receiver=0x12b7340, event=0x63f2ae0) at /usr/src/debug/kdelibs-4.9.5/kdeui/kernel/kapplication.cpp:311
#17 0x00007f6493babbfe in QCoreApplication::notifyInternal (this=0x7fffce153580, receiver=receiver@entry=0x12b7340, event=event@entry=0x63f2ae0) at kernel/qcoreapplication.cpp:946
#18 0x00007f6493baf561 in sendEvent (event=0x63f2ae0, receiver=0x12b7340) at kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd5c4d0) at kernel/qcoreapplication.cpp:1570
#20 0x00007f6493bd9f83 in sendPostedEvents () at kernel/qcoreapplication.h:236
#21 postEventSourceDispatch (s=s@entry=0xd9b4f0) at kernel/qeventdispatcher_glib.cpp:279
#22 0x00007f648ed2c3b5 in g_main_dispatch (context=0xd88e00) at gmain.c:2539
#23 g_main_context_dispatch (context=context@entry=0xd88e00) at gmain.c:3075
#24 0x00007f648ed2c6e8 in g_main_context_iterate (context=context@entry=0xd88e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<error reading variable: Unhandled dwarf expression opcode 0xfa>) at gmain.c:3146
#25 0x00007f648ed2c7a4 in g_main_context_iteration (context=0xd88e00, may_block=1) at gmain.c:3207
#26 0x00007f6493bda116 in QEventDispatcherGlib::processEvents (this=0xd61c50, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#27 0x00007f6492ff5bee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f6493baa94f in QEventLoop::processEvents (this=this@entry=0x7fffce153500, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f6493baabd8 in QEventLoop::exec (this=0x7fffce153500, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f6493baf878 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#31 0x00007f6494218473 in Akonadi::ResourceBase::init (r=0xf74430) at /usr/src/debug/kdepimlibs-4.9.5/akonadi/resourcebase.cpp:451
#32 0x000000000041c743 in _start ()

Reported using DrKonqi
Comment 1 Kevin Ottens 2013-11-16 07:26:14 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 2 Christian Mollekopf 2013-11-19 16:52:00 UTC
Does this still apply to >=4.11.3?
Comment 3 Bruno Friedmann 2013-11-19 20:31:49 UTC
I've no more seen segfault crash with 4.11.3. The connection are still dropped or re-asking password even when kwallet is open.
Could you status the bug ? I don't know if it is closed/fixed
Comment 4 Andrew Crouthamel 2018-09-25 03:31:02 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 set the bug status 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 5 Andrew Crouthamel 2018-10-27 02:47:10 UTC
Dear Bug Submitter,

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!