bindgen icon indicating copy to clipboard operation
bindgen copied to clipboard

Crash in clang destructor

Open docelic opened this issue 5 years ago • 0 comments

@@ -100,6 +100,9 @@ void BindgenASTConsumer::serializeAndOutput() {

        stream << "macros" << JsonStream::Separator << this->m_macros;  // "macros": [ ... ]
        stream << JsonStream::ObjectEnd; // }
+
+       // FIXME: Currently the process crashes during clang's Parser destructor. This is a workaround.
+       exit(0);
 }

docelic avatar May 12 '20 11:05 docelic