KDE malloc SIGSEGV with PerlQt bindings + KDE themes

Germain Garand germain at ebooksfrance.com
Tue Nov 19 12:27:28 GMT 2002


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 ?

Here is the backtrace :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 10897)]
0x41a00d2b in fREe (mem=0x83a0cf8) at malloc.c:3070
3070            fwd->bk = p;
(gdb) bt
#0  0x41a00d2b in fREe (mem=0x83a0cf8) at malloc.c:3070
#1  0x419ffc71 in free (m=0x83a0cf8) at malloc.c:5525
#2  0x419ffcc0 in free (m=0x83a0cf8) at malloc.c:5537
#3  0x4134de24 in __builtin_delete () from /usr/lib/libstdc++-libc6.2-2.so.3
#4  0x418cf7bb in QValueListPrivate<QString>::~QValueListPrivate 
(this=0x83a4b90, __in_chrg=3)
    at /home/germain/cvs/KDE/qt-copy/include/qvaluelist.h:280
#5  0x418cf37a in QValueListPrivate<QString>::derefAndDelete (this=0x83a4b90)
    at /home/germain/cvs/KDE/qt-copy/include/qvaluelist.h:235
#6  0x418cf091 in QValueList<QString>::~QValueList (this=0xbfffec50, 
__in_chrg=0)
    at /home/germain/cvs/KDE/qt-copy/include/qvaluelist.h:444
#7  0x418cdc01 in QStringList::~QStringList (this=0xbfffec50, __in_chrg=2)
    at /home/germain/cvs/KDE/qt-copy/include/qsettings.h:98
#8  0x4197e5d3 in KStandardDirs::addKDEDefaults (this=0x83a6f60) at 
kstandarddirs.cpp:1052
#9  0x41978b97 in KStandardDirs::KStandardDirs (this=0x83a6f60) at 
kstandarddirs.cpp:83
#10 0x418cb011 in KStyleDirs::KStyleDirs (this=0x83a6f60) at kstyledirs.cpp:31
#11 0x418cddee in KStyleDirs::dirs () at kstyledirs.h:48
#12 0x418d11fe in KThemeStylePlugin::keys (this=0x83a8450) at 
kthemestyle.cpp:133
#13 0x407f1931 in QStylePluginPrivate::featureList (this=0x83a8488) at 
styles/qstyleplugin.cpp:135
#14 0x407bd0e5 in QGPluginManager::addLibrary (this=0x83a08a8, lib=0x83a4be8) 
at tools/qgpluginmanager.cpp:474
#15 0x407bc730 in QGPluginManager::library (this=0x83a08a8, 
feature=@0xbffff030) at tools/qgpluginmanager.cpp:386
#16 0x407bd628 in QGPluginManager::queryUnknownInterface (this=0x83a08a8, 
feature=@0xbffff030, iface=0xbffff020)
    at tools/qgpluginmanager.cpp:540
#17 0x408fdc97 in QPluginManager<QStyleFactoryInterface>::queryInterface 
(this=0x83a08a8, feature=@0xbffff030, iface=0xbffff020)
    at ../include/private/qpluginmanager_p.h:67
#18 0x407f1289 in QStyleFactory::create (key=@0xbffff130) at 
styles/qstylefactory.cpp:176
#19 0x40536fb4 in QApplication::style () at kernel/qapplication.cpp:1148
#20 0x405b19f1 in QWidget::style (this=0x839ff08) at kernel/qwidget.cpp:1212
#21 0x408bc4eb in QHideDock::QHideDock (this=0x839ff08, parent=0x839dcd8) at 
widgets/qmainwindow.cpp:304
#22 0x4064e255 in QMainWindow::QMainWindow (this=0x839dcd8, parent=0x0, 
name=0x0, f=0) at widgets/qmainwindow.cpp:909
#23 0x4107cf96 in x_QMainWindow::x_QMainWindow (this=0x839dcd8, x1=0x0, 
x2=0x0, x3=0) at x_QMainWindow.cpp:73
#24 0x4107b513 in x_QMainWindow::x_10 (x=0x839dc30) at x_QMainWindow.cpp:70
#25 0x40ece78b in xcall_QMainWindow (xi=10, obj=0x0, args=0x839dc30) at 
x_QMainWindow.cpp:1422
#26 0x402e87b3 in XS_AUTOLOAD () from 
/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Qt/Qt.so
#27 0x40089fcc in Perl_pp_entersub () from 
/usr/lib/perl5/5.6.1/i386-linux/CORE/libperl.so
#28 0x00000001 in ?? ()
(gdb)


Thanks,

Germain




More information about the kde-core-devel mailing list