Unable to track down a duchain bug

David Nolden zwabel at googlemail.com
Mon Dec 10 22:51:03 UTC 2007


On Monday 10 December 2007 06:14:22 Hamish Rodda wrote:
> Hi,
>
> Quite a while ago David added an assert in the c++ duchain context builder
> that the top level context should not have a parent smart range.
>
> This is quite easily triggerable - just open a project, open any cpp file
> in it (I use kdevplatform and plugins/classmodel.cpp), wait for it to
> parse, then open the corresponding header, and start editing - crash.
>
> I have so far been unable to track down where this occurs.  I attach my
> patches which add debug asserts and smart range watchers to try to find out
> the root cause - so far, all i can see is that top level contexts go into
> the chain ok (probably not as smart ranges), then come out with a spurious
> parent in their smart range.
>
> I guess this may be due to some smart range conversion code (I still think
> it's a mistake to have it in more than one location), but i haven't found
> it yet.  (Note to self: maybe I should review this code.)
>
> If anyone is interested in working on this problem, I attach my debug
> patches + class (copy to platform/editor, platform/languages/duchain, and
> kdevelop/language/cpp)
>
> Cheers,
> Hamish.

The problem is that I simply cannot reproduce this, so I fear I cannot help on 
this :(

Maybe you've got some patches applied you forgot about? Maybe even to 
kdelibs/kate?

greetings, David




More information about the KDevelop-devel mailing list