Open zybreak opened 1 year ago
@llvm/issue-subscribers-clang-modules
@zybreak would you be able to provide the source code that causes the crash?
Not in its entirety, but after trial and error i did come to understand the line that caused the segfault. It was an import of a header file.
import "some-header.h";
clang 16.0.6 command
/usr/bin/clang-scan-deps
segfaults with the following stack trace`clang::Lexer::LexDependencyDirectiveToken(clang::Token&) 0x00007f3c7ec90e54 clang::Preprocessor::Lex(clang::Token&) 0x00007f3c7ece185f clang::Preprocessor::DiscardUntilEndOfDirective() 0x00007f3c7eca54e7 clang::Preprocessor::CheckEndOfDirective(char const, bool) 0x00007f3c7ecb4e21 clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::detail::SearchDirIteratorImpl, clang::FileEntry const ) 0x00007f3c7ecc8a0f
clang::Preprocessor::HandleDirective(clang::Token&) 0x00007f3c7ecc9759
clang::Lexer::LexDependencyDirectiveToken(clang::Token&) 0x00007f3c7ec90ffa
clang::Preprocessor::Lex(clang::Token&) 0x00007f3c7ece185f
clang::Preprocessor::CheckEndOfDirective(char const, bool) 0x00007f3c7ecb4c91
clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::detail::SearchDirIteratorImpl, clang::FileEntry const ) 0x00007f3c7ecc8a0f
clang::Preprocessor::HandleDirective(clang::Token&) 0x00007f3c7ecc9759
clang::Lexer::LexDependencyDirectiveToken(clang::Token&) 0x00007f3c7ec90ffa
clang::Preprocessor::Lex(clang::Token&) 0x00007f3c7ece185f
clang::Preprocessor::CheckEndOfDirective(char const, bool) 0x00007f3c7ecb4c91
clang::Preprocessor::HandleIncludeDirective(clang::SourceLocation, clang::Token&, clang::detail::SearchDirIteratorImpl, clang::FileEntry const ) 0x00007f3c7ecc8a0f
clang::Preprocessor::HandleDirective(clang::Token&) 0x00007f3c7ecc9759
clang::Lexer::LexDependencyDirectiveToken(clang::Token&) 0x00007f3c7ec90ffa
clang::Preprocessor::Lex(clang::Token&) 0x00007f3c7ece185f
clang::Preprocessor::CollectPpImportSuffix(llvm::SmallVectorImpl&) 0x00007f3c7ece6cce
clang::Preprocessor::LexAfterModuleImport(clang::Token&) 0x00007f3c7ece72d6
clang::Preprocessor::Lex(clang::Token&) 0x00007f3c7ece1a0b
clang::ReadPCHAndPreprocessAction::ExecuteAction() 0x00007f3c8051f0fb
clang::FrontendAction::Execute() 0x00007f3c8051e7c9
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) 0x00007f3c804c0d2f