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

List:       kde-pim
Subject:    Re: [Kde-pim] KInstance::dirs() Segfault
From:       Eduardo Pereira Habkost <ehabkost () conectiva ! com ! br>
Date:       2005-01-18 10:59:18
Message-ID: 20050118105917.GH24920 () duckman ! distro ! conectiva
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

On Sun, Jan 16, 2005 at 08:55:08PM -0800, Andrew De Ponte wrote:
> Hi. I ran into this problem when trying to write an application that would use 
> libkabc to access the KAddressBook content. Anyways, I found that when trying 
> to create an instance of KABC::AddressBook. Since this was the case I ran gdb 
> on the debug enabled binary and the core dump. I have also attached the 
> source file. I hope someone can help me out and tell my why this is 
> happening. I have KDE 3.3.2 installed. I tried to find a bug report for this 
> but couldn't find one. The output is as follows. Please help me figure this 
> out.
> 

I guess you need an instance of KApplication to use the KAddressBook
libraries.

Well, a few minutes ago I discovered -- by looking at the konsolekalendar
source code -- that you can create just a KInstance object if you have
a non-GUI application. I've never used it, but it seems to be a good idea.


> adeponte@waddler:~/programming/testing/kabc_test> gdb kabc_test core
<snip>
> #0  0x41176e32 in KInstance::dirs () from /opt/kde3/lib/libkdecore.so.4
> (gdb) bt
> #0  0x41176e32 in KInstance::dirs () from /opt/kde3/lib/libkdecore.so.4
> #1  0x41177162 in KGlobal::dirs () from /opt/kde3/lib/libkdecore.so.4
> #2  0x411a12ff in KSycoca::openDatabase () from /opt/kde3/lib/libkdecore.so.4
> #3  0x411e5a2b in KSycoca::KSycoca () from /opt/kde3/lib/libkdecore.so.4
> #4  0x411e5ae7 in KSycoca::self () from /opt/kde3/lib/libkdecore.so.4

Exactly the same backtrace I got when I didn't create a KApplication object.

-- 
Eduardo

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

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

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