From kde-core-devel Tue Aug 03 18:26:22 1999 From: Kurt Granroth Date: Tue, 03 Aug 1999 18:26:22 +0000 To: kde-core-devel Subject: Re: KURLLabel segfaults with Qt-2.0.1 X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93370453712892 Cristian Tibirna wrote: > While helping Lotzi Boloni to test gofai (the neat new app in kdenonbeta) > we discovered that KURLLabel segfaults with Qt-2.0.1. > > This happens in kurllabel.cpp around line 159. It seems to me the font() > call never returns a good font value. Thus, either the setUnderline or > setFont below are entering into some sort of long loop then segfault. > > We weren't able to test this more, because I don't have qt/kde compiled > with debug symbols these days. > > Anyways, Lotzi ran KURLLabel with Qt-2.0 and all is ok. So, it's probably > a Qt-2.0.1 problem. I'll take a look at this tonight. I wonder if it is related to this? >From: John Corey >Subject: kcontrol >To: KDE Devel > >This morning I was trying to figure out just why kcontrol insists on >segfaulting here when doing something so simple as setting the font. >Below is a backtrace. It seems to get confused at #2, where it gets >confused, and "this" is an unacceptable value. From there it just goes >downhill, finally trying to copy 203MB of data into there. > >Obviously, other programs are able to set the font just fine doing the >same things KControl is trying to do, so I don't think it's in >necessarily in Qt that it blows up. I do have the "times" font family. >Does anyone else have trouble with kcontrol? > >(gdb) bt >#0 0x408138a7 in memcpy (dstpp=0x408e6008, srcpp=0x6050606, >len=203033626) > at ../sysdeps/generic/memcpy.c:55 >#1 0x403be32a in QString::setLength (this=0xbffff480, newLen=101516813) > at tools/qstring.cpp:10706 >#2 0x403bdf96 in QString::real_detach (this=0xbffff480) at >tools/qstring.cpp:10560 >#3 0x403c09c1 in QString::lower (this=0x80a031c) at >tools/qstring.cpp:11499 >#4 0x403e1dd2 in QFont::key (this=0x80a00c8) at kernel/qfont.cpp:1208 >#5 0x403666b2 in QFont::load (this=0x80a00c8) at >kernel/qfont_x11.cpp:724 >#6 0x40365426 in QFont::handle (this=0x80a00c8) at >kernel/qfont_x11.cpp:395 >#7 0x404357d6 in QWidget::setFont (this=0x80a0060, font=@0xbffff5b8) > at kernel/qwidget.cpp:1928 >#8 0x80534d3 in mainWidget::mainWidget (this=0x809fc60, >parent=0x808acb0, name=0x0) > at mainwidget.cpp:28 -- Kurt Granroth | granroth@kde.org KDE Developer/Evangelist | http://www.pobox.com/~kurt_granroth KDE -- Putting a Friendly Face on Linux