crash with codecompletion

Roberto Raggi raggi at cli.di.unipi.it
Fri Mar 1 13:48:03 UTC 2002


hi falk,
the crash can happen when the braces are not balanced (more '}' than '{'  )
your patch solve the problem

thanks 
ciao robe

On Friday 01 March 2002 03:24, Harald Fernengel wrote:
> On Friday 01 March 2002 03:15, Harald Fernengel wrote:
> > It crashes in Simpleparser.h:71 (KDE2 as well as KDE3):
> >
> > void add( const SimpleVariable& v )
> >         { qDebug( "before crash" ); m_vars.append( v ); qDebug( "never
> > arrives here" );}
>
> Argh... sorry, ignore my last mail. In cppcodecompletion.cpp:916 an invalid
> pointer got returned so it crashed on the first access to one of the
> object's members. Since this function was inline, gdb got a bit confused :(
>
> Anyways, it is fixed now (Roberto, can you please take a look at my fix in
> cppcodecompletion.cpp:916 and why the pointer isn't ok?).
>
> 03:23, really time to get some sleep :)
>
> Happy Hacking,
> Harry
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel





More information about the KDevelop-devel mailing list