Bug 207398 - Crash on startup loading a particular search folder (KMFolderMgr::find, KMKernel::registerSystemTrayApplet, KMFolderSearch::canAccess)
Summary: Crash on startup loading a particular search folder (KMFolderMgr::find, KMKer...
Status: RESOLVED DUPLICATE of bug 206974
Alias: None
Product: kmail
Classification: Unmaintained
Component: maildir (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 00:06 UTC by Jonathan Thomas
Modified: 2009-09-29 19:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Valgrind log (kmail.log) (3.82 KB, application/octet-stream)
2009-09-15 00:07 UTC, Jonathan Thomas
Details
Crashy search folder (search.tgz) (485 bytes, application/x-gtar)
2009-09-15 00:08 UTC, Jonathan Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2009-09-15 00:06:12 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Ubuntu Packages

Forwarded from https://launchpad.net/bugs/429039

The user is reporting a crash on startup that occurs when a certain search folder is present.

The search folder that causes the crash is attached to this report, as is a valgrind log.

Here's the backtrace:

.
Thread 1 (process 8882):
#0  0x00edfaf2 in KMFolderMgr::find (this=0x0, folderName=@0xbfdafad4, 
    foldersOnly=false) at ../../kmail/kmfoldermgr.cpp:218
No locals.
#1  0x00fb5ef5 in KMKernel::registerSystemTrayApplet (this=0xbfdb03dc, 
    applet=0xbfdafad4) at ../../kmail/kmkernel.cpp:2008
No locals.
#2  0x010bae95 in KMFolderSearch::canAccess (this=0x9c743d0)
    at ../../kmail/kmfoldersearch.cpp:553
	finfo = {d_ptr = 0x9b78400}
#3  0x010bb664 in KMSearch (this=0x9a6c300, parent=0x9b782c0, 
    name=0x9c743d0 "\210´I\001°W­\tÿÿÿÿ\001")
    at ../../kmail/kmfoldersearch.cpp:80
No locals.
#4  0x010bc8da in KMFolderSearch::expungeContents (this=0x9a6c300)
    at ../../kmail/kmfoldersearch.cpp:914
No locals.
#5  0x00eb43b6 in FolderStorage::countUnread (this=0x135cece)
    at ../../kmail/folderstorage.cpp:876
No locals.
#6  0x00e835f9 in KMFolder::idString (this=0x9b782c0)
    at ../../kmail/kmfolder.cpp:769
	folderNode = <value optimized out>
	myPath = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x9c743d0, static codecForCStrings = 0x0}
	relativePath = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 4044}, alloc = 0, size = 0, 
    data = 0x80045a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 380}, alloc = 0, size = 0, 
    data = 0x80046e, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xc, 
  static codecForCStrings = 0x0}
	escapedName = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 4044}, alloc = 0, size = 0, 
    data = 0x80045a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 380}, alloc = 0, size = 0, 
    data = 0x80046e, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xbfdafc1c, 
  static codecForCStrings = 0x0}
#7  0x00e86fa2 in KMFolder::setIgnoreNewMail (this=0x9b782c0, b=false)
    at /usr/include/qt4/QtCore/qobject.h:308
No locals.
#8  0x00e88e9b in KMFolder::readConfig (this=0x9b782c0, 
    configGroup=@0xbfdafebc) at ../../kmail/kmfolder.cpp:221
	defaultIdentity = 1171450849
	shortcut = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x7ffff4, static codecForCStrings = 0x0}
#9  0x00eb8a87 in FolderStorage::readConfig (this=0x9a6c300)
    at /usr/include/kconfiggroup.h:720
	config = (class KConfig *) 0xbfdafe3c
	group = {<KConfigBase> = {_vptr.KConfigBase = 0x498108}, d = {
    d = 0x9a8a290}}
	type = 0
#10 0x00e84338 in KMFolder (this=0x9b782c0, aParent=0x9ac85d4, 
    aFolderName=@0xbfdb00cc, aFolderType=KMFolderTypeSearch, withIndex=true, 
    exportedSernums=true) at ../../kmail/kmfolder.cpp:141
	dirinfo = {d_ptr = 0x99d1158}
#11 0x00edd2da in KMFolderDir::reload (this=0x9ac85d4)
    at ../../kmail/kmfolderdir.cpp:303
	fname = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x9b78400, static codecForCStrings = 0x0}
	fileIsHidden = 204
	folderName = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x9b78400, static codecForCStrings = 0x0}
	folderType = KMFolderTypeSearch
	_container_ = {c = {{p = {static shared_null = {ref = {
            _q_value = 3042}, alloc = 0, begin = 0, end = 0, sharable = 1, 
          array = {0x0}}, d = 0x9a8d618}, d = 0x9a8d618}}, brk = 0, i = {
    i = 0x9a8d644}, e = {i = 0x9a8d64c}}
	fldPath = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x9a6c090, static codecForCStrings = 0x0}
	dir = {d_ptr = 0x9a5b988}
	dirs = {q_hash = {{d = 0x8003a0, e = 0x8003a0}}}
	folderList = {{p = {static shared_null = {ref = {_q_value = 3042}, 
        alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, 
      d = 0x8003d4}, d = 0x8003d4}}
	__PRETTY_FUNCTION__ = "virtual bool KMFolderDir::reload()"
	fiList = {{p = {static shared_null = {ref = {_q_value = 3042}, 
        alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, 
      d = 0x9a8d618}, d = 0x9a8d618}}
	dirsWithoutFolder = {q_hash = {{d = 0x6e7710, e = 0x6e7710}}}
#12 0x00ee2456 in KMFolderMgr::setBasePath (this=0x9ac85c8, 
    aBasePath=@0xbfdb032c) at ../../kmail/kmfoldermgr.cpp:155
	info = {d_ptr = 0x9a2b838}
#13 0x00ee28e9 in KMFolderMgr (this=0x9ac85c8, aBasePath=@0xbfdb032c, 
    dirType=KMSearchDir) at /usr/include/qt4/QtCore/qstring.h:866
No locals.
#14 0x00fc8127 in KMKernel::init (this=0xbfdb03dc)
    at ../../kmail/kmfolderimap.h:84
	dir = {d_ptr = 0x99e13f0}
	group = {<KConfigBase> = {_vptr.KConfigBase = 0x498108}, d = {
    d = 0x9a688b8}}
	standardFolderPath = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 4044}, alloc = 0, size = 0, 
    data = 0x80045a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 380}, alloc = 0, size = 0, 
    data = 0x80046e, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x991e6d8, 
  static codecForCStrings = 0x0}
	__PRETTY_FUNCTION__ = "void KMKernel::init()"
	service = {d = 0x99fc5d8}
	lsf = <value optimized out>
	cfg = (class KConfig *) 0x9910180
	foldersPath = {static null = {<No data fields>}, 
  static shared_null = {ref = {_q_value = 4044}, alloc = 0, size = 0, 
    data = 0x80045a, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
  static shared_empty = {ref = {_q_value = 380}, alloc = 0, size = 0, 
    data = 0x80046e, clean = 0, simpletext = 0, righttoleft = 0, 
    asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x991e650, 
  static codecForCStrings = 0x0}
	appName = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {
      _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0x98f0ff8, static codecForCStrings = 0x0}
#15 0x0804a6bc in main (argc=3, argv=0xbfdb0644) at ../../kmail/main.cpp:128
	about = {<KAboutData> = {d = 0x98f0e40}, <No data fields>}
	app = {<KPIM::PimApplication> = {<KUniqueApplication> = {<KApplication> = {<QApplication> = {<QCoreApplication> = {<QObject> = {
              _vptr.QObject = 0x804b4a8, static staticMetaObject = {d = {
                  superdata = 0x0, stringdata = 0x7a6b20 "QObject", 
                  data = 0x7a6bc0, extradata = 0x7fb1b8}}, d_ptr = 0x9976520, 
              static staticQtMetaObject = {d = {superdata = 0x0, 
                  stringdata = 0x7b0300 "Qt", data = 0x7b3680, 
                  extradata = 0x0}}}, static staticMetaObject = {d = {
                superdata = 0x7fb1a8, 
                stringdata = 0x7b87a0 "QCoreApplication", data = 0x7b8840, 
                extradata = 0x0}}, static self = 0xbfdb0490}, 
          static staticMetaObject = {d = {superdata = 0x7ff7e4, 
              stringdata = 0x3f3a4c0 "QApplication", data = 0x3f3a6c0, 
              extradata = 0x0}}}, static staticMetaObject = {d = {
            superdata = 0x4103f48, stringdata = 0xc7b860 "KApplication", 
            data = 0xc7ba00, extradata = 0x0}}, 
        static loadedByKdeinit = false, static KApp = 0xbfdb0490, 
        d = 0x998a638}, static staticMetaObject = {d = {superdata = 0xceebc0, 
          stringdata = 0xc7c120 "KUniqueApplication", data = 0xc7c220, 
          extradata = 0x0}}, d = 0x99b6d00}, <No data fields>}, 
  mDelayedInstanceCreation = false, mEventLoopReached = false}
	kmailKernel = {<QObject> = {_vptr.QObject = 0x14978c8, 
    static staticMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x7a6b20 "QObject", data = 0x7a6bc0, 
        extradata = 0x7fb1b8}}, d_ptr = 0x99d8398, 
    static staticQtMetaObject = {d = {superdata = 0x0, 
        stringdata = 0x7b0300 "Qt", data = 0x7b3680, extradata = 0x0}}}, 
  static staticMetaObject = {d = {superdata = 0x7fb1a8, 
      stringdata = 0x136fd20 "scii,iso-8859-1,locale,utf-8", 
      data = 0x1370a00, extradata = 0x0}}, the_inboxFolder = 0x0, 
  the_outboxFolder = 0x0, the_sentFolder = 0x0, the_trashFolder = 0x0, 
  the_draftsFolder = 0x0, the_templatesFolder = 0x0, 
  the_folderMgr = 0x9a7c0d8, the_imapFolderMgr = 0x9b5b448, 
  the_dimapFolderMgr = 0x9c3e8b8, the_searchFolderMgr = 0x0, 
  the_undoStack = 0x9a7c360, the_acctMgr = 0x0, the_filterMgr = 0x0, 
  the_popFilterMgr = 0x0, the_filterActionDict = 0x0, 
  the_indicateServer = 0x9a68738, mIdentityManager = 0x9a6c628, 
  the_msgSender = 0x0, the_msgTagMgr = 0x991bd08, mPutJobs = {{d = 0x800400, 
      e = 0x800400}}, the_previousVersion = {
    static null = {<No data fields>}, static shared_null = {ref = {
        _q_value = 4044}, alloc = 0, size = 0, data = 0x80045a, clean = 0, 
      simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
      reserved = 0, array = {0}}, static shared_empty = {ref = {
        _q_value = 380}, alloc = 0, size = 0, data = 0x80046e, clean = 0, 
      simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
      reserved = 0, array = {0}}, d = 0x9a687f8, 
    static codecForCStrings = 0x0}, the_firstStart = false, 
  the_startingUp = true, the_shuttingDown = false, 
  the_server_is_ready = false, closed_by_user = true, 
  the_firstInstance = true, mMailCheckAborted = false, mConfig = {
    d = 0x9910180}, netCodec = 0x98f7180, mXmlGuiInstance = {
    _vptr.KComponentData = 0x499fb8, d = 0x0}, mConfigureDialog = 0x0, 
  mBackgroundTasksTimer = 0x4ea3ff4, mICalIface = 0x9924010, 
  mJobScheduler = 0x9923f20, mWin = 0x0, mMailService = 0x0, 
  mMailManager = 0x0, mTimeOfLastMessageCountChange = 81127302, 
  mContextMenuShown = false, systemTrayApplets = {{p = {static shared_null = {
          ref = {_q_value = 3042}, alloc = 0, begin = 0, end = 0, 
          sharable = 1, array = {0x0}}, d = 0x8003d4}, d = 0x8003d4}}, 
  the_weaver = 0xbfdb04b8, mWallet = 0x0, 
  mAddMessageMsgIds = {<QList<QString>> = {{p = {static shared_null = {ref = {
              _q_value = 3042}, alloc = 0, begin = 0, end = 0, sharable = 1, 
            array = {0x0}}, d = 0x8003d4}, d = 0x8003d4}}, <No data fields>}, 
  mAddMessageLastFolder = {static null = {<No data fields>}, 
    static shared_null = {ref = {_q_value = 4044}, alloc = 0, size = 0, 
      data = 0x80045a, clean = 0, simpletext = 0, righttoleft = 0, 
      asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, 
    static shared_empty = {ref = {_q_value = 380}, alloc = 0, size = 0, 
      data = 0x80046e, clean = 0, simpletext = 0, righttoleft = 0, 
      asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x800448, 
    static codecForCStrings = 0x0}, mAddMsgCurrentFolder = 0x217200, 
  folderAdaptor = 0x0}
	ret = <value optimized out>
Comment 1 Jonathan Thomas 2009-09-15 00:07:36 UTC
Created attachment 36952 [details]
Valgrind log (kmail.log)
Comment 2 Jonathan Thomas 2009-09-15 00:08:17 UTC
Created attachment 36953 [details]
Crashy search folder (search.tgz)
Comment 3 Jonathan Thomas 2009-09-29 19:13:09 UTC

*** This bug has been marked as a duplicate of bug 206974 ***