The crash was caused by clang_disposeString/getCString not checking whether the given CXString has NULL data members. Fixed with a workaround.
These files can contain flags that are passed to clang.