[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Help debugging SIGBUS for 3.3.2 on Solaris
From: Albert Chin <kde-devel () mlists ! thewrittenword ! com>
Date: 2004-12-24 1:13:05
Message-ID: 20041224011305.GC87932 () mail1 ! thewrittenword ! com
[Download RAW message or body]
On Thu, Dec 23, 2004 at 05:53:13PM -0600, Albert Chin wrote:
> On Thu, Dec 23, 2004 at 06:40:09PM -0500, Michael Pyne wrote:
> > On Thursday 23 December 2004 06:32 pm, Albert Chin wrote:
> > > We have qt-3.3.2, kdelibs-3.3.2, and kdebase-3.3.2 built with -g on
> > > Solaris 8/SPARC with gcc-3.4.3. If we File->Open in kate and, in the
> > > Location text box, press "/", the File->Open dialog disappears.
> > >
> > > I think the error is in the code that tries to match what you type in
> > > the Location text box with filenames in the relevant directory. If I
> > > type '/' in the Location text box, I should get a list of files in the
> > > root file system.
> > >
> > > What code should I be looking at to debug this?
> >
> > I believe that there is a thread launched to try to fill in a drop-down list
> > box of possible completions. Perhaps it has something to do with that
> > background thread?
>
> Possibly. That might explain the backtrace from gdb:
> #0 0xff2cd464 in QString::length (this=0xfca0bc78) at qstring.h:880
> #1 0xfdb09380 in QTextCodec::fromUnicode (this=0x732a0, uc=@0xfca0bc78)
> at codecs/qtextcodec.cpp:996
> #2 0xfdae129c in QString::local8Bit (this=0xfca0bc78)
> at tools/qstring.cpp:5838
> #3 0xfdaa8644 in locale_encoder (fileName=@0xfca0bc78) at tools/qfile.cpp:559
> #4 0xfdaa868c in QFile::encodeName (fileName=@0xfca0bc78)
> at tools/qfile.cpp:589
> #5 0xfda88f14 in QDir::setCurrent (path=@0xfca0bc78)
> at tools/qdir_unix.cpp:137
> #6 0xfea1bacc in DirectoryListThread::run (this=0x3cb170)
> at kurlcompletion.cpp:285
> #7 0xfd6c11b8 in QThreadInstance::start (_arg=0x3eb604)
> at kernel/qthread_unix.cpp:120
> #8 0xfcffb024 in _thread_start () from /usr/lib/libthread.so.1
> #9 0xfcffb024 in _thread_start () from /usr/lib/libthread.so.1
>
> I'm about to test on a machine with recent recommended patches from
> Sun.
Ok, I've tracked it down to a gcc-3.4.3 bug. The patch below gets it
to work :)
--
albert chin (china@thewrittenword.com)
-- snip snip
--- kio/kio/kurlcompletion.cpp.orig Thu Dec 23 17:56:26 2004
+++ kio/kio/kurlcompletion.cpp Thu Dec 23 19:11:59 2004
@@ -225,6 +225,7 @@
// Loop through all directory entries
+int i;
struct dirent dirPosition;
struct dirent *dirEntry = 0;
while ( !terminationRequested() &&
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic