clang_parseTranslationUnit在对CTAG使用llvm clang时崩溃

clang_parseTranslationUnit在对CTAG使用llvm clang时崩溃,clang,llvm,ctags,Clang,Llvm,Ctags,我正在考虑由Libblang生成seastar的CTAG, 所以,我写了一些演示崩溃,我需要帮助 对于seastar项目,我从 seastar安装程序:install-dependencies.sh;cmake-DCMAKE\u BUILD\u TYPE=Debug-DCMAKE\u EXPORT\u COMPILE\u COMMANDS=1 (geretting然后编译_commands.json) 对于铿锵的CTAG,我从(这是我当前的演示) 首先:yum安装clanglibs clang

我正在考虑由Libblang生成seastar的CTAG, 所以,我写了一些演示崩溃,我需要帮助

对于seastar项目,我从

seastar安装程序:install-dependencies.sh;cmake-DCMAKE\u BUILD\u TYPE=Debug-DCMAKE\u EXPORT\u COMPILE\u COMMANDS=1 (geretting然后编译_commands.json)

对于铿锵的CTAG,我从(这是我当前的演示) 首先:yum安装clanglibs clangdevel 只是:制造

然后最后运行演示: /垃圾箱/叮当声标签-d-s chfiles//当前chfiles被忽略,'-d'是compile_commands.json的dir

Starting program: /usr/bin/clang-tags -d . -s chfiles
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.30-5.fc31.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
db_path: .
src_files_list_file: chfiles
parse: (null)
[New Thread 0x7fffef179700 (LWP 1885)]

Thread 2 "clang-tags" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffef179700 (LWP 1885)]
0x00007ffff6814200 in clang::NestedNameSpecifier::getKind() const () from /lib64/libclangAST.so.9
Missing separate debuginfos, use: dnf debuginfo-install clang-libs-9.0.1-2.fc31.x86_64 libedit-3.1-30.20191211cvs.fc31.x86_64 libffi-3.1-23.fc31.x86_64 libgcc-9.2.1-1.fc31.x86_64 libstdc++-9.2.1-1.fc31.x86_64 llvm-libs-9.0.1-5.fc31.x86_64 ncurses-libs-6.1-12.20190803.fc31.x86_64 zlib-1.2.11-19.fc31.x86_64
(gdb) c
Continuing.
libclang: crash detected during parsing: {
  'source_filename' : '(null)'
  'command_line_args' : ['clang', '/usr/bin/c++', '--driver-mode=g++', '-DBOOST_TEST_DYN_LINK', '-DFMT_SHARED', '-DSEASTAR_API_LEVEL=2', '-DSEASTAR_DEBUG', '-DSEASTAR_DEBUG_SHARED_PTR', '-DSEASTAR_DEFAULT_ALLOCATOR', '-DSEASTAR_HAS_MEMBARRIER', '-DSEASTAR_HAVE_ASAN_FIBER_SUPPORT', '-DSEASTAR_HAVE_GCC6_CONCEPTS', '-DSEASTAR_HAVE_HWLOC', '-DSEASTAR_HAVE_LZ4_COMPRESS_DEFAULT', '-DSEASTAR_HAVE_NUMA', '-DSEASTAR_SHUFFLE_TASK_QUEUE', '-DSEASTAR_THREAD_STACK_GUARDS', '-DSEASTAR_TYPE_ERASE_MORE', '-I/mnt/hgfs/seastar/include', '-I/mnt/hgfs/seastar/gen/include', '-g', '-fvisibility=hidden', '-UNDEBUG', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-gz', '-std=gnu++17', '-U_FORTIFY_SOURCE'[Thread 0x7fffef179700 (LWP 1885) exited]
, '-Wno-maybe-uninitialized', '-Wno-error=unused-result', '-fsanitize=address', '-fsanitize=undefined', '-fno-sanitize=vptr', '-fconcepts', '-o', 'CMakeFiles/seastar_testing.dir/src/testing/entry_point.cc.o', '-c', '/mnt/hgfs/seastar/src/testing/entry_point.cc'],
  'unsaved_files' : [],
  'options' : 0,
}
clang-tags.c:376 err:1 
[Inferior 1 (process 1881) exited with code 01]
bt:
0x00007ffff6814200 in clang::NestedNameSpecifier::getKind() const () from /lib64/libclangAST.so.9
(gdb) bt
#0  0x00007ffff6814200 in clang::NestedNameSpecifier::getKind() const () from /lib64/libclangAST.so.9
#1  0x00007ffff6b6158d in clang::Sema::ShouldEnterDeclaratorScope(clang::Scope*, clang::CXXScopeSpec const&) () from /lib64/libclangSema.so.9
#2  0x00007fffefdba1c2 in clang::Parser::ParseDirectDeclarator(clang::Declarator&) () from /lib64/libclangParse.so.9
#3  0x00007fffefdaaa03 in clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void (clang::Parser::*)(clang::Declarator&)) () from /lib64/libclangParse.so.9
#4  0x00007fffefdbc22a in clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) ()
   from /lib64/libclangParse.so.9
#5  0x00007fffefe55c02 in clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) ()
   from /lib64/libclangParse.so.9
#6  0x00007fffefe561d7 in clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) ()
   from /lib64/libclangParse.so.9
....
我在使用python clang()时遇到的问题 我能做什么