Bug 203624

Summary: (steps) Crash when you apply filter and click on new subfolder (stack overflow/recursion ? , KMFolder::viewConfigChanged,KMFolder::setUserWhoField , readConfig)
Product: [Unmaintained] kmail Reporter: Stefan T. <stefan.ubuntu>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, bartoschek, mhlavink
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan T. 2009-08-12 22:33:44 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    Ubuntu Packages

1. Right click on email message.
2. Create filter > Filter on Subject...
3. Select folder > New Subfolder (maildir) > OK.
4. Select all messages (CTRL+A). > Right click > Apply all filters
5. Click on new subfolder
6. Mouse icon shows that KMail is working.

After 10 seconds KMail crashes, without showing me Bug report window (application).
Comment 1 Stefan T. 2009-08-12 22:36:15 UTC
Kubuntu 9.04, KDE 4.3, Qt 4.5.2
Comment 2 Dario Andres 2009-08-12 23:03:24 UTC
You can try to get the backtrace this way:

- Close KMail
- Install the "kdepim-dbg" package
- Start Konsole and run "gdb kmail"
- Type "run" + Enter
- Repeat the steps to crash the application
KMail should crash
- Go back to the Konsole window, type "bt full" and press Return a couple of times. 

Finally paste that output here.
Thanks
Comment 3 Stefan T. 2009-08-13 00:39:48 UTC
This is all. Did I do something wrong?

stefan@stefant:~$ gdb kmail
GNU gdb 6.8-debian         
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "i486-linux-gnu"...                               
(gdb) run                                                                    
Starting program: /usr/bin/kmail                                             
[Thread debugging using libthread_db enabled]                                
[New Thread 0xb3bb3700 (LWP 30303)]                                          

Program exited normally.
(gdb) bt full           
No stack.               
(gdb)                   
No stack.               
(gdb)                   
No stack.               
(gdb)
Comment 4 Dario Andres 2009-08-13 00:48:50 UTC
Oops, I missed one thing: instead of typing "run", type "run --nofork". It should work. Sorry
Comment 5 Stefan T. 2009-08-13 01:26:04 UTC
I did what you told me.

It did not crash, not yet (last 2-3 minutes). I am at> "6. Mouse icon shows that KMail is working."

And here is log, after Return x3.

stefan@stefant:~$ gdb kmail
GNU gdb 6.8-debian         
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "i486-linux-gnu"...                               
(gdb) run --nofork
Starting program: /usr/bin/kmail --nofork
[Thread debugging using libthread_db enabled]
[New Thread 0xb3c43700 (LWP 2121)]           
[New Thread 0xacc6db90 (LWP 2297)]           
[Thread 0xacc6db90 (LWP 2297) exited]        
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active                                    
QPainter::setClipRect: Painter not active                                  

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3c43700 (LWP 2121)]         
0xb5acea4c in ?? () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt full                                        
#0  0xb5acea4c in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.                          
#1  0xb5ad09c5 in malloc () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.                              
#2  0xb5d2e8ed in qMalloc (size=26) at global/qmalloc.cpp:55 
No locals.                                                   
#3  0xb5d79197 in QString (this=0x1a, unicode=0xa7731dc, size=3) at tools/qstring.cpp:848
No locals.                                                                               
#4  0xb5d7955f in QString::mid (this=0xa773af0, position=1, n=-1245982400) at tools/qstring.cpp:3116
No locals.                                                                                          
#5  0xb5e042da in QFSFileEngine::fileName (this=0xa7b3c18, file=QAbstractFileEngine::BaseName)      
    at io/qfsfileengine_unix.cpp:708                                                                
        slash = <value optimized out>                                                               
#6  0xb5e030c2 in QFSFileEngine::fileFlags (this=0xa7b3c18, type={i = -1086602680})                 
    at io/qfsfileengine_unix.cpp:678                                                                
        ret = {i = -1086602684}                                                                     
        d = (const class QFSFileEnginePrivate * const) 0xa773ae0                                    
        exists = true                                                                               
#7  0xb5dbcec6 in QFileInfoPrivate::getFileFlags (this=0xa80d7c0, request={i = -1086602636})        
    at io/qfileinfo.cpp:222                                                                         
        flags = {i = 0}                                                                             
#8  0xb5dbd06c in QFileInfo::isSymLink (this=0xbf3bc2f4) at io/qfileinfo.cpp:1095                   
        d = (const QFileInfoPrivate * const) 0xb5bbd140                                             
#9  0xb5dfc0ca in QFSFileEnginePrivate::canonicalized (path=@0xbf3bc388) at io/qfsfileengine.cpp:158
        prefix = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370}, 
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0, 
---Type <return> to continue, or q <return> to quit---                                                  
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0xa7731c8, static codecForCStrings = 0x0}                              
        fi = {d_ptr = 0xa80d7c0}                                                                           
        slash = {ucs = 47}                                                                                 
        tmpPath = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},       
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,    
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,    
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, d = 0xa773110, static codecForCStrings = 0x0}                              
        separatorPos = 4                                                                                   
        nonSymlinks = {q_hash = {{d = 0xb5f1c3a0, e = 0xb5f1c3a0}}}                                        
        known = {q_hash = {{d = 0xa890c30, e = 0xa890c30}}}                                                
#10 0xb5e043a5 in QFSFileEngine::fileName (this=0xa8b19d8, file=QAbstractFileEngine::CanonicalName)        
    at io/qfsfileengine_unix.cpp:744                                                                       
        ret = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370}, alloc = 0, 
    size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0, size = 0,         
    data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,            
    reserved = 0, array = {0}}, d = 0xb5bbd140, static codecForCStrings = 0x0}                              
#11 0xb5dbd8b8 in QFileInfoPrivate::getFileName (this=0xa774b38, name=QAbstractFileEngine::CanonicalName)   
    at io/qfileinfo.cpp:202                                                                                 
        ret = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370}, alloc = 0, 
    size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0, size = 0,         
    data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,            
    reserved = 0, array = {0}}, d = 0xbf3bd478, static codecForCStrings = 0x0}                              
#12 0xb5dbe36c in QFileInfo::canonicalFilePath (this=0xbf3bd478) at io/qfileinfo.cpp:624                    
---Type <return> to continue, or q <return> to quit---                                                      
        d = (const QFileInfoPrivate * const) 0x1
#13 0xb7a4e944 in KConfigIniBackend::setFilePath (this=0xa890c58, file=@0xbf3bd598)
    at /build/buildd/kde4libs-4.3.0/kdecore/config/kconfigini.cpp:574
        info = {d_ptr = 0xa774b38}
#14 0xb7a4ddf7 in KConfigBackend::create (componentData=@0xa7c4f60, file=@0xbf3bd598, sys=@0xbf3bd57c)
    at /build/buildd/kde4libs-4.3.0/kdecore/config/kconfigbackend.cpp:89
        system = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,
    reserved = 0, array = {0}}, d = 0xa758640, static codecForCStrings = 0x0}
        backend = (KConfigBackend *) 0xa774b30
#15 0xb7a3b3c8 in KConfigPrivate::changeFileName (this=0xa7c4f30, name=@0xbf3bd638,
    type=0xb7bd9d80 "config") at /build/buildd/kde4libs-4.3.0/kdecore/config/kconfig.cpp:426
        file = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,
    reserved = 0, array = {0}}, d = 0xa773110, static codecForCStrings = 0x0}
#16 0xb7a3d534 in KConfig (this=0xbf3bd618, file=@0xbf3bd638, mode={i = -1086597592},
    resourceType=0xb7bd9d80 "config") at /build/buildd/kde4libs-4.3.0/kdecore/config/kconfig.cpp:158
No locals.
#17 0xb7b4b628 in KLocale::countryCodeToName (this=0x994c1c8, country=@0xbf3bd7d0)
    at /build/buildd/kde4libs-4.3.0/kdecore/localization/klocale.cpp:2530
        cfg = {<KConfigBase> = {_vptr.KConfigBase = 0xb7bfe0a8}, d_ptr = 0xa7c4f30}
        cg = {<KConfigBase> = {_vptr.KConfigBase = 0xbf3bd62c}, d = {d = 0xbf3bd62c}}
        countryName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},
Comment 6 Dario Andres 2009-08-13 01:28:07 UTC
Mh, you said it didn't crashed, but GDB show the process crashed (or it was stopped manually using Control+C): 

"
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3c43700 (LWP 2121)]         
"

Anyways, the backtrace doesn't seem to be a KMail crash. Let see further output
Comment 7 Stefan T. 2009-08-13 01:36:28 UTC
KMail stopped working. I can see Kmail, but Kmail doesn't respond. More output?

This is what I have. After x 10 return. That is not all, I closed it after that.



---Type <return> to continue, or q <return> to quit---                                                      
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xbf3bd79c, static codecForCStrings = 0x0}                              
        entryFile = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},      
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xa773110, static codecForCStrings = 0x0}                               
#18 0xb7b0cabb in Sonnet::Loader::languageNameForCode (this=0x99a8ae0, langCode=@0xbf3bd820)                
    at /build/buildd/kde4libs-4.3.0/kdecore/sonnet/loader.cpp:199                                           
        currentDictionary = {static null = {<No data fields>}, static shared_null = {ref = {                
      _q_value = 17370}, alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0,                 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {      
    ref = {_q_value = 358}, alloc = 0, size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0,              
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x9933540,               
  static codecForCStrings = 0x0}                                                                            
        lISOName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},       
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xa738ad0, static codecForCStrings = 0x0}                               
        cISOName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},       
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xa843530, static codecForCStrings = 0x0}                               
---Type <return> to continue, or q <return> to quit---                                                      
        variantName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},    
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xb5f1c448, static codecForCStrings = 0x0}                              
        localizedLang = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},  
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xa774b08, static codecForCStrings = 0x0}                               
        localizedCountry = {static null = {<No data fields>}, static shared_null = {ref = {                 
      _q_value = 17370}, alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0,                 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {      
    ref = {_q_value = 358}, alloc = 0, size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0,              
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb5f1c448,              
  static codecForCStrings = 0x0}                                                                            
        variantEnglish = {static shared_null = {ref = {_q_value = 3164}, alloc = 0, size = 0,               
    data = 0x804d15c "", array = ""}, static shared_empty = {ref = {_q_value = 181}, alloc = 0, size = 0,   
    data = 0xb5f1c398 "", array = ""}, d = 0x804d14c}                                                       
        underscorePos = <value optimized out>                                                               
        minusPos = -1                                                                                       
        variantCount = <value optimized out>                                                                
        variantList = {{variantShortName = 0xb7bdde89 "40", variantEnglishName = 0xb7bdde89 "40"}, {        
    variantShortName = 0xb7bdde8c "60", variantEnglishName = 0xb7bdde8c "60"}, {                            
    variantShortName = 0xb7bdde8f "80", variantEnglishName = 0xb7bdde8f "80"}, {                            
    variantShortName = 0xb7bdde92 "ise", variantEnglishName = 0xb7bdde96 "-ise suffixes"}, {                
    variantShortName = 0xb7bf7621 "ize", variantEnglishName = 0xb7bddea4 "-ize suffixes"}, {                
---Type <return> to continue, or q <return> to quit---                                                      
    variantShortName = 0xb7bddeb2 "ise-w_accents",                                                          
    variantEnglishName = 0xb7bde0e0 "-ise suffixes and with accents"}, {                                    
    variantShortName = 0xb7bddec0 "ise-wo_accents",                                                         
    variantEnglishName = 0xb7bde100 "-ise suffixes and without accents"}, {                                 
    variantShortName = 0xb7bddecf "ize-w_accents",                                                          
    variantEnglishName = 0xb7bde124 "-ize suffixes and with accents"}, {                                    
    variantShortName = 0xb7bddedd "ize-wo_accents",                                                         
    variantEnglishName = 0xb7bde144 "-ize suffixes and without accents"}, {                                 
    variantShortName = 0xb7bddeec "lrg", variantEnglishName = 0xb7bddef0 "large"}, {                        
    variantShortName = 0xb7bddef6 "med", variantEnglishName = 0xb7bddefa "medium"}, {                       
    variantShortName = 0xb7bddf01 "sml", variantEnglishName = 0xb7bddf05 "small"}, {                        
    variantShortName = 0xb7bddf0b "variant_0", variantEnglishName = 0xb7bddf15 "variant 0"}, {              
    variantShortName = 0xb7bddf1f "variant_1", variantEnglishName = 0xb7bddf29 "variant 1"}, {              
    variantShortName = 0xb7bddf33 "variant_2", variantEnglishName = 0xb7bddf3d "variant 2"}, {              
    variantShortName = 0xb7bddec4 "wo_accents", variantEnglishName = 0xb7bddf47 "without accents"}, {       
    variantShortName = 0xb7bddeb6 "w_accents", variantEnglishName = 0xb7bddf57 "with accents"}, {           
    variantShortName = 0xb7bddf69 "ye", variantEnglishName = 0xb7bddf64 "with ye"}, {                       
    variantShortName = 0xb7bddf71 "yeyo", variantEnglishName = 0xb7bddf6c "with yeyo"}, {                   
    variantShortName = 0xb7bddf7b "yo", variantEnglishName = 0xb7bddf76 "with yo"}, {                       
    variantShortName = 0xb7bddf7e "extended", variantEnglishName = 0xb7bddf7e "extended"}, {                
    variantShortName = 0x0, variantEnglishName = 0x0}}                                                      
#19 0xb7b15d3c in Sonnet::defaultLanguageName ()                                                            
    at /build/buildd/kde4libs-4.3.0/kdecore/sonnet/globals.cpp:92                                           
        loader = (class Sonnet::Loader *) 0x99a8ae0                                                         
#20 0xb6fb50cd in KPIMIdentities::Identity::isNull (this=0x9a2ed08)                                         
    at /build/buildd/kdepimlibs-4.3.0/kpimidentities/identity.cpp:86                                        
        empty = false                                                                                       
---Type <return> to continue, or q <return> to quit---                                                      
#21 0xb73b1160 in KMFolder::slotIdentitiesChanged (this=0xa739ba8)                                          
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:957                                                    
        defaultIdentity = 44882205                                                                          
#22 0xb73b6e45 in KMFolder::readConfig (this=0xa739ba8, configGroup=@0xbf3bdb44)                            
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:209                                                    
        defaultIdentity = 44882205                                                                          
        shortcut = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},       
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,     
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,     
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,  
    reserved = 0, array = {0}}, d = 0xb7a477da, static codecForCStrings = 0x0}                              
#23 0xb73e5b05 in FolderStorage::readConfig (this=0xa7cd490)                                                
    at /build/buildd/kdepim-4.3.0/kmail/folderstorage.cpp:963                                               
        config = (class KConfig *) 0x98d8f40                                                                
        group = {<KConfigBase> = {_vptr.KConfigBase = 0xb7bfe168}, d = {d = 0xa8da438}}                     
        type = 0                                                                                            
#24 0xb73e149a in FolderStorage::countUnread (this=0xa7cd490)                                               
    at /build/buildd/kdepim-4.3.0/kmail/folderstorage.cpp:866                                               
        unread = <value optimized out>                                                                      
#25 0xb73b0357 in KMFolder::countUnread (this=0xa739ba8)                                                    
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:497                                                    
No locals.                                                                                                  
#26 0xb771a9b0 in KMail::MessageListView::StorageModel::initialUnreadRowCountGuess (this=0xa5a31c8)         
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/storagemodel.cpp:612                                
No locals.                                                                                                  
#27 0xb7749d07 in KMail::MessageListView::Core::Model::setStorageModel (this=0x9a9dba8,                     
    storageModel=0xa5a31c8, preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected)           
---Type <return> to continue, or q <return> to quit---                                                      
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:733                                  
        canDoFirstSmallChunkWithDisconnectedUI = true                                                       
        canDoJobWithDisconnectedUI = false                                                                  
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::setStorageModel(KMail::MessageListView::Core::StorageModel*, KMail::MessageListView::Core::PreSelectionMode)"                                    
#28 0xb774a42f in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=0x9a9dba8)        
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:4440                                  
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged()"    
#29 0xb72c199b in KMail::MessageListView::Core::Model::qt_metacall (this=0x9a9dba8,                          
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf3bde18)                                                  
    at /build/buildd/kdepim-4.3.0/obj-i486-linux-gnu/kmail/moc_model.cpp:80                                  
No locals.                                                                                                   
#30 0xb5e3e1b8 in QMetaObject::activate (sender=0xa5a31c8, from_signal_index=17, to_signal_index=17,         
    argv=0x0) at kernel/qobject.cpp:3113                                                                     
        method = 24                                                                                          
        currentSender = {sender = 0xa5a31c8, signal = 17, ref = 1}                                           
        previousSender = (QObjectPrivate::Sender *) 0xbf3be594                                               
        i = 4315                                                                                             
        count = 4316                                                                                         
        signal = 17                                                                                          
        empty_argv = {0x0}                                                                                   
        locker = {{mtx = 0x98b5224, val = 160125476}}                                                        
        currentThreadData = (QThreadData *) 0x98b51f0                                                        
        connectionLists = (QObjectConnectionListVector *) 0xa711b00                                          
#31 0xb5e3ee42 in QMetaObject::activate (sender=0xa5a31c8, m=0xb5f1b4f8, local_signal_index=13, argv=0x0)    
    at kernel/qobject.cpp:3187                                                                               
        signal_index = -1245982400                                                                           
---Type <return> to continue, or q <return> to quit---                                                       
#32 0xb5e795b7 in QAbstractItemModel::modelReset (this=0xa5a31c8)                                            
    at .moc/release-shared/moc_qabstractitemmodel.cpp:213                                                    
No locals.                                                                                                   
#33 0xb5e22814 in QAbstractItemModel::reset (this=0xa5a31c8) at kernel/qabstractitemmodel.cpp:2263           
        d = (QAbstractItemModelPrivate * const) 0xa50f908                                                    
#34 0xb771a89d in KMail::MessageListView::StorageModel::slotViewConfigChanged (this=0xa5a31c8)               
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/storagemodel.cpp:644                                 
No locals.                                                                                                   
#35 0xb72c1263 in KMail::MessageListView::StorageModel::qt_metacall (this=0xa5a31c8,                         
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf3bdf68)                                                  
    at /build/buildd/kdepim-4.3.0/obj-i486-linux-gnu/kmail/moc_storagemodel.cpp:92                           
No locals.                                                                                                   
#36 0xb5e3e1b8 in QMetaObject::activate (sender=0xa739ba8, from_signal_index=22, to_signal_index=22,         
    argv=0x0) at kernel/qobject.cpp:3113                                                                     
        method = 28                                                                                          
        currentSender = {sender = 0xa739ba8, signal = 22, ref = 1}                                           
        previousSender = (QObjectPrivate::Sender *) 0xbf3be6e4                                               
        i = 0                                                                                                
        count = 1                                                                                            
        signal = 22                                                                                          
        empty_argv = {0x0}                                                                                   
        locker = {{mtx = 0x98b5224, val = 160125476}}                                                        
        currentThreadData = (QThreadData *) 0x98b51f0                                                        
        connectionLists = (QObjectConnectionListVector *) 0xa628eb0                                          
#37 0xb5e3ee42 in QMetaObject::activate (sender=0xa739ba8, m=0xb79bed60, local_signal_index=18, argv=0x0)    
    at kernel/qobject.cpp:3187                                                                               
        signal_index = -1245982400                                                                           
---Type <return> to continue, or q <return> to quit---                                                       
#38 0xb73b0af7 in KMFolder::viewConfigChanged (this=0xa739ba8)                                               
    at /build/buildd/kdepim-4.3.0/obj-i486-linux-gnu/kmail/kmfolder.moc:269                                  
No locals.                                                                                                   
#39 0xb73b5fa2 in KMFolder::setUserWhoField (this=0xa739ba8, whoField=@0xbf3be1c4, writeConfig=false)        
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:745                                                     
        __PRETTY_FUNCTION__ = "void KMFolder::setUserWhoField(const QString&, bool)"                         
#40 0xb73b6e80 in KMFolder::readConfig (this=0xa739ba8, configGroup=@0xbf3be2d4)                             
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:211                                                     
        defaultIdentity = 44882205                                                                           
        shortcut = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17370},        
    alloc = 0, size = 0, data = 0xb5f1c45a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0,      
    capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 358}, alloc = 0,      
    size = 0, data = 0xb5f1c46e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0,   
    reserved = 0, array = {0}}, d = 0xb7a477da, static codecForCStrings = 0x0}                               
#41 0xb73e5b05 in FolderStorage::readConfig (this=0xa7cd490)                                                 
    at /build/buildd/kdepim-4.3.0/kmail/folderstorage.cpp:963                                                
        config = (class KConfig *) 0x98d8f40                                                                 
        group = {<KConfigBase> = {_vptr.KConfigBase = 0xb7bfe168}, d = {d = 0xa842728}}                      
        type = 0                                                                                             
#42 0xb73e149a in FolderStorage::countUnread (this=0xa7cd490)                                                
    at /build/buildd/kdepim-4.3.0/kmail/folderstorage.cpp:866                                                
        unread = <value optimized out>                                                                       
#43 0xb73b0357 in KMFolder::countUnread (this=0xa739ba8)                                                     
    at /build/buildd/kdepim-4.3.0/kmail/kmfolder.cpp:497                                                     
No locals.                                                                                                   
#44 0xb771a9b0 in KMail::MessageListView::StorageModel::initialUnreadRowCountGuess (this=0xa5a31c8)          
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/storagemodel.cpp:612                                 
---Type <return> to continue, or q <return> to quit---                                                       
No locals.                                                                                                   
#45 0xb7749d07 in KMail::MessageListView::Core::Model::setStorageModel (this=0x9a9dba8,                      
    storageModel=0xa5a31c8, preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected)            
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:733                                   
        canDoFirstSmallChunkWithDisconnectedUI = true                                                        
        canDoJobWithDisconnectedUI = false                                                                   
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::setStorageModel(KMail::MessageListView::Core::StorageModel*, KMail::MessageListView::Core::PreSelectionMode)"                                    
#46 0xb774a42f in KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=0x9a9dba8)        
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/core/model.cpp:4440                                  
        __PRETTY_FUNCTION__ = "void KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged()"    
#47 0xb72c199b in KMail::MessageListView::Core::Model::qt_metacall (this=0x9a9dba8,                          
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf3be5a8)                                                  
    at /build/buildd/kdepim-4.3.0/obj-i486-linux-gnu/kmail/moc_model.cpp:80                                  
No locals.                                                                                                   
#48 0xb5e3e1b8 in QMetaObject::activate (sender=0xa5a31c8, from_signal_index=17, to_signal_index=17,         
    argv=0x0) at kernel/qobject.cpp:3113                                                                     
        method = 24                                                                                          
        currentSender = {sender = 0xa5a31c8, signal = 17, ref = 1}                                           
        previousSender = (QObjectPrivate::Sender *) 0xbf3bed24                                               
        i = 4314                                                                                             
        count = 4315                                                                                         
        signal = 17                                                                                          
        empty_argv = {0x0}                                                                                   
        locker = {{mtx = 0x98b5224, val = 160125476}}                                                        
        currentThreadData = (QThreadData *) 0x98b51f0                                                        
        connectionLists = (QObjectConnectionListVector *) 0xa711b00                                          
---Type <return> to continue, or q <return> to quit---                                                       
#49 0xb5e3ee42 in QMetaObject::activate (sender=0xa5a31c8, m=0xb5f1b4f8, local_signal_index=13, argv=0x0)
    at kernel/qobject.cpp:3187
        signal_index = -1245982400
#50 0xb5e795b7 in QAbstractItemModel::modelReset (this=0xa5a31c8)
    at .moc/release-shared/moc_qabstractitemmodel.cpp:213
No locals.
#51 0xb5e22814 in QAbstractItemModel::reset (this=0xa5a31c8) at kernel/qabstractitemmodel.cpp:2263
        d = (QAbstractItemModelPrivate * const) 0xa50f908
#52 0xb771a89d in KMail::MessageListView::StorageModel::slotViewConfigChanged (this=0xa5a31c8)
    at /build/buildd/kdepim-4.3.0/kmail/messagelistview/storagemodel.cpp:644
No locals.
#53 0xb72c1263 in KMail::MessageListView::StorageModel::qt_metacall (this=0xa5a31c8,
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbf3be6f8)
    at /build/buildd/kdepim-4.3.0/obj-i486-linux-gnu/kmail/moc_storagemodel.cpp:92
No locals.
#54 0xb5e3e1b8 in QMetaObject::activate (sender=0xa739ba8, from_signal_index=22, to_signal_index=22,
    argv=0x0) at kernel/qobject.cpp:3113
        method = 28
        currentSender = {sender = 0xa739ba8, signal = 22, ref = 1}
        previousSender = (QObjectPrivate::Sender *) 0xbf3bee74
        i = 0
        count = 1
        signal = 22
        empty_argv = {0x0}
        locker = {{mtx = 0x98b5224, val = 160125476}}
        currentThreadData = (QThreadData *) 0x98b51f0
        connectionLists = (QObjectConnectionListVector *) 0xa628eb0
---Type <return> to continue, or q <return> to quit---
Comment 8 Dario Andres 2009-08-13 01:44:17 UTC
The backtrace looks like the output from bug 186265 comment 4 (and situation seems to match too). 

Thanks for the output, I'm going to merge the other report here. Regards
Comment 9 Dario Andres 2009-08-13 01:50:31 UTC
Bug 186265 also showed another testcase scenario.

Check for bug 186265 comment 4 and bug 186265 comment 5 for more references of the long backtrace (50000~ lines) showing a repeated pattern (overflow..): 

#1930 0x0000003d8db39a45 in QAbstractItemModel::reset (this=0x4333ac0) at
kernel/qabstractitemmodel.cpp:2263
#1931 0x00007f9877d2751c in KMail::MessageListView::StorageModel::qt_metacall
(this=0x4333ac0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
_a=0x7fff39eef880)
    at
/usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_storagemodel.cpp:92
#1932 0x0000003d8db54fdc in QMetaObject::activate (sender=0x31dbd70,
from_signal_index=<value optimized out>, to_signal_index=<value optimized out>,
argv=0x1) at kernel/qobject.cpp:3113
#1933 0x00007f9877e030d0 in KMFolder::setUserWhoField (this=0x31dbd70,
whoField=@0x7fff39eefba0, writeConfig=false) at
/usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:745
#1934 0x00007f9877e03d58 in KMFolder::readConfig (this=0x31dbd70,
configGroup=@0x7fff39eefd00) at
/usr/src/debug/kdepim-4.2.98/kmail/kmfolder.cpp:211
#1935 0x00007f9877e2e1aa in FolderStorage::readConfig (this=0x3396620) at
/usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:963
#1936 0x00007f9877edf079 in KMFolderImap::readConfig (this=0x3396620) at
/usr/src/debug/kdepim-4.2.98/kmail/kmfolderimap.cpp:214
#1937 0x00007f9877e2a480 in FolderStorage::countUnread (this=0x3548c30) at
/usr/src/debug/kdepim-4.2.98/kmail/folderstorage.cpp:866
#1938 0x00007f987814923a in
KMail::MessageListView::Core::Model::setStorageModel (this=0x272f880,
storageModel=<value optimized out>, 
    preSelectionMode=KMail::MessageListView::Core::PreSelectLastSelected) at
/usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:733
#1939 0x00007f98781499c6 in
KMail::MessageListView::Core::Model::slotStorageModelLayoutChanged (this=<value
optimized out>)
    at /usr/src/debug/kdepim-4.2.98/kmail/messagelistview/core/model.cpp:4440
#1940 0x00007f9877d263d4 in KMail::MessageListView::Core::Model::qt_metacall
(this=0x272f880, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
_a=0x7fff39ef0300)
    at
/usr/src/debug/kdepim-4.2.98/x86_64-redhat-linux-gnu/kmail/moc_model.cpp:80
#1941 0x0000003d8db54fdc in QMetaObject::activate (sender=0x4333ac0,
from_signal_index=<value optimized out>, to_signal_index=<value optimized out>,
argv=0x1) at kernel/qobject.cpp:3113
Comment 10 Christophe Marin 2009-08-13 14:41:05 UTC
*** Bug 203684 has been marked as a duplicate of this bug. ***
Comment 11 Thomas McGuire 2009-08-13 14:44:30 UTC
Fixed with r993474, and backported. Fix will be in KDE 4.3.1.