Bug 182933

Summary: krunner_contacts make krunner crashy
Product: [Applications] kdepimlibs Reporter: Nicolas L. <kde>
Component: kabcAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: catalin.stefan.alexandru, dglent, jozefch, krammer, rolandocartagena, tdan12ro
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas L. 2009-02-03 00:06:39 UTC
Version:            (using KDE 4.2.0)
Installed from:    Mandriva RPMs

A user reported me that when he install krunner_contacts from kdeplasma-addons, krunner doesn't start

krunner(4995) SaverEngine::enable: Saver Engine disabled
krunner(4995)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-raph/ksycoca4"
krunner(4995)/libplasma Plasma::RunnerManagerPrivate::loadRunners: tryExec is ""                                            
krunner(4995)/kdepimlibs (kabc) KABC::StdAddressBook::self: asynchronous= true                                              
krunner(4995)/kresources KRES::Factory::self:                                                                               
krunner(4995)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "KResources/Plugin"  not found                                                                                                                         
krunner(4995)/kresources KRES::ManagerImpl::ManagerImpl:                                                                     
krunner(4995)/kresources KRES::ManagerImpl::readConfig:                                                                      
krunner(4995)/kresources KRES::Factory::self:                                                                                
krunner(4995)/kresources KRES::ManagerImpl::readResourceConfig: "tNIbPxKyr7"                                                 
krunner(4995)/kresources KRES::Factory::Private::resourceInternal: ( "file" , config )                                       
krunner(4995)/kresources KRES::Factory::Private::resourceInternal: no such type "file"                                       
krunner(4995)/kresources KRES::ManagerImpl::readResourceConfig: Failed to create resource with id "tNIbPxKyr7"               
krunner(4995)/kdepimlibs (kabc) KABC::StdAddressBook::StdAddressBook:                                                        
krunner(4995)/kdepimlibs (kabc) KABC::StdAddressBook::self: calling init after instance creation                             
krunner(4995)/kresources KRES::Factory::Private::resourceInternal: ( "file" , config )                                       
krunner(4995)/kresources KRES::Factory::Private::resourceInternal: no such type "file"                                       

Program received signal SIGSEGV, Segmentation fault.
KABC::StdAddressBook::Private::init (this=0x8dcd578, asynchronous=true)
    at /usr/src/debug/kdepimlibs-4.2.0/kabc/stdaddressbook.cpp:169     
169         res->setResourceName( i18n( "Default Addressbook" ) );  



And here is the backtrace :

(gdb) bt full                                                                                                                
#0  KABC::StdAddressBook::Private::init (this=0x8dcd578, asynchronous=true)                                                  
    at /usr/src/debug/kdepimlibs-4.2.0/kabc/stdaddressbook.cpp:169                                                           
        manager = (class KRES::Manager<KABC::Resource> *) 0x8a4bdb8                                                          
        it = {mIt = {i = 0x8dd5434}, mList = 0x8dc7660}                                                                      
        res = <value optimized out>                                                                                          
#1  0xaa1f3728 in KABC::StdAddressBook::self (asynchronous=true)                                                             
    at /usr/src/debug/kdepimlibs-4.2.0/kabc/stdaddressbook.cpp:92                                                            
        __PRETTY_FUNCTION__ = "static KABC::StdAddressBook* KABC::StdAddressBook::self(bool)"                                
#2  0xaa22d160 in ?? () from /usr/lib/kde4/krunner_contacts.so                                                               
No symbol table info available.                                                                                              
#3  0xaa22e78a in KPluginFactory::createInstance<ContactsRunner, QObject> () from /usr/lib/kde4/krunner_contacts.so          
No symbol table info available.                                                                                              
#4  0xb763e3a3 in KPluginFactory::create (this=0x8dc37b8, iface=0xb7db0f40 "Plasma::AbstractRunner", parentWidget=0x0,       
    parent=0x8a7eca0, args=@0xbfb2e7cc, keyword=@0xbfb2e668)                                                                 
    at /usr/src/debug/kdelibs-4.2.0/kdecore/util/kpluginfactory.cpp:191                                                      
        current = (const QMetaObject *) 0xb7e05228                                                                           
        plugin = (const QPair<const QMetaObject*, QObject* (*)(QWidget*, QObject*, const QVariantList&)> &) @0x8af7f38: {    
  first = 0xaa230df0,                                                                                                        
  second = 0xaa22e710 <QObject* KPluginFactory::createInstance<ContactsRunner, QObject>(QWidget*, QObject*, QList<QVariant> const&)>}                                                                                                                     
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0,              
          sharable = 1, array = {0x0}}, d = 0x8dc6af8}, d = 0x8dc6af8}}, brk = 0, i = {i = 0x8dc6b0c}, e = {i = 0x8dc6b10}}  
        d = (KPluginFactoryPrivate * const) 0x8db7038                                                                        
        obj = (class QObject *) 0x0                                                                                          
        candidates = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0, sharable = 1,      
        array = {0x0}}, d = 0x8dc6af8}, d = 0x8dc6af8}}                                                                      
#5  0xb7d09b28 in KPluginFactory::create<Plasma::AbstractRunner> (this=0x8dc37b8, parentWidget=0x0, parent=0x8a7eca0,        
    keyword=@0xbfb2e668, args=@0xbfb2e7cc) at /usr/src/debug/kdelibs-4.2.0/kdecore/util/kpluginfactory.h:515                 
        o = <value optimized out>                                                                                            
        t = <value optimized out>                                                                                            
#6  0xb7d09c88 in KService::createInstance<Plasma::AbstractRunner> (this=0x8dbd2a0, parentWidget=0x0, parent=0x8a7eca0,      
---Type <return> to continue, or q <return> to quit---args=Quit                                                              
(gdb)                                                                                                                        
#0  KABC::StdAddressBook::Private::init (this=0x8dcd578, asynchronous=true)                                                  
    at /usr/src/debug/kdepimlibs-4.2.0/kabc/stdaddressbook.cpp:169                                                           
        manager = (class KRES::Manager<KABC::Resource> *) 0x8a4bdb8                                                          
        it = {mIt = {i = 0x8dd5434}, mList = 0x8dc7660}                                                                      
        res = <value optimized out>                                                                                          
#1  0xaa1f3728 in KABC::StdAddressBook::self (asynchronous=true)                                                             
    at /usr/src/debug/kdepimlibs-4.2.0/kabc/stdaddressbook.cpp:92                                                            
        __PRETTY_FUNCTION__ = "static KABC::StdAddressBook* KABC::StdAddressBook::self(bool)"                                
#2  0xaa22d160 in ?? () from /usr/lib/kde4/krunner_contacts.so                                                               
No symbol table info available.                                                                                              
#3  0xaa22e78a in KPluginFactory::createInstance<ContactsRunner, QObject> () from /usr/lib/kde4/krunner_contacts.so          
No symbol table info available.                                                                                              
#4  0xb763e3a3 in KPluginFactory::create (this=0x8dc37b8, iface=0xb7db0f40 "Plasma::AbstractRunner", parentWidget=0x0,       
    parent=0x8a7eca0, args=@0xbfb2e7cc, keyword=@0xbfb2e668)                                                                 
    at /usr/src/debug/kdelibs-4.2.0/kdecore/util/kpluginfactory.cpp:191                                                      
        current = (const QMetaObject *) 0xb7e05228                                                                           
        plugin = (const QPair<const QMetaObject*, QObject* (*)(QWidget*, QObject*, const QVariantList&)> &) @0x8af7f38: {    
  first = 0xaa230df0,                                                                                                        
  second = 0xaa22e710 <QObject* KPluginFactory::createInstance<ContactsRunner, QObject>(QWidget*, QObject*, QList<QVariant> const&)>}                                                                                                                     
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0,              
          sharable = 1, array = {0x0}}, d = 0x8dc6af8}, d = 0x8dc6af8}}, brk = 0, i = {i = 0x8dc6b0c}, e = {i = 0x8dc6b10}}  
        d = (KPluginFactoryPrivate * const) 0x8db7038                                                                        
        obj = (class QObject *) 0x0                                                                                          
        candidates = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0, sharable = 1,      
        array = {0x0}}, d = 0x8dc6af8}, d = 0x8dc6af8}}                                                                      
#5  0xb7d09b28 in KPluginFactory::create<Plasma::AbstractRunner> (this=0x8dc37b8, parentWidget=0x0, parent=0x8a7eca0,        
    keyword=@0xbfb2e668, args=@0xbfb2e7cc) at /usr/src/debug/kdelibs-4.2.0/kdecore/util/kpluginfactory.h:515                 
        o = <value optimized out>                                                                                            
        t = <value optimized out>                                                                                            
#6  0xb7d09c88 in KService::createInstance<Plasma::AbstractRunner> (this=0x8dbd2a0, parentWidget=0x0, parent=0x8a7eca0,      
---Type <return> to continue, or q <return> to quit---                                                                       
    args=@0xbfb2e7cc, error=0xbfb2e7d4) at /usr/src/debug/kdelibs-4.2.0/kdecore/services/kservice.h:518                      
        o = <value optimized out>                                                                                            
        pluginLoader = {<QPluginLoader> = {<QObject> = {_vptr.QObject = 0xb76d7fa8, static staticMetaObject = {d = {         
          superdata = 0x0, stringdata = 0xb73ce500 "QObject", data = 0xb73ce580, extradata = 0x0}}, d_ptr = 0x8dc63a0,       
      static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0xb73d7620 "Qt", data = 0xb73d92c0,                    
          extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0xb7420618,                                        
        stringdata = 0xb73dcce0 "QPluginLoader", data = 0xb73dcd20, extradata = 0xb7426e7c}}, d = 0x8db9660,                 
    did_load = true}, static staticMetaObject = {d = {superdata = 0xb74246d4, stringdata = 0xb767f6a0 "KPluginLoader",       
      data = 0xb767f760, extradata = 0x0}}, d_ptr = 0x8dc24b8}                                                               
        factory = <value optimized out>                                                                                      
#7  0xb7d09e2b in KService::createInstance<Plasma::AbstractRunner> (this=0x8dbd2a0, parent=0x8a7eca0, args=@0xbfb2e7cc,      
    error=0xbfb2e7d4) at /usr/src/debug/kdelibs-4.2.0/kdecore/services/kservice.h:495                                        
No locals.                                                                                                                   
#8  0xb7d0a53f in Plasma::RunnerManagerPrivate::loadRunners (this=0x89b3948)                                                 
    at /usr/src/debug/kdelibs-4.2.0/plasma/runnermanager.cpp:259                                                             
        args = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {  
          0x0}}, d = 0x8db7258}, d = 0x8db7258}}                                                                             
        api = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3477}, alloc = 0, size = 0,         
    data = 0xb7426d1a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {     
      0}}, static shared_empty = {ref = {_q_value = 56}, alloc = 0, size = 0, data = 0xb7426d2e, clean = 0, simpletext = 0,  
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb7426d08,                               
  static codecForCStrings = 0x0}                                                                                             
        error = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3477}, alloc = 0, size = 0,       
    data = 0xb7426d1a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {     
      0}}, static shared_empty = {ref = {_q_value = 56}, alloc = 0, size = 0, data = 0xb7426d2e, clean = 0, simpletext = 0,  
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb7426d08,                               
  static codecForCStrings = 0x0}                                                                                             
        runner = (class Plasma::AbstractRunner *) 0x0                                                                        
        tryExec = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3477}, alloc = 0, size = 0,     
    data = 0xb7426d1a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {     
      0}}, static shared_empty = {ref = {_q_value = 56}, alloc = 0, size = 0, data = 0xb7426d2e, clean = 0, simpletext = 0,  
---Type <return> to continue, or q <return> to quit---                                                                       
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb7426d08,                               
  static codecForCStrings = 0x0}
        description = {d = {d = 0x8db8158}}
        runnerName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 3477}, alloc = 0, size = 0,
    data = 0xb7426d1a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, static shared_empty = {ref = {_q_value = 56}, alloc = 0, size = 0, data = 0xb7426d2e, clean = 0, simpletext = 0,
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x8dbd5e8, static codecForCStrings = 0x0}
        loaded = <value optimized out>
        service = (const KSharedPtr<KService> &) @0x8b0f978: {d = 0x8dbd2a0}
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0,
          sharable = 1, array = {0x0}}, d = 0x8dc3528}, d = 0x8dc3528}}, brk = 0, i = {i = 0x8dc353c}, e = {i = 0x8dc356c}}
        offers = {{p = {static shared_null = {ref = {_q_value = 3097}, alloc = 0, begin = 0, end = 0, sharable = 1,
        array = {0x0}}, d = 0x8dc3528}, d = 0x8dc3528}}
        loadAll = false
        conf = {<KConfigBase> = {_vptr.KConfigBase = 0xb76d3268}, d = {d = 0x8db7d68}}
        __PRETTY_FUNCTION__ = "void Plasma::RunnerManagerPrivate::loadRunners()"
#9  0xb7fcd706 in KRunnerApp::initialize (this=0x89a4510)
    at /usr/src/debug/kdebase-workspace-4.2.0/krunner/krunnerapp.cpp:252
        classHint = {res_name = 0xb7fee939 "krunner", res_class = 0xb7fee939 "krunner"}
        a = (class KAction *) 0x8db76b8
#10 0xb7fcd87c in KRunnerApp (this=0x89a4510, display=0x899ab58, visual=144284536, colormap=46137345)
    at /usr/src/debug/kdebase-workspace-4.2.0/krunner/krunnerapp.cpp:134
No locals.
#11 0xb7fcdbb8 in KRunnerApp::self () at /usr/src/debug/kdebase-workspace-4.2.0/krunner/krunnerapp.cpp:115
No locals.
#12 0xb7fce3c5 in kdemain (argc=2, argv=0xbfb2ead4) at /usr/src/debug/kdebase-workspace-4.2.0/krunner/main.cpp:55
        aboutData = {d = 0x898e7a0}
        app = <value optimized out>
        rc = 0
#13 0x0804856f in main (argc=Cannot access memory at address 0x29
) at /usr/src/debug/kdebase-workspace-4.2.0/build/krunner/krunner_dummy.cpp:3
No locals.
(gdb)
Comment 1 Nicolas L. 2009-02-17 08:38:01 UTC
*** Bug 183936 has been marked as a duplicate of this bug. ***
Comment 2 Nicolas L. 2009-03-05 01:58:30 UTC
*** Bug 186005 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas L. 2009-03-05 01:58:37 UTC
*** Bug 183461 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas L. 2009-03-05 01:58:58 UTC
*** Bug 185564 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-03-23 12:54:27 UTC
*** Bug 187898 has been marked as a duplicate of this bug. ***
Comment 6 Kevin Krammer 2009-03-23 13:26:31 UTC
While the question remains why the factory failed to create the "file" resource (after all that's a standard plugin shipped with kdepimlibs), the actual crash should be fixed by Revision 917250, which is included in 4.2.1