Bug 351850 - Random crash when having a gmail account setup in kmail
Summary: Random crash when having a gmail account setup in kmail
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
: 339395 340157 340865 341860 343057 343768 344271 344340 344805 344828 345229 345748 348319 348365 349800 350548 350909 353306 353414 356387 361265 361410 361638 363390 368896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-27 13:26 UTC by Nigel Kukard
Modified: 2016-09-17 12:26 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.85 KB, text/plain)
2015-08-27 19:20 UTC, Nigel Kukard
Details
New crash information added by DrKonqi (5.21 KB, text/plain)
2016-03-29 14:03 UTC, noucamp13
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel Kukard 2015-08-27 13:26:15 UTC
Application: akonadi_imap_resource (4.14)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 4.1.0-3-generic x86_64
Distribution: Ubuntu Wily Werewolf (development branch)

-- Information about the crash:
This appears to be random, but happens at least once per day.

It appears to happen in the background as almost every single time its occured has been when I was busy in a terminal or browser window.

The crash can be reproduced sometimes.

-- Backtrace:
Application: nkukard@GMAIL of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3b4b13f840 (LWP 2199))]

Thread 3 (Thread 0x7f3b2e61d700 (LWP 2331)):
#0  0x00007fff5b1b2c2e in clock_gettime ()
#1  0x00007f3b469d138d in __GI___clock_gettime (clock_id=clock_id@entry=1, tp=tp@entry=0x7f3b2e61caf0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f3b4abe5565 in do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f3b4accc0a5 in QTimerInfoList::updateCurrentTime (this=0x7f3b20002ce0) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f3b20002ce0, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f3b4acca8dc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f3b2e61cbc4) at kernel/qeventdispatcher_glib.cpp:143
#7  0x00007f3b4acca9a5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#8  0x00007f3b45fb87cd in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f3b45fb91b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f3b45fb939c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f3b4accb20e in QEventDispatcherGlib::processEvents (this=0x7f3b200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#12 0x00007f3b4ac990d1 in QEventLoop::processEvents (this=this@entry=0x7f3b2e61cd90, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f3b4ac99445 in QEventLoop::exec (this=this@entry=0x7f3b2e61cd90, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f3b4ab884f9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#15 0x00007f3b4ab8ad1c in QThreadPrivate::start (arg=0x1628c80) at thread/qthread_unix.cpp:349
#16 0x00007f3b466a56aa in start_thread (arg=0x7f3b2e61d700) at pthread_create.c:333
#17 0x00007f3b469c2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f3b2ffff700 (LWP 3974)):
#0  0x00007fff5b1b2c2e in clock_gettime ()
#1  0x00007f3b469d138d in __GI___clock_gettime (clock_id=clock_id@entry=1, tp=tp@entry=0x7f3b2fffeaf0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f3b4abe5565 in do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f3b4accc0a5 in QTimerInfoList::updateCurrentTime (this=0x7f3b280011a0) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f3b280011a0, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f3b4acca8dc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f3b2fffebc4) at kernel/qeventdispatcher_glib.cpp:143
#7  0x00007f3b4acca9a5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#8  0x00007f3b45fb87cd in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f3b45fb91b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f3b45fb939c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f3b4accb20e in QEventDispatcherGlib::processEvents (this=0x7f3b28005610, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#12 0x00007f3b4ac990d1 in QEventLoop::processEvents (this=this@entry=0x7f3b2fffed90, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f3b4ac99445 in QEventLoop::exec (this=this@entry=0x7f3b2fffed90, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f3b4ab884f9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#15 0x00007f3b4ab8ad1c in QThreadPrivate::start (arg=0x167cd50) at thread/qthread_unix.cpp:349
#16 0x00007f3b466a56aa in start_thread (arg=0x7f3b2ffff700) at pthread_create.c:333
#17 0x00007f3b469c2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f3b4b13f840 (LWP 2199)):
[KCrash Handler]
#6  0x00007f3b499e288d in QByteArray::QByteArray (a=..., this=0x7fff5b1643f0) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  KIMAP::Message::Part::toString (this=0x0) at ../../kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at ../../kimap/searchjob.cpp:429
#9  0x00007f3b499d19be in KIMAP::SessionPrivate::responseReceived (this=0x1661bc0, response=...) at ../../kimap/session.cpp:300
#10 0x00007f3b4acb4d01 in QObject::event (this=0x1661bc0, e=<optimized out>) at kernel/qobject.cpp:1222
#11 0x00007f3b49fe3cdc in QApplicationPrivate::notify_helper (this=this@entry=0x15170e0, receiver=receiver@entry=0x1661bc0, e=e@entry=0x7f3b2802f310) at kernel/qapplication.cpp:4570
#12 0x00007f3b49feac16 in QApplication::notify (this=this@entry=0x7fff5b164c40, receiver=receiver@entry=0x1661bc0, e=e@entry=0x7f3b2802f310) at kernel/qapplication.cpp:4356
#13 0x00007f3b47e428da in KApplication::notify (this=0x7fff5b164c40, receiver=0x1661bc0, event=0x7f3b2802f310) at ../../kdeui/kernel/kapplication.cpp:311
#14 0x00007f3b4ac9a85d in QCoreApplication::notifyInternal (this=0x7fff5b164c40, receiver=receiver@entry=0x1661bc0, event=event@entry=0x7f3b2802f310) at kernel/qcoreapplication.cpp:955
#15 0x00007f3b4ac9e316 in QCoreApplication::sendEvent (event=0x7f3b2802f310, receiver=0x1661bc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x14dbde0) at kernel/qcoreapplication.cpp:1579
#17 0x00007f3b4ac9e5f3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#18 0x00007f3b4accb07e in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#19 postEventSourceDispatch (s=0x1505ca0) at kernel/qeventdispatcher_glib.cpp:300
#20 0x00007f3b45fb900d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f3b45fb92f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f3b45fb939c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f3b4accb1ee in QEventDispatcherGlib::processEvents (this=0x14dd660, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#24 0x00007f3b4a08ec26 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f3b4ac990d1 in QEventLoop::processEvents (this=this@entry=0x7fff5b164bb0, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f3b4ac99445 in QEventLoop::exec (this=this@entry=0x7fff5b164bb0, flags=...) at kernel/qeventloop.cpp:204
#27 0x00007f3b4ac9f429 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#28 0x00007f3b49fe1f2c in QApplication::exec () at kernel/qapplication.cpp:3828
#29 0x00007f3b48f47a8d in Akonadi::ResourceBase::init (r=r@entry=0x1675830) at ../../akonadi/resourcebase.cpp:583
#30 0x0000000000418a9e in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:193
#31 0x00007f3b468dca40 in __libc_start_main (main=0x4183d0 <main(int, char**)>, argc=3, argv=0x7fff5b164d58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5b164d48) at libc-start.c:289
#32 0x0000000000418949 in _start ()

Reported using DrKonqi
Comment 1 Nigel Kukard 2015-08-27 19:20:56 UTC
Created attachment 94252 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.6 using Qt 4.8.6

- What I was doing when the application crashed:
I was in a terminal and it crashed in the background

-- Backtrace (Reduced):
#6  0x00007fadd0c2488d in QByteArray::QByteArray (a=..., this=0x7fffcd4d4cd0) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  KIMAP::Message::Part::toString (this=0x0) at ../../kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at ../../kimap/searchjob.cpp:429
#9  0x00007fadd0c139be in KIMAP::SessionPrivate::responseReceived (this=0x2181c30, response=...) at ../../kimap/session.cpp:300
#10 0x00007fadd1ef6d01 in QObject::event (this=0x2181c30, e=<optimized out>) at kernel/qobject.cpp:1222
Comment 2 Weng Xuetian 2015-09-27 19:21:06 UTC
Git commit 8391392149ecae53fa4b792d9e7f06b1a23a8f9f by Weng Xuetian.
Committed on 27/09/2015 at 19:19.
Pushed by xuetianweng into branch 'master'.

Check response content size before accessing it in search job

REVIEW: 125426

M  +2    -2    src/searchjob.cpp

http://commits.kde.org/kimap/8391392149ecae53fa4b792d9e7f06b1a23a8f9f
Comment 3 Allen Winter 2015-09-28 14:34:39 UTC
Git commit e99682c321aafa0918cf929cba888036dd9ecfd5 by Allen Winter.
Committed on 28/09/2015 at 14:31.
Pushed by winterz into branch 'KDE/4.14'.

Check response content size before accessing it in search job
MERGE: not needed. this is a back port

M  +2    -2    kimap/searchjob.cpp

http://commits.kde.org/kdepimlibs/e99682c321aafa0918cf929cba888036dd9ecfd5
Comment 4 Daniel Vrátil 2016-03-21 23:47:33 UTC
*** Bug 339395 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Vrátil 2016-03-21 23:48:16 UTC
*** Bug 340157 has been marked as a duplicate of this bug. ***
Comment 6 Daniel Vrátil 2016-03-21 23:48:32 UTC
*** Bug 340865 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Vrátil 2016-03-21 23:50:16 UTC
*** Bug 341860 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Vrátil 2016-03-21 23:50:56 UTC
*** Bug 343057 has been marked as a duplicate of this bug. ***
Comment 9 Daniel Vrátil 2016-03-21 23:51:19 UTC
*** Bug 343768 has been marked as a duplicate of this bug. ***
Comment 10 Daniel Vrátil 2016-03-21 23:51:35 UTC
*** Bug 344271 has been marked as a duplicate of this bug. ***
Comment 11 Daniel Vrátil 2016-03-21 23:51:56 UTC
*** Bug 344340 has been marked as a duplicate of this bug. ***
Comment 12 Daniel Vrátil 2016-03-21 23:52:10 UTC
*** Bug 344805 has been marked as a duplicate of this bug. ***
Comment 13 Daniel Vrátil 2016-03-21 23:52:23 UTC
*** Bug 344828 has been marked as a duplicate of this bug. ***
Comment 14 Daniel Vrátil 2016-03-21 23:52:36 UTC
*** Bug 345229 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Vrátil 2016-03-21 23:53:26 UTC
*** Bug 345748 has been marked as a duplicate of this bug. ***
Comment 16 Daniel Vrátil 2016-03-21 23:53:49 UTC
*** Bug 348319 has been marked as a duplicate of this bug. ***
Comment 17 Daniel Vrátil 2016-03-21 23:54:05 UTC
*** Bug 348365 has been marked as a duplicate of this bug. ***
Comment 18 Daniel Vrátil 2016-03-21 23:54:18 UTC
*** Bug 349800 has been marked as a duplicate of this bug. ***
Comment 19 Daniel Vrátil 2016-03-21 23:54:33 UTC
*** Bug 350548 has been marked as a duplicate of this bug. ***
Comment 20 Daniel Vrátil 2016-03-21 23:54:58 UTC
*** Bug 350909 has been marked as a duplicate of this bug. ***
Comment 21 Daniel Vrátil 2016-03-21 23:56:18 UTC
*** Bug 353306 has been marked as a duplicate of this bug. ***
Comment 22 Daniel Vrátil 2016-03-21 23:56:27 UTC
*** Bug 353414 has been marked as a duplicate of this bug. ***
Comment 23 Daniel Vrátil 2016-03-21 23:56:40 UTC
*** Bug 356387 has been marked as a duplicate of this bug. ***
Comment 24 noucamp13 2016-03-29 14:03:23 UTC
Created attachment 98143 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:

Same issue as everyone else. Bug is marked as 'solved' yet it still happens. I cannot find what fix was implemented to resolve it.

-- Backtrace (Reduced):
#6  0x00007f120599368d in QByteArray (a=..., this=0x7fff9eb0d2c0) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  toString (this=0x0) at ../../kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at ../../kimap/searchjob.cpp:429
#9  0x00007f1205983df4 in KIMAP::SessionPrivate::responseReceived (this=0x1dbd4a0, response=...) at ../../kimap/session.cpp:300
#10 0x00007f1207d12c1e in QObject::event (this=0x1dbd4a0, e=<optimized out>) at kernel/qobject.cpp:1194
Comment 25 Daniel Vrátil 2016-03-31 00:12:50 UTC
The bug has been fixed in KDE Applications 15.08 release, the fixed has been cherry-picked to KDE/4.14 branch after its last release. Please ask your distribution to include the patch in their packaging, or upgrade to latest KDE PIM from KDE Applications 16.04.
Comment 26 Daniel Vrátil 2016-06-18 08:16:46 UTC
*** Bug 361638 has been marked as a duplicate of this bug. ***
Comment 27 Daniel Vrátil 2016-07-20 21:25:47 UTC
*** Bug 363390 has been marked as a duplicate of this bug. ***
Comment 28 Denis Kurz 2016-09-17 12:26:32 UTC
*** Bug 361265 has been marked as a duplicate of this bug. ***
Comment 29 Denis Kurz 2016-09-17 12:26:47 UTC
*** Bug 361410 has been marked as a duplicate of this bug. ***
Comment 30 Denis Kurz 2016-09-17 12:26:58 UTC
*** Bug 368896 has been marked as a duplicate of this bug. ***