Issue 120371
Summary clang frontend fail
Labels clang
Assignees
Reporter JeremieHuteau
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /usr/bin/clang++ -I/home/arche/ntfs/CS/chess/engine/src/engine -I/home/arche/ntfs/CS/chess/engine/external -I/home/arche/ntfs/CS/chess/engine/src/games/core -I/home/arche/ntfs/CS/chess/engine/src/games -I/home/arche/ntfs/CS/chess/engine/src/games/chess -I/home/arche/ntfs/CS/chess/engine/src -I/home/arche/ntfs/CS/chess/engine/src/common -g -Og -Wall -Wextra -Wconversion -Wpedantic -std=gnu++20 -MD -MT src/engine/CMakeFiles/engine_objects.dir/selfplay_data.cpp.o -MF CMakeFiles/engine_objects.dir/selfplay_data.cpp.o.d -o CMakeFiles/engine_objects.dir/selfplay_data.cpp.o -c /home/arche/ntfs/CS/chess/engine/src/engine/selfplay_data.cpp
1.	/home/arche/ntfs/CS/chess/engine/src/engine/graph.hpp:75:47: current parser token ';'
2.	/home/arche/ntfs/CS/chess/engine/src/engine/graph.hpp:10:1: parsing namespace 'my_engine'
3.	/home/arche/ntfs/CS/chess/engine/src/engine/graph.hpp:13:1: parsing struct/union/class body 'my_engine::Graph'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  libLLVM.so.18.1 0x00007f13c27c4d90 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 64
1  libLLVM.so.18.1      0x00007f13c27c226d llvm::sys::CleanupOnSignal(unsigned long) + 141
2  libLLVM.so.18.1 0x00007f13c26a88e9
3  libc.so.6            0x00007f13c1a4c1d0
4 libclang-cpp.so.18.1 0x00007f13cadf482c clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool) + 252
5  libclang-cpp.so.18.1 0x00007f13cb1a82a3 clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) + 1091
6 libclang-cpp.so.18.1 0x00007f13cb1aa390 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) + 3088
7 libclang-cpp.so.18.1 0x00007f13ca7c7546 clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject*) + 8182
8  libclang-cpp.so.18.1 0x00007f13ca7c8428 clang::Parser::ParseCXXClassMemberDeclarationWithPragmas(clang::AccessSpecifier&, clang::ParsedAttributes&, clang::TypeSpecifierType, clang::Decl*) + 1528
9 libclang-cpp.so.18.1 0x00007f13ca7c8933 clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, clang::SourceLocation, clang::ParsedAttributes&, unsigned int, clang::Decl*) + 1043
10 libclang-cpp.so.18.1 0x00007f13ca7ca9bb clang::Parser::ParseClassSpecifier(clang::tok::TokenKind, clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext, clang::ParsedAttributes&) + 5371
11 libclang-cpp.so.18.1 0x00007f13ca7cc11a clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*, clang::ImplicitTypenameContext) + 3226
12 libclang-cpp.so.18.1 0x00007f13ca867b01 clang::Parser::ParseSingleDeclarationAfterTemplate(clang::DeclaratorContext, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) + 945
13 libclang-cpp.so.18.1 0x00007f13ca868bea clang::Parser::ParseTemplateDeclarationOrSpecialization(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) + 1242
14 libclang-cpp.so.18.1 0x00007f13ca869156 clang::Parser::ParseDeclarationStartingWithTemplate(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) + 182
15 libclang-cpp.so.18.1 0x00007f13ca7dcfdb clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) + 667
16 libclang-cpp.so.18.1 0x00007f13ca86954b clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) + 763
17 libclang-cpp.so.18.1 0x00007f13ca7bb47f clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 527
18 libclang-cpp.so.18.1 0x00007f13ca7bc5f9 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) + 4185
19 libclang-cpp.so.18.1 0x00007f13ca7dd18c clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) + 1100
20 libclang-cpp.so.18.1 0x00007f13ca86954b clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) + 763
21 libclang-cpp.so.18.1 0x00007f13ca86a0eb clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) + 427
22 libclang-cpp.so.18.1 0x00007f13ca78d038 clang::ParseAST(clang::Sema&, bool, bool) + 632
23 libclang-cpp.so.18.1 0x00007f13cc258451 clang::FrontendAction::Execute() + 433
24 libclang-cpp.so.18.1 0x00007f13cc1f9097 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 439
25 libclang-cpp.so.18.1 0x00007f13cc2b07fd clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 445
26 clang++ 0x00005a1be51883a4 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 8900
27 clang++              0x00005a1be518c70a
28 libclang-cpp.so.18.1 0x00007f13cbf2e485
29 libLLVM.so.18.1 0x00007f13c26a8d3a llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 42
30 libclang-cpp.so.18.1 0x00007f13cbf30e16
31 libclang-cpp.so.18.1 0x00007f13cbeec039 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 169
32 libclang-cpp.so.18.1 0x00007f13cbeec43c clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const + 252
33 libclang-cpp.so.18.1 0x00007f13cbf0a864 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) + 388
34 clang++              0x00005a1be518f045 clang_main(int, char**, llvm::ToolContext const&) + 9669
35 clang++              0x00005a1be517ffd5 main + 133
36 libc.so.6            0x00007f13c1a34e08
37 libc.so.6 0x00007f13c1a34ecc __libc_start_main + 140
38 clang++ 0x00005a1be5180035 _start + 37
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/selfplay_data-4ebb42.cpp
clang++: note: diagnostic msg: /tmp/selfplay_data-4ebb42.sh
clang++: note: diagnostic msg: 

********************
[selfplay_data-4ebb42_sh.txt](https://github.com/user-attachments/files/18176582/selfplay_data-4ebb42_sh.txt)
[selfplay_data-4ebb42_cpp.txt](https://github.com/user-attachments/files/18176584/selfplay_data-4ebb42_cpp.txt)

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to