From kde-core-devel Tue Aug 03 18:52:31 1999 From: Cristian Tibirna Date: Tue, 03 Aug 1999 18:52:31 +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=93370598914714 On Tue, 3 Aug 1999, Kurt Granroth wrote: > 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? Possible. My gdb backtrace with KURLLabel goes only up to the QWidget::setFont() then loops a lot then dies. Thanks for looking into it. It's possibly a Qt error. Would help if we looked for differences in QString between Qt-2.0 and Qt-2.0.1? Cristian > > > >(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 >