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

List:       kde-core-devel
Subject:    Re: Crashes on exit.
From:       Michael Matz <matz () ifh ! de>
Date:       2000-11-01 9:23:39
[Download RAW message or body]

Hi,

On Tue, 31 Oct 2000, Waldo Bastian wrote:
> > Has something changed with the way KStaticDeleters destruct?
> >
> > I see crashes everywhere due to KStaticDeleters destructing. E.g. KCursor
> > and KHTMLPageCache. I removed the KCursor_private destructor... but the
> > KHTMLPageCache needs to be destructed because it is in a KPart.
> 
> Following up on myself:
> 
> It seems that we used to destruct libs in   
> 
> KLibLoader::cleanUp(); 
> 
> as first line of ~KApplication. This caused the KStaticDeleters in
> those libs to be called. I guess we don't do that any longer, and now
> the KStaticDeleters are being called from qt_cleanup() -->
> kglobal_freeAll.

We currently do not dlclose() any libraries (unless they export
"__kde_do_unload", or you set the env var KDE_DO_UNLOAD). So the static
deleters are run at application exit. As we anyway can't guarantee, that
the libs are dlclose'ed, the static-deleters should be made safe to run at
app exit. Btw. can you provide a backtrace?


Ciao,
Michael.

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

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