[cfe-dev] Is clang_reparseTranslationUnit reentrant?

jhanssen jhanssen at gmail.com
Sun Apr 28 03:20:50 PDT 2013


Hi,

I'm involved with a project that's using clang to index source files and I'm
currently having strange crashes in calls to clang_reparseTranslationUnit,
this seemingly happens both in Clang 3.2 and trunk as of r180688. The
program is running multiple threads, if I never do a reparse but always do a
full parse from source then I don't see any crashes. I've verified that no
other threads are touching the same unit when this happens. 

It's not trivial to reproduce, and I've only ever seen it when multiple
threads are calling into clang at the same time and the source code at the
same time is not compiling.

Are there any known problems with clang_reparseTranslationUnit and calling
that from multiple threads at the same time?

Thanks!




--
View this message in context: http://clang-developers.42468.n3.nabble.com/Is-clang-reparseTranslationUnit-reentrant-tp4031793.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list