holtgrewe/linty — Issue #1: Problem with dangling pointers to TranslationUnit in clang.cindex.
Author: holtgrewe
Created: 2011-12-29 17:21:01+00:00
State: open

There are problems with dangling pointers to translation unit objects that have already been freed.
Apparently, the garbage collector decides that the clang.cindex translation unit is no longer required and frees it (correctly through the dispose calls).

However, in linty, tokens and nodes are sometimes passed to the logging facilities and if logging is deferred, as is the case with nosetests log capturing, this causes incorrect memory accesses and crashes.

We need to investigate whether this already happened in the "core" cindex module or my Token related changes introduce this problem.