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

List:       kde-devel
Subject:    Re: Error in KUniqueApplication::start
From:       me <kev.gilbert () cdu ! edu ! au>
Date:       2005-10-20 22:38:10
Message-ID: 200510210756.16720.kev.gilbert () cdu ! edu ! au
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thu October 20 2005 17:46, David Faure wrote:
> On Thursday 20 October 2005 03:58, me wrote:
> > Hi,
> >
> > While valdrind'ing another application I came across the following:
> >
> > ==21448== Invalid free() / delete / delete[]
> > ==21448==    at 0x1B909743: free (vg_replace_malloc.c:152)
> > ==21448==    by 0xBD5D25: free_mem (in /lib/libc-2.3.5.so)
> > ==21448==    by 0xBD5999: __libc_freeres (in /lib/libc-2.3.5.so)
> > ==21448==    by 0x1B903753: _vgw(float, long double,...)(...)(long
> > double,...)(short) (vg_intercept.c:55) ==21448==    by 0xB5EE43: _Exit
> > (in /lib/libc-2.3.5.so)
> > ==21448==    by 0x1CDA7AB3: KUniqueApplication::start()
> > (kuniqueapplication.cpp:310) ==21448==    by 0x1CDA7B7A:
> > KUniqueApplication::initHack(bool) (kuniqueapplication.cpp:362) ==21448==
> >    by 0x1CDA7F6A: KUniqueApplication::KUniqueApplication(bool, bool,
> > bool) (kuniqueapplication.cpp:319) ==21448==    by 0x8051C82:
> > Akregator::Application::Application() (main.cpp:41) ==21448==    by
> > 0x8051566: main (main.cpp:93)
> > ==21448==  Address 0x1D8165E0 is not stack'd, malloc'd or (recently)
> > free'd
> >
> > The error appears to be caused by the statement:
> >
> >      delete dc;	// Clean up DCOP commmunication
> >
> > where "dc" is initialised by:
> >
> >      dc = dcopClient();
> >
> > Should the that object be deleted at all?
>
> Which version of kdelibs is this with?

The application I was debugging was akgregator, so:

akregator --version
Qt: 3.3.4
KDE: 3.4.92 (beta2, >= 20051010)
Akregator: 1.2

and

gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure  : (reconfigured) ./configure 
--enable-languages=c,c++,fortran,java,objc --no-create --no-recursion
Thread model: posix
gcc version 4.1.0 20051018 (experimental)

Cheers

Kevin

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

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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