Bug 198561 - Kmail crashes after getting stuck loading an imap account / on start / when performing a search [null KIO::Slave::slaveProtocol, KIO::Scheduler::*, KMail::SearchJob::searchCompleteFolder]
Summary: Kmail crashes after getting stuck loading an imap account / on start / when p...
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: search (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 224820 231240 233579 233715 233936 234366 234367 234540 236520 242570 245452 246617 248011 252023 255400 257022 261744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-01 20:06 UTC by Ralph Janke
Modified: 2018-10-27 04:02 UTC (History)
25 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.69 KB, text/plain)
2010-10-09 23:27 UTC, zless
Details
New crash information added by DrKonqi (5.39 KB, text/plain)
2010-10-18 14:24 UTC, Manu
Details
New crash information added by DrKonqi (6.35 KB, text/plain)
2011-04-06 08:07 UTC, Sergey Pachkov
Details
New crash information added by DrKonqi (8.54 KB, text/plain)
2011-07-01 09:10 UTC, Andreas Petzold
Details
Crash information (4.69 KB, text/plain)
2015-02-24 10:01 UTC, Pedro Herrero García
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Janke 2009-07-01 20:06:40 UTC
Application that crashed: kmail
Version of the application: 1.11.90
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2))
Qt Version: 4.5.0
Operating System: Linux 2.6.28-13-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Kmail got stuck on 79% loading an imap account. After clicking abort, it got stuck there too. Eventually it crashed with segmentation fault.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  KIO::Slave::slaveProtocol (this=0x0) at /usr/include/qt4/QtCore/qstring.h:711
#7  0xb6e5b039 in KIO::SchedulerPrivate::assignJobToSlave (this=0xa584130, slave=0x0, job=0xcb61658) at /build/buildd/kde4libs-4.2.90/kio/kio/scheduler.cpp:958
#8  0xb6e5b3f6 in KIO::Scheduler::assignJobToSlave (slave=0x0, job=0xcb61658) at /build/buildd/kde4libs-4.2.90/kio/kio/scheduler.cpp:304
#9  0xb773c20d in KMail::SearchJob::searchCompleteFolder (this=0xc85e098) at /build/buildd/kdepim-4.2.90/kmail/searchjob.cpp:95
#10 0xb769c734 in KMail::FolderJob::start (this=0x0) at /build/buildd/kdepim-4.2.90/kmail/folderjob.cpp:106
#11 0xb753e769 in KMFolderImap::search (this=0xa0d91f0, pattern=0xd0b5478) at /build/buildd/kdepim-4.2.90/kmail/kmfolderimap.cpp:2412
#12 0xb7697ff4 in KMSearch::slotProcessNextBatch (this=0xb1072c0) at /build/buildd/kdepim-4.2.90/kmail/kmfoldersearch.cpp:272
#13 0xb769816b in KMSearch::qt_metacall (this=0xb1072c0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf877928) at /build/buildd/kdepim-4.2.90/obj-i486-linux-gnu/kmail/kmfoldersearch.moc:79
#14 0xb5febca8 in QMetaObject::activate (sender=0xb68b638, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3069
#15 0xb5fec932 in QMetaObject::activate (sender=0xb68b638, m=0xb60c8904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3143
#16 0xb6027717 in QTimer::timeout (this=0xb68b638) at .moc/release-shared/moc_qtimer.cpp:128
#17 0xb5ff16fe in QTimer::timerEvent (this=0xb68b638, e=0xbf877dac) at kernel/qtimer.cpp:261
#18 0xb5fe615f in QObject::event (this=0xb68b638, e=0xbf877dac) at kernel/qobject.cpp:1082
#19 0xb6283e9c in QApplicationPrivate::notify_helper (this=0x9e48bb0, receiver=0xb68b638, e=0xbf877dac) at kernel/qapplication.cpp:4084
#20 0xb628c19e in QApplication::notify (this=0xbf8780c8, receiver=0xb68b638, e=0xbf877dac) at kernel/qapplication.cpp:3631
#21 0xb7e78e8d in KApplication::notify (this=0xbf8780c8, receiver=0xb68b638, event=0xbf877dac) at /build/buildd/kde4libs-4.2.90/kdeui/kernel/kapplication.cpp:302
#22 0xb5fd5a3b in QCoreApplication::notifyInternal (this=0xbf8780c8, receiver=0xb68b638, event=0xbf877dac) at kernel/qcoreapplication.cpp:602
#23 0xb6004d71 in QTimerInfoList::activateTimers (this=0x9e48ca4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#24 0xb60014e0 in timerSourceDispatch (source=0x9e48c70) at kernel/qeventdispatcher_glib.cpp:164
#25 0xb43a9b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb43ad0eb in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb43ad268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb6001438 in QEventDispatcherGlib::processEvents (this=0x9e46368, flags={i = -1081639128}) at kernel/qeventdispatcher_glib.cpp:323
#29 0xb6325365 in QGuiEventDispatcherGlib::processEvents (this=0x9e46368, flags={i = -1081639080}) at kernel/qguieventdispatcher_glib.cpp:202
#30 0xb5fd406a in QEventLoop::processEvents (this=0xbf877fd0, flags={i = -1081639016}) at kernel/qeventloop.cpp:149
#31 0xb5fd44aa in QEventLoop::exec (this=0xbf877fd0, flags={i = -1081638952}) at kernel/qeventloop.cpp:200
#32 0xb5fd6959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#33 0xb6283d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#34 0x0804a7b0 in main (argc=) at /build/buildd/kdepim-4.2.90/kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Christophe Marin 2009-07-07 14:05:25 UTC
Could be related to bug 91617
Comment 2 michael 2009-10-24 03:40:07 UTC
(In reply to comment #1)
> Could be related to bug 91617

Looks like mAccount->slave() is returning a NULL pointer. 
excerpt from SearchJob::searchCompleteFolder where problem originates.

  KIO::SimpleJob *job = KIO::special( url, packedArgs, KIO::HideProgressInfo );
  if ( mFolder->imapPath() != QString("/") )
  { // the "/ folder" of an imap account makes the kioslave stall
    KIO::Scheduler::assignJobToSlave(mAccount->slave(), job);
    connect( job, SIGNAL(infoMessage(KJob*,const QString&,const QString&)),
        SLOT(slotSearchData(KJob*,const QString&,const QString&)) );
    connect( job, SIGNAL(result(KJob *)),
        SLOT(slotSearchResult(KJob *)) );
  }

In my case I got a connection error immediately before the crash.
Comment 3 michael 2009-10-24 04:19:20 UTC
The crash I got was on KDE 4.3.2 after searching for message with a particular subject. The search returned over 400 messages. Which tried to move to the IMAP trash it got most the way finished reported the connection error then crashed shortly after that.
Comment 4 Dario Andres 2010-01-30 22:56:24 UTC
*** Bug 224820 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2010-03-19 14:00:36 UTC
*** Bug 231240 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-03-19 14:01:26 UTC
- Could you update to KDE SC 4.3.5 or 4.4.1 and check if this still happens ?
Regards
Comment 7 Christophe Marin 2010-04-10 14:11:55 UTC
*** Bug 233936 has been marked as a duplicate of this bug. ***
Comment 8 Björn Ruberg 2010-04-14 23:01:22 UTC
*** Bug 233715 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2010-04-14 23:01:59 UTC
Judging from the new duplicates it still happens in KDE 4.4.2
Comment 10 Jonathan Thomas 2010-04-17 05:35:21 UTC
*** Bug 233579 has been marked as a duplicate of this bug. ***
Comment 11 Jonathan Thomas 2010-04-17 05:35:52 UTC
*** Bug 234540 has been marked as a duplicate of this bug. ***
Comment 12 Dr.Allcome 2010-04-18 12:15:36 UTC
Hello everybody

Updating to Version KDE 4.4.3 did not fix the issue for me. If you need more data on this please let me know. At the moment this is for me a show stopper. I cannot use email on this client. Does have anybody some directions for me on howto resolve this or any help on howto get my client up an running again without loosing my local stored mails and data, please.

Thank you in advanced.

Kind regards,

Dr.Allcome
Comment 13 Nicolas L. 2010-04-28 14:27:08 UTC
*** Bug 234366 has been marked as a duplicate of this bug. ***
Comment 14 Jonathan Thomas 2010-05-27 15:00:49 UTC
*** Bug 236520 has been marked as a duplicate of this bug. ***
Comment 15 Jonathan Thomas 2010-05-27 15:04:24 UTC
*** Bug 234367 has been marked as a duplicate of this bug. ***
Comment 16 niburu1 2010-06-01 12:07:40 UTC
I'm getting this exact problem. Must I remove the settings folder and re-add all my accounts, etc.?
Comment 17 niburu1 2010-06-02 16:57:45 UTC
(In reply to comment #16)
> I'm getting this exact problem. Must I remove the settings folder and re-add
> all my accounts, etc.?

Removing my ~/.kde/share/apps/kmail folder worked and all my account settings remained intact, so I wonder where those are stored.
Comment 18 Björn Ruberg 2010-08-06 00:05:28 UTC
*** Bug 242570 has been marked as a duplicate of this bug. ***
Comment 19 Nicolas L. 2010-08-13 23:57:16 UTC
*** Bug 246617 has been marked as a duplicate of this bug. ***
Comment 20 Nicolas L. 2010-08-13 23:57:48 UTC
*** Bug 245452 has been marked as a duplicate of this bug. ***
Comment 21 Nicolas L. 2010-08-16 00:46:35 UTC
*** Bug 248011 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Marin 2010-09-22 15:09:26 UTC
*** Bug 252023 has been marked as a duplicate of this bug. ***
Comment 23 zless 2010-10-09 23:27:07 UTC
Created attachment 52380 [details]
New crash information added by DrKonqi

kontact (4.4.6) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
Searching by subject in my inbox folder (IMAP account)

-- Backtrace (Reduced):
#6  QString (this=0x0) at /usr/include/qt4/QtCore/qstring.h:727
#7  KIO::Slave::protocol (this=0x0) at ../../kio/kio/slave.cpp:181
#8  0x00007fb4b6dad8a9 in KIO::SchedulerPrivate::assignJobToSlave (this=0x1797fa0, slave=0x0, job=0x6ba74b0) at ../../kio/kio/scheduler.cpp:1205
#9  0x00007fb49c82dc0a in KMail::SearchJob::searchCompleteFolder (this=0x6b60ad0) at ../../kmail/searchjob.cpp:95
#10 0x00007fb49c650168 in KMFolderImap::search (this=0x1b86bf0, pattern=0x34d91c0) at ../../kmail/kmfolderimap.cpp:2408
Comment 24 Manu 2010-10-18 14:24:06 UTC
Created attachment 52649 [details]
New crash information added by DrKonqi

kmail (1.13.5) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:

Searching imap (free.fr) mail ; there was first a « wrong caracter search message » as i enter the word « coopérative » (maybe the « é »), then i tried « cooperative » and then Kmail crashes.

-- Backtrace (Reduced):
#7  QString (this=0x0) at /usr/include/qt4/QtCore/qstring.h:727
#8  KIO::Slave::protocol (this=0x0) at ../../kio/kio/slave.cpp:181
#9  0xb52e85f1 in KIO::SchedulerPrivate::assignJobToSlave (this=0x8b694d0, slave=0x0, job=0x903e498) at ../../kio/kio/scheduler.cpp:1205
#10 0xb52e8721 in KIO::Scheduler::assignJobToSlave (slave=0x0, job=0x903e498) at ../../kio/kio/scheduler.cpp:816
#11 0xb6ec91e3 in KMail::SearchJob::searchCompleteFolder (this=0x9391518) at ../../kmail/searchjob.cpp:95
Comment 25 Dario Andres 2010-11-17 18:08:46 UTC
[Comment from a bug triager]
I wonder if this bug could have been solved with the commit from bug 255969 comment 1: http://websvn.kde.org/?view=rev&revision=1192678
Comment 26 Dario Andres 2010-11-17 18:21:50 UTC
[Comment from a bug triager]
From bug 255400:
- What I was doing when the application crashed:
After a fulltext search in a IMAP Folder (Exchange 2007) the same error message
every minute: Search failed "Command Error. 11".
After that errormessage, kmail dies randomly with the attached backtrace

From bug 257022:
- What I was doing when the application crashed:
I was searching for 'prudential' and got no results; changed the search term
and KMail crashed.
Comment 27 Dario Andres 2010-11-17 18:23:10 UTC
[Comment from a bug triager]
From bug 255400:
Delete the file "~/.kde4/share/apps/kmail/search/Last Search" stopped the error
popping up, a new search leads to the same error as before, until the file is
deleted again.
Comment 28 Dario Andres 2010-11-17 18:25:52 UTC
*** Bug 255400 has been marked as a duplicate of this bug. ***
Comment 29 Dario Andres 2010-11-17 18:25:55 UTC
*** Bug 257022 has been marked as a duplicate of this bug. ***
Comment 30 Dario Andres 2010-12-31 23:17:33 UTC
*** Bug 261744 has been marked as a duplicate of this bug. ***
Comment 31 Dario Andres 2010-12-31 23:21:03 UTC
[Comment from a bug triager]
We could assume this is fixed by http://websvn.kde.org/?revision=1192678&view=revision as the latest duplicates are from KDE SC 4.5.2 time (not really using the latest kdepim where the bug was fixed).
Comment 32 Christophe Marin 2011-02-14 13:15:00 UTC
@All: Please try to reproduce with KMail 1.13.6 (from kdepim 4.4.10) and reopen this report if you get the same backtrace.
Comment 33 Sergey Pachkov 2011-04-06 08:07:03 UTC
Created attachment 58617 [details]
New crash information added by DrKonqi

kmail (1.13.5) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.0

kMAIL crashes on startup every time. I have one account, it uses IMAP.

-- Backtrace (Reduced):
#6  0x00007f7c4ebcd5dc in KMail::SearchJob::searchCompleteFolder (this=0x2208ec0) at ../../kmail/searchjob.cpp:87
#7  0x00007f7c4e9f0e58 in KMFolderImap::search (this=0x221ef90, pattern=0x20887e0) at ../../kmail/kmfolderimap.cpp:2408
#8  0x00007f7c4eb34c6d in KMSearch::slotProcessNextBatch (this=0x22d4820) at ../../kmail/kmfoldersearch.cpp:272
#9  0x00007f7c4eb34dc0 in KMSearch::qt_metacall (this=0x22d4820, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff396a9ad0) at ./kmfoldersearch.moc:85
[...]
#11 0x00007f7c4d32a8f9 in QObject::event (this=0x214d9a0, e=0x0) at kernel/qobject.cpp:1183
Comment 34 Andreas Petzold 2011-07-01 09:10:23 UTC
Created attachment 61523 [details]
New crash information added by DrKonqi

kontact (4.4.11) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.3

- What I was doing when the application crashed:

An IMAP search went wrong and now kmail is crashing again and again.

-- Backtrace (Reduced):
#7  QString (this=0x0) at /usr/include/QtCore/qstring.h:728
#8  KIO::Slave::protocol (this=0x0) at /usr/src/debug/kdelibs-4.6.4/kio/kio/slave.cpp:182
#9  0x069f3392 in KIO::SchedulerPrivate::assignJobToSlave (this=0x9398498, slave=0x0, job=0x9fb9a20) at /usr/src/debug/kdelibs-4.6.4/kio/kio/scheduler.cpp:1236
#10 0x069f34eb in KIO::Scheduler::assignJobToSlave (slave=0x0, job=0x9fb9a20) at /usr/src/debug/kdelibs-4.6.4/kio/kio/scheduler.cpp:822
#11 0x0591b116 in KMail::SearchJob::searchSingleMessage (this=0x97593f0) at /usr/src/debug/kdepim-4.4.11.1/kmail/searchjob.cpp:395
Comment 35 David Heremans 2011-07-01 09:10:50 UTC
I'm on holiday, you're mail will be read when I'm back 25th of July.
Comment 36 Myriam Schweingruber 2012-08-21 08:05:08 UTC
Reassigning to kmail2 as it was reproduce with Kontact 4.4.x, see comment #34. Is this still valid with Kmail 4.8.5 or later?
Comment 37 Pedro Herrero García 2015-02-24 10:01:27 UTC
Created attachment 91261 [details]
Crash information

It has only happened two times, when kmail starts. It spends much time searching for new mail, some minutes, and then crash.
It also happened taking too much time searching but with no crash. Then it takes several seconds changing from folder to folder.
Comment 38 Andrew Crouthamel 2018-09-26 22:16:37 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 39 Andrew Crouthamel 2018-10-27 04:02:36 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!