Crash when running Tools programs
Dave Orzechowski
dorzech148 at yahoo.com
Fri Oct 22 22:36:10 BST 1999
It ended up being an error in a strlen call invoked
from debug().
This solution seems to be working well:
CC: GCC-2.95.1
Platform: Solaris 2.6
Version: kdevelop-1.0beta3
File: kswallow.cpp
Functions: void KSwallowWidget::sWExecute()
Line #: 135
Before: debug("Args: %s", arg.data());
After : str = arg.data();
if (str != NULL)
debug("Args: %s", str);
--- Dave Orzechowski <dorzech148 at yahoo.com> wrote:
> The fix that I presented in previous email was not
> thouroughly evaluated...I jumped the gun. The
> solution
> lies elseware...my apologies.
>
> However, I am definitely having a problem with this
> matter. The fix was just a temporary hack that
> allows
> Kdbg (os Cervisia) to run. Just commenting out that
> line would have basically hacked it as well.
>
> This issue could be due to the fact that I am
> compiling with gcc 2.95.1. and not 2.91.?. Because
> 2.95.1 is much more strict on typecasts and
> prototypes.
>
> The problem is that it is trying to get a pointer to
> a
> data value but the data value is NULL, and the code
> instead of returning NULL, tries to read
> 0x0000....Segment fault! I just haven't figured out
> what to do yet.
>
> Files to look at:
>
> KDevelop:
> File kswallowapp.cpp (line 135)
> --->debug("Args: %s", arg.data());
>
> QT:
> File qarray.h (line 118)
> type *data() const { return (type
> *)QGArray::data();}
>
> File qgarray.h (line 52)
> --->char *data() const { return shd->data; }
>
> Dave O.
> <EOM>
> --- Bernd Gehrmann <bernd at physik.hu-berlin.de>
> wrote:
> > On Thu, 21 Oct 1999 Dave Orzechowski wrote:
> > >Executing any tools from Tools menu results in
> > crash.
> > >
> > >--- Work around and or fix --------------
> >
> > Thanks. It's really surprising that this happens
> > on Solaris, but not on Linux...
> >
> > Bernd.
> >
>
>
> =====
>
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
>
=====
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
More information about the KDevelop
mailing list