[PATCH] shared dpointer for duchain

David Nolden zwabel at googlemail.com
Sun Dec 16 17:49:47 UTC 2007


On Saturday 15 December 2007 21:55:11 Andreas Pakulat wrote:
> Hi,
>
> apparently our list doesn't like mails larger than 20K (the first
> version of this had an 18K attachment), so this time with a link instead
> of attached patch.
>
> I've started on the shared-dpointer stuff and so far made Declaration,
> DUChainBase and FunctionDeclaration. It compiles and kdevelop still
> starts. Unfortunately I hit a crash inside ~DocumentRangeObject. Looking
> at some debug output I've inserted locally it seems like there exist two
> document range objects that own the same range (pointer-wise) and when
> the second DocumentRangeObject gets deleted
> KTextEditor::Range::isSmartRange simply crashes.
>
> I don't see any changes from me that would create a DUChain item with
> the same range as an existing item, but I may be overlooking something.
> Thus I post the patches here, so somebody with more inside into this
> stuff can have a look and give me a hint or two.
>
> The patch can be found at:
> http://www.apaku.de/vardata/kdevplatform_shared_dpointer.diff
>
> Andreas

I haven't looked at the patch yet(had no time), but to me this clearly sounds 
like a problem in the clone() implementation.

greetings, David




More information about the KDevelop-devel mailing list