[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 69591] New: Crash on AddressBook::load() / ::asyncLoad() when
From:       Benedikt Gollatz <benedikt () gollatz ! net>
Date:       2003-12-03 17:27:46
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=69591     
           Summary: Crash on AddressBook::load() / ::asyncLoad() when no
                    address book is accessible
           Product: kaddressbook
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: tokoe@kde.org
        ReportedBy: benedikt@gollatz.net


Version:           CVS HEAD (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 3.3.1 
OS:          Linux

Every time I start KDE, I get an annoying message that tells me that kab2abc crashed. \
When calling up the backtrace I can see that the crash happens in AddressBook:load(). \
There are crashes with similar backtraces when trying to create a new e-mail in kmail \
and typing the adressee's name, when starting kaddressbook or when selecting the \
"Contacts" option from the feature list on the left in kontact (crash in \
AddressBook::asyncLoad() in the two latter cases). Here's a backtrace from a crash \
produced by kaddressbook:

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 1851)]
0x41bddb79 in wait4 () from /lib/libc.so.6
#0  0x41bddb79 in wait4 () from /lib/libc.so.6
#1  0x41c5e414 in __DTOR_END__ () from /lib/libc.so.6
#2  0x419e0cd3 in waitpid () from /lib/libpthread.so.0
#3  0x40ebbdea in KCrash::defaultCrashHandler(int) ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#4  <signal handler called>
#5  0x00000001 in ?? ()
#6  0x405affc4 in KABC::AddressBook::asyncLoad() ()
   from /opt/kde-cvs/lib/libkabc.so.1
#7  0x405de982 in KABC::StdAddressBook::init(bool) ()
   from /opt/kde-cvs/lib/libkabc.so.1
#8  0x405de44b in KABC::StdAddressBook::StdAddressBook(bool) ()
   from /opt/kde-cvs/lib/libkabc.so.1
#9  0x405ddeae in KABC::StdAddressBook::self(bool) ()
   from /opt/kde-cvs/lib/libkabc.so.1
#10 0x4008a428 in KABCore::KABCore(KXMLGUIClient*, bool, QWidget*, char const*)
    () from /opt/kde-cvs/lib/libkaddressbook.so.0
#11 0x40092bf1 in KAddressBookMain::KAddressBookMain() ()
   from /opt/kde-cvs/lib/libkaddressbook.so.0
#12 0x0804a47d in KAddressBookApp::newInstance() ()
#13 0x40ede2e6 in KUniqueApplication::processDelayed() ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#14 0x40ede73f in KUniqueApplication::qt_invoke(int, QUObject*) ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#15 0x4131ac6d in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x80a8590, clist=0x80a8708, o=0xbffff4f0) at kernel/qobject.cpp:2333
#16 0x41667d7b in QSignal::signal(QVariant const&) (this=0x80a8590, 
    t0=@0x80a85b8) at .moc/debug-shared-mt/moc_qsignal.cpp:100
#17 0x4133815e in QSignal::activate() (this=0x80a8590)
    at kernel/qsignal.cpp:204
#18 0x4133f842 in QSingleShotTimer::event(QEvent*) (this=0x80a8568)
    at kernel/qtimer.cpp:277
#19 0x412b79e3 in QApplication::internalNotify(QObject*, QEvent*) (
    this=0xbffff9b0, receiver=0x80a8568, e=0xbffff7d0)
    at kernel/qapplication.cpp:2582
#20 0x412b6f1b in QApplication::notify(QObject*, QEvent*) (this=0xbffff9b0, 
    receiver=0x80a8568, e=0xbffff7d0) at kernel/qapplication.cpp:2305
#21 0x40e1664e in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#22 0x4124e118 in QApplication::sendEvent(QObject*, QEvent*) (
    receiver=0x80a8568, event=0xbffff7d0) at kernel/qapplication.h:490
#23 0x412a5f08 in QEventLoop::activateTimers() (this=0x80795a0)
    at kernel/qeventloop_unix.cpp:557
#24 0x4125fb1d in QEventLoop::processEvents(unsigned) (this=0x80795a0, flags=4)
    at kernel/qeventloop_x11.cpp:346
#25 0x412cd87d in QEventLoop::enterLoop() (this=0x80795a0)
    at kernel/qeventloop.cpp:198
#26 0x412cd796 in QEventLoop::exec() (this=0x80795a0)
    at kernel/qeventloop.cpp:145
#27 0x412b7b4f in QApplication::exec() (this=0xbffff9b0)
    at kernel/qapplication.cpp:2705
#28 0x0804a66b in main ()
#29 0x41b44f14 in __libc_start_main () from /lib/libc.so.6

kaddressbook prints this to stderr:

kabc: StdAddressBook::self()
kresources: Factory::self()
kio (KTrader): KServiceTypeProfile::offers( KResources/Plugin, )
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-ben/ksycoca
kio (KTrader): Returning 13 offers
kresources: ManagerImpl::ManagerImpl()
kresources: Connecting DCOP signals...
kresources: ManagerImpl::readConfig()
kresources: Factory::self()
kresources: ManagerImpl::readResourceConfig() 4GdSh45yXx
kresources: Factory::resource( file, config )
kio (KDirWatch): Can't use FAM (fam daemon not running?)
kio (KDirWatch): Available methods: Stat
kabc: FormatFactory::self()
kio (KDirWatch): WARNING: KDirWatch::removeDir can't handle ''
kio (KDirWatch): Added File  NotExisting [KDirWatch-1]
kio (KDirWatch): Global Poll Freq is now 500 msec
kio (KDirWatch):  Started Polling Timer, freq 500
kio (KDirWatch):  Setup Stat (freq 500) for
kio (KDirWatch): KDirWatch-1 restarted scanning  (now 1 watchers)
kabc: StdAddressBook::StdAddressBook( bool )
kresources: Opening resource resource-name
QFile::open: No file name specified
kaddressbook: ERROR: Unable to open resource 'resource-name'!
kresources: ManagerImpl::writeConfig()
kresources: Saving resource 4GdSh45yXx
kresources: Resource::writeConfig()
kresources: Saving general info
kresources: ManagerImpl::save() finished
kabc: AddressBook::asyncLoad()

So I guess the crash occours because I don't have an address book:

$ find $HOME -name "*.kab"
$

It seems that something is wrong with AddressBook::d when load() respectively \
asyncLoad() is called and no address book is accessible, because I cannot see any \
other reason why those applications could crash in that function.

I tried deleting $HOME/.kde/share/apps/kabc but it had no effect.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic