delete this dangerous in duchain? [was: Crash in duchaintest]

David nolden david.nolden.kdevelop at art-master.de
Mon Feb 2 20:53:52 UTC 2009


Am Montag 02 Februar 2009 18:46:15 schrieb Andreas Pakulat:
> I tried to debug this a bit and apart from QVector being hardly debuggable
> via msvc it seems that for some of the temporary contexts for templates
> there's simply no clearContextIndex called at all, hence they're still in
> that vector when the dynamic-data is deleted. But in fact the underlying
> contexts have already been deleted -> BOOM :)
>
> Is there a good way to print out what part of the text a context is for?
> All I could get at is the kte-range which is 45-62 for the first that
> crashes in the mentioned specializedTemplateTest.
>
> How do I found out why this context is not deleted, apparently its not a
> child anymore of any other context?
>
> Andreas
Check if ~CppDUContext is called. The instantiatons should have been deleted 
from there.






More information about the KDevelop-devel mailing list