Bug#39541: crash when entering pointer (code completion)

Roberto Raggi raggi at cli.di.unipi.it
Tue Mar 19 20:17:08 UTC 2002


this patch fix the crash
thanks robe

On Tuesday 19 March 2002 15:32, stojan at aufbix.org wrote:
> Package: kdevelop
> Version: 2.1RC2 (KDE 2.97 (3.0 RC1)) (using KDE 2.9.2 CVS/CVSup/Snapshot)
> Severity: normal
> Installed from:    Compiled sources
> Compiler:          gcc 2.95.4 Debian Prerelease
> OS:                Linux
> OS/Compiler notes: Not Specified
>
> Using KDevelop from KDE3 RC1 I noticed the following:
>
> I have the "Code completion" turned on. This is how the code looks like :
>
> struct pred {
>   voz *pred;
>   pred *next;
> }
>
> void graf::dropTail() {
>   pred *tmp
>   tmp=cyc
>   if (cyc->next !=NULL) {
>   while(tmp->next->next!=NULL) {tmp=tmp->next;)
> tmp->
>
> There is an obvious error at the last closing brace, it should be a curly
> brace, not the normal one.. as I enter the '>' character after 'tmp-',
> KDevelop crashes without any notices or anything. When I fix the closing
> brace (I replace the normal one with a curly brace) it works ok and gives
> me the options on what I can use.
>
> I get the following in the console:
>
>  kdevelop: ---------------------------> complete (enabled by robe :-)
> kdevelop: CppCodeCompletion::getMethodBody()
> kdevelop: contents = ;
>  graf::dropCycTail() { predhodniki *tmp; tmp=cyc;  (cyc->next !=NULL) { 
> (tmp->next->next!=NULL) {tmp=tmp->next;)     tmp-> kdevelop: classname =
> graf
> ctx = 0x8494f90 - lev = 1 - type = predhodniki - vars = tmp
> KCrash: crashing.... crashRecursionCounter = 2
> KCrash: Application Name = kdevelop path = <unknown> pid = 5035
> Unable to start dr. konqi
> DCOP: unregister 'kdevelop-5035'
> DCOPServer : slotTerminate() -> sending terminateKDE signal.
> klauncher: KLauncher::process ---> terminateKDE
> kdeinit: terminate KDE.
> kdeinit: Fatal IO error: client killed
> kdeinit: sending SIGHUP to children.
>
>
>
> (Submitted via bugs.kde.org)
>
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop.patch
Type: text/x-diff
Size: 738 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20020319/3983d7d0/attachment.bin>


More information about the KDevelop-devel mailing list