Bug 129938

Summary: quick search crashes if "email index" not completed
Product: [Unmaintained] kmail Reporter: Giacomo Lacava <g.lacava>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Giacomo Lacava 2006-06-28 06:57:03 UTC
Version:           1.9.3 (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
Compiler:          i686-pc-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1) 
OS:                Linux

Right after starting up Kmail, if I try to filter messages with the quick search toolbar, the application crashes.

If I wait for a couple of minutes, I can see from the shell output that the index has been restored (after KMMsgIndex::create() and ::act() completed), and the crash then doesn't happen.

This is the shell output on crash, you can find the backtrace further below:

WeaverThreadLogger: thread (ID: 1) suspended.
WeaverThreadLogger: thread (ID: 2) suspended.
WeaverThreadLogger: thread (ID: 3) suspended.
WeaverThreadLogger: thread (ID: 4) suspended.
kmail: (4745, last 0) csv file menina, readyToShow true
kmail: [const QTextCodec* KMReaderWin::overrideCodec() const]  mOverrideEncoding == ''
kmail: updateSearch( -- )
kmail: updateSearch( -- )
kmail: [const QTextCodec* KMReaderWin::overrideCodec() const]  mOverrideEncoding == ''
kmail: parseMsg(KMMessage* aMsg == aMsg )
kmail: + Multipart/Mixed
kmail:  + Multipart/Alternative
kmail:   + Text/Plain
kmail:   + Text/HTML
kmail:  + Application/Unknown
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: Multipart/Mixed
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: application/vnd.ms-excel
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: multipart/alternative
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: text/html
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: text/plain
kmail: partNode::findType() is looking at Multipart/Mixed
kmail: partNode::findType() is looking at Multipart/Alternative
kmail: partNode::findType() is looking at Text/Plain
kmail: partNode::findType() is looking at Text/HTML
kmail: Multiple / No addressees matched email address; Count is 0
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: BodyPartFormatterFactory: found 4 plugins.
kmail: BodyPartFormatterFactory: overwriting previously registered formatter for "application/octet-stream"
kmail: BodyPartFormatterFactory: instantiating new Subtype Registry for "text"
kmail: UrlHandler() (iCalendar)
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: partNode::findType() is looking at Text/Plain
kmail: partNode::findType() is looking at Text/HTML
kmail: partNode::findType() is looking at Text/Plain
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: [const QTextCodec* KMReaderWin::overrideCodec() const]  mOverrideEncoding == ''
kmail: writePartIcon: PartNum: 5
kmail: KMReaderWin  -  finished parsing and displaying of message.
kmail: updateSearch( -mi- )
kmail: KMMsgIndex::simpleSearch( -mi- )
kmail: index.cpp:459: std::vector<unsigned int, std::allocator<unsigned int> > KMMsgIndex::simpleSearch(QString, bool*) const: Assertion `mIndex' failed.
*** KMail got signal 6 (Crashing)
KCrash: Application 'kmail' crashing...




Backtrace (I probably didn't compile something with the debug option, bear with me):
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1250265424 (LWP 13855)]
[New Thread -1279165536 (LWP 13859)]
[New Thread -1270772832 (LWP 13858)]
[New Thread -1262380128 (LWP 13857)]
[New Thread -1253987424 (LWP 13856)]
0xffffe410 in __kernel_vsyscall ()
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb59163a6 in nanosleep () from /lib/libc.so.6
#2  0xb59161cb in sleep () from /lib/libc.so.6
#3  0xb66b080d in KCrash::startDrKonqi ()
   from /usr/kde/3.5/lib/libkdecore.so.4
#4  0x7461636f in ?? ()
#5  0x753c726f in ?? ()
#6  0x6769736e in ?? ()
#7  0xbf917710 in ?? ()
#8  0xbf917710 in ?? ()
#9  0x00000003 in ?? ()
#10 0x00000011 in ?? ()
#11 0x65646e49 in ?? ()
#12 0x00003625 in ?? ()
#13 0x6f6b7264 in ?? ()
#14 0x0069716e in ?? ()
#15 0x7369642d in ?? ()
#16 0x79616c70 in ?? ()
#17 0x2e303a00 in ?? ()
#18 0x2d2d0030 in ?? ()
#19 0x6e707061 in ?? ()
#20 0x00656d61 in ?? ()
#21 0x69616d6b in ?? ()
#22 0x2d2d006c in ?? ()
#23 0x6e676973 in ?? ()
#24 0x36006c61 in ?? ()
#25 0x702d2d00 in ?? ()
#26 0x31006469 in ?? ()
#27 0x35353833 in ?? ()
#28 0x612d2d00 in ?? ()
#29 0x65767070 in ?? ()
#30 0x6f697372 in ?? ()
#31 0x2e31006e in ?? ()
#32 0x00332e39 in ?? ()
#33 0x72702d2d in ?? ()
#34 0x6172676f in ?? ()
#35 0x6d616e6d in ?? ()
#36 0x4d4b0065 in ?? ()
#37 0x006c6961 in ?? ()
#38 0x75622d2d in ?? ()
#39 0x64646167 in ?? ()
#40 0x73736572 in ?? ()
#41 0x62757300 in ?? ()
#42 0x4074696d in ?? ()
#43 0x73677562 in ?? ()
#44 0x65646b2e in ?? ()
#45 0x67726f2e in ?? ()
#46 0x732d2d00 in ?? ()
#47 0x74726174 in ?? ()
#48 0x64697075 in ?? ()
#49 0x00003000 in ?? ()
#50 0x00000000 in ?? ()
Comment 1 Andreas Kling 2006-08-03 15:10:48 UTC

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