KDE malloc SIGSEGV with PerlQt bindings + KDE themes
Maks Orlovich
mo002j at mail.rochester.edu
Tue Nov 19 15:00:54 GMT 2002
On Tuesday 19 November 2002 09:40 am, Karol Szwed wrote:
> On Tuesday 19 November 2002 13:27, Germain Garand wrote:
> > Hi,
> > I'm investigating a segfault that happens when using some KDE themes
> > (namely : riscos, marble, system, systemalt).
> > It happens consistently when KDE's malloc attempts to free
> > KStandardDirs::addKDEDefaults's QStringList.
> >
> > Would someone have a hint about what is going wrong ?
>
> If the apps segfault on exit, it is most likely kthemestyle's linking to
> kdecore that is causing the problem (KStaticDeleter again most
> likely). You should not have any problems with all other style plugins
> that do not link to kdecore.
This is worse - take a look at the bt a bit more carefully. It's during
construction of QMainWindow and the demand-load of the style - a free is
invoked from the kdecore's malloc package, likely on a heap that is managed
by glibc malloc (Germain - does the main app link to kdelibs? I am guessing
not). Which, if I understand the specs on dlopen correctly (for which there
is a very high chance that I don't), is very much not supposed to happen,
since the search order for free() should find the glibc one all the time,
since it's the "oldest known". At any rate, I could try dropping the kdecore
dependency from KThemeStyle again -- but that would require duplicating code
from KStandardDirs....
Anyone have any other ideas?
More information about the kde-core-devel
mailing list