Skip to content

Clang crashes when compiling FTXUI #56016

Closed
@AMS21

Description

@AMS21

Wanted to play around with FTXUI.
Sadly clang seems to crash while compiling.

Heres the Output:

/usr/bin/clang++ -DPHI_CONFIG_FPM_FAST -DPHI_CONFIG_NO_EXCEPTIONS -DCMAKE_INTDIR=\"Debug\" -I/mnt/data/dev/ConsoleTrader/external/FTXUI/src -isystem /mnt/data/dev/ConsoleTrader/external/FTXUI/include -g -flto=thin -Wall -Wextra -pedantic -Werror -Wmissing-declarations -Wdeprecated -Wshadow -fmacro-backtrace-limit=0 -fms-extensions -fdeclspec -fborland-extensions -fchar8_t -fcolor-diagnostics -fdiagnostics-color=always -g3 -ftrapv -ftrivial-auto-var-init=pattern -fcheck-new -ffast-math -fassociative-math -ffinite-math-only -ffp-contract=fast -ffp-exception-behavior=ignore -ffp-model=fast -fno-honor-infinities -fno-honor-nans -fno-math-errno -fno-rounding-math -fno-signed-zeros -fno-trapping-math -freciprocal-math -funsafe-math-optimizations -fsanitize=address,undefined, -fno-common -fno-inline -fno-inline-functions -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-sanitize-recover=all -fsanitize-address-use-after-return=always -fsanitize-address-use-after-scope -fsanitize-address-use-odr-indicator -fno-exceptions -std=c++2b -MD -MT external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o -MF external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o.d -o external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o -c /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/border.cpp
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang++ -DPHI_CONFIG_FPM_FAST -DPHI_CONFIG_NO_EXCEPTIONS -DCMAKE_INTDIR=\"Debug\" -I/mnt/data/dev/ConsoleTrader/external/FTXUI/src -isystem /mnt/data/dev/ConsoleTrader/external/FTXUI/include -g -flto=thin -Wall -Wextra -pedantic -Werror -Wmissing-declarations -Wdeprecated -Wshadow -fmacro-backtrace-limit=0 -fms-extensions -fdeclspec -fborland-extensions -fchar8_t -fcolor-diagnostics -fdiagnostics-color=always -g3 -ftrapv -ftrivial-auto-var-init=pattern -fcheck-new -ffast-math -fassociative-math -ffinite-math-only -ffp-contract=fast -ffp-exception-behavior=ignore -ffp-model=fast -fno-honor-infinities -fno-honor-nans -fno-math-errno -fno-rounding-math -fno-signed-zeros -fno-trapping-math -freciprocal-math -funsafe-math-optimizations -fsanitize=address,undefined, -fno-common -fno-inline -fno-inline-functions -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-sanitize-recover=all -fsanitize-address-use-after-return=always -fsanitize-address-use-after-scope -fsanitize-address-use-odr-indicator -fno-exceptions -std=c++2b -MD -MT external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o -MF external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o.d -o external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/border.cpp.o -c /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/border.cpp
1.      /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/border.cpp:25:2: current parser token ';'
2.      /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/border.cpp:14:1: parsing namespace 'ftxui'
 #0 0x00007fbf47f97fda (/usr/lib/libLLVM-13.so+0xb97fda)
 #1 0x00007fbf47f9565f llvm::sys::RunSignalHandlers() (/usr/lib/libLLVM-13.so+0xb9565f)
 #2 0x00007fbf47e990e9 (/usr/lib/libLLVM-13.so+0xa990e9)
 #3 0x00007fbf46c3e8e0 (/usr/lib/libc.so.6+0x3e8e0)
 #4 0x00007fbf4eb1ffc9 (/usr/lib/libclang-cpp.so.13+0xd1ffc9)
 #5 0x00007fbf4eb2126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
 #6 0x00007fbf4eb215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
 #7 0x00007fbf4eb070ff (/usr/lib/libclang-cpp.so.13+0xd070ff)
 #8 0x00007fbf4eb205a3 (/usr/lib/libclang-cpp.so.13+0xd205a3)
 #9 0x00007fbf4eb2126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
#10 0x00007fbf4eb215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
#11 0x00007fbf4eb0534c (/usr/lib/libclang-cpp.so.13+0xd0534c)
#12 0x00007fbf4eb070ff (/usr/lib/libclang-cpp.so.13+0xd070ff)
#13 0x00007fbf4eb205a3 (/usr/lib/libclang-cpp.so.13+0xd205a3)
#14 0x00007fbf4eb2126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
#15 0x00007fbf4eb215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
#16 0x00007fbf504ce13c (/usr/lib/libclang-cpp.so.13+0x26ce13c)
#17 0x00007fbf4eaf78fa (/usr/lib/libclang-cpp.so.13+0xcf78fa)
#18 0x00007fbf504ce070 (/usr/lib/libclang-cpp.so.13+0x26ce070)
#19 0x00007fbf4eb067a4 (/usr/lib/libclang-cpp.so.13+0xd067a4)
#20 0x00007fbf504ce13c (/usr/lib/libclang-cpp.so.13+0x26ce13c)
#21 0x00007fbf4eaf7964 (/usr/lib/libclang-cpp.so.13+0xcf7964)
#22 0x00007fbf504ce070 (/usr/lib/libclang-cpp.so.13+0x26ce070)
#23 0x00007fbf4eb067a4 (/usr/lib/libclang-cpp.so.13+0xd067a4)
#24 0x00007fbf4eb0534c (/usr/lib/libclang-cpp.so.13+0xd0534c)
#25 0x00007fbf4eb070ff (/usr/lib/libclang-cpp.so.13+0xd070ff)
#26 0x00007fbf4eb236c1 clang::Expr::EvaluateAsInitializer(clang::APValue&, clang::ASTContext const&, clang::VarDecl const*, llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&, bool) const (/usr/lib/libclang-cpp.so.13+0xd236c1)
#27 0x00007fbf4ea7405b clang::VarDecl::evaluateValueImpl(llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&, bool) const (/usr/lib/libclang-cpp.so.13+0xc7405b)
#28 0x00007fbf4ea744ad clang::VarDecl::checkForConstantInitialization(llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&) const (/usr/lib/libclang-cpp.so.13+0xc744ad)
#29 0x00007fbf4efe0273 clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) (/usr/lib/libclang-cpp.so.13+0x11e0273)
#30 0x00007fbf4efe14d1 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) (/usr/lib/libclang-cpp.so.13+0x11e14d1)
#31 0x00007fbf4e815cc8 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) (/usr/lib/libclang-cpp.so.13+0xa15cc8)
#32 0x00007fbf4e820981 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/usr/lib/libclang-cpp.so.13+0xa20981)
#33 0x00007fbf4e88ce7a (/usr/lib/libclang-cpp.so.13+0xa8ce7a)
#34 0x00007fbf4e8a32dd clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.13+0xaa32dd)
#35 0x00007fbf4e80e911 clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/usr/lib/libclang-cpp.so.13+0xa0e911)
#36 0x00007fbf4e80f441 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/usr/lib/libclang-cpp.so.13+0xa0f441)
#37 0x00007fbf4e82bf7b clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributesWithRange&, clang::SourceLocation*) (/usr/lib/libclang-cpp.so.13+0xa2bf7b)
#38 0x00007fbf4e8a2eeb clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.13+0xaa2eeb)
#39 0x00007fbf4e8a35f8 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (/usr/lib/libclang-cpp.so.13+0xaa35f8)
#40 0x00007fbf4e7ee139 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/libclang-cpp.so.13+0x9ee139)
#41 0x00007fbf4fd77f79 clang::FrontendAction::Execute() (/usr/lib/libclang-cpp.so.13+0x1f77f79)
#42 0x00007fbf4fd1e2cf clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/libclang-cpp.so.13+0x1f1e2cf)
#43 0x00007fbf4fdc35f0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/libclang-cpp.so.13+0x1fc35f0)
#44 0x0000564a358f484c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+++0x1684c)
#45 0x0000564a358f6c2d (/usr/bin/clang+++0x18c2d)
#46 0x00007fbf4fa87a99 (/usr/lib/libclang-cpp.so.13+0x1c87a99)
#47 0x00007fbf47e991b7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/libLLVM-13.so+0xa991b7)
#48 0x00007fbf4fa8e030 (/usr/lib/libclang-cpp.so.13+0x1c8e030)
#49 0x00007fbf4faa6694 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/libclang-cpp.so.13+0x1ca6694)
#50 0x00007fbf4faa6ac9 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/libclang-cpp.so.13+0x1ca6ac9)
#51 0x00007fbf4faa9a42 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/libclang-cpp.so.13+0x1ca9a42)
#52 0x0000564a358ec61b main (/usr/bin/clang+++0xe61b)
#53 0x00007fbf46c29290 (/usr/lib/libc.so.6+0x29290)
#54 0x00007fbf46c2934a __libc_start_main (/usr/lib/libc.so.6+0x2934a)
#55 0x0000564a358ed485 _start (/usr/bin/clang+++0xf485)
clang-13: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 13.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-13: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/border-79ac80.cpp
clang-13: note: diagnostic msg: /tmp/border-79ac80.sh
clang-13: note: diagnostic msg: 

********************
/usr/bin/clang++ -DPHI_CONFIG_FPM_FAST -DPHI_CONFIG_NO_EXCEPTIONS -DCMAKE_INTDIR=\"Debug\" -I/mnt/data/dev/ConsoleTrader/external/FTXUI/src -isystem /mnt/data/dev/ConsoleTrader/external/FTXUI/include -g -flto=thin -Wall -Wextra -pedantic -Werror -Wmissing-declarations -Wdeprecated -Wshadow -fmacro-backtrace-limit=0 -fms-extensions -fdeclspec -fborland-extensions -fchar8_t -fcolor-diagnostics -fdiagnostics-color=always -g3 -ftrapv -ftrivial-auto-var-init=pattern -fcheck-new -ffast-math -fassociative-math -ffinite-math-only -ffp-contract=fast -ffp-exception-behavior=ignore -ffp-model=fast -fno-honor-infinities -fno-honor-nans -fno-math-errno -fno-rounding-math -fno-signed-zeros -fno-trapping-math -freciprocal-math -funsafe-math-optimizations -fsanitize=address,undefined, -fno-common -fno-inline -fno-inline-functions -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-sanitize-recover=all -fsanitize-address-use-after-return=always -fsanitize-address-use-after-scope -fsanitize-address-use-odr-indicator -fno-exceptions -std=c++2b -MD -MT external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o -MF external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o.d -o external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o -c /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/table.cpp
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang++ -DPHI_CONFIG_FPM_FAST -DPHI_CONFIG_NO_EXCEPTIONS -DCMAKE_INTDIR=\"Debug\" -I/mnt/data/dev/ConsoleTrader/external/FTXUI/src -isystem /mnt/data/dev/ConsoleTrader/external/FTXUI/include -g -flto=thin -Wall -Wextra -pedantic -Werror -Wmissing-declarations -Wdeprecated -Wshadow -fmacro-backtrace-limit=0 -fms-extensions -fdeclspec -fborland-extensions -fchar8_t -fcolor-diagnostics -fdiagnostics-color=always -g3 -ftrapv -ftrivial-auto-var-init=pattern -fcheck-new -ffast-math -fassociative-math -ffinite-math-only -ffp-contract=fast -ffp-exception-behavior=ignore -ffp-model=fast -fno-honor-infinities -fno-honor-nans -fno-math-errno -fno-rounding-math -fno-signed-zeros -fno-trapping-math -freciprocal-math -funsafe-math-optimizations -fsanitize=address,undefined, -fno-common -fno-inline -fno-inline-functions -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-sanitize-recover=all -fsanitize-address-use-after-return=always -fsanitize-address-use-after-scope -fsanitize-address-use-odr-indicator -fno-exceptions -std=c++2b -MD -MT external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o -MF external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o.d -o external/FTXUI/CMakeFiles/dom.dir/Debug/src/ftxui/dom/table.cpp.o -c /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/table.cpp
1.      /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/table.cpp:23:2: current parser token ';'
2.      /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/table.cpp:9:1: parsing namespace 'ftxui'
3.      /mnt/data/dev/ConsoleTrader/external/FTXUI/src/ftxui/dom/table.cpp:10:1: parsing namespace 'ftxui::(anonymous)'
 #0 0x00007fd524b97fda (/usr/lib/libLLVM-13.so+0xb97fda)
 #1 0x00007fd524b9565f llvm::sys::RunSignalHandlers() (/usr/lib/libLLVM-13.so+0xb9565f)
 #2 0x00007fd524a990e9 (/usr/lib/libLLVM-13.so+0xa990e9)
 #3 0x00007fd52383e8e0 (/usr/lib/libc.so.6+0x3e8e0)
 #4 0x00007fd52b71ffc9 (/usr/lib/libclang-cpp.so.13+0xd1ffc9)
 #5 0x00007fd52b72126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
 #6 0x00007fd52b7215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
 #7 0x00007fd52b7070ff (/usr/lib/libclang-cpp.so.13+0xd070ff)
 #8 0x00007fd52b7205a3 (/usr/lib/libclang-cpp.so.13+0xd205a3)
 #9 0x00007fd52b72126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
#10 0x00007fd52b7215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
#11 0x00007fd52b70534c (/usr/lib/libclang-cpp.so.13+0xd0534c)
#12 0x00007fd52b7070ff (/usr/lib/libclang-cpp.so.13+0xd070ff)
#13 0x00007fd52b7205a3 (/usr/lib/libclang-cpp.so.13+0xd205a3)
#14 0x00007fd52b72126f (/usr/lib/libclang-cpp.so.13+0xd2126f)
#15 0x00007fd52b7215c4 (/usr/lib/libclang-cpp.so.13+0xd215c4)
#16 0x00007fd52d0ce13c (/usr/lib/libclang-cpp.so.13+0x26ce13c)
#17 0x00007fd52b6f78fa (/usr/lib/libclang-cpp.so.13+0xcf78fa)
#18 0x00007fd52d0ce070 (/usr/lib/libclang-cpp.so.13+0x26ce070)
#19 0x00007fd52b6f7964 (/usr/lib/libclang-cpp.so.13+0xcf7964)
#20 0x00007fd52b739d0a (/usr/lib/libclang-cpp.so.13+0xd39d0a)
#21 0x00007fd52b707010 (/usr/lib/libclang-cpp.so.13+0xd07010)
#22 0x00007fd52b7236c1 clang::Expr::EvaluateAsInitializer(clang::APValue&, clang::ASTContext const&, clang::VarDecl const*, llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&, bool) const (/usr/lib/libclang-cpp.so.13+0xd236c1)
#23 0x00007fd52b67405b clang::VarDecl::evaluateValueImpl(llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&, bool) const (/usr/lib/libclang-cpp.so.13+0xc7405b)
#24 0x00007fd52b6744ad clang::VarDecl::checkForConstantInitialization(llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&) const (/usr/lib/libclang-cpp.so.13+0xc744ad)
#25 0x00007fd52bbe0273 clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) (/usr/lib/libclang-cpp.so.13+0x11e0273)
#26 0x00007fd52bbe14d1 clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) (/usr/lib/libclang-cpp.so.13+0x11e14d1)
#27 0x00007fd52b415cc8 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) (/usr/lib/libclang-cpp.so.13+0xa15cc8)
#28 0x00007fd52b420981 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/usr/lib/libclang-cpp.so.13+0xa20981)
#29 0x00007fd52b48ce7a (/usr/lib/libclang-cpp.so.13+0xa8ce7a)
#30 0x00007fd52b4a32dd clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.13+0xaa32dd)
#31 0x00007fd52b40e911 clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/usr/lib/libclang-cpp.so.13+0xa0e911)
#32 0x00007fd52b40f441 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/usr/lib/libclang-cpp.so.13+0xa0f441)
#33 0x00007fd52b42bf7b clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributesWithRange&, clang::SourceLocation*) (/usr/lib/libclang-cpp.so.13+0xa2bf7b)
#34 0x00007fd52b4a2eeb clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.13+0xaa2eeb)
#35 0x00007fd52b40e911 clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/usr/lib/libclang-cpp.so.13+0xa0e911)
#36 0x00007fd52b40f441 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) (/usr/lib/libclang-cpp.so.13+0xa0f441)
#37 0x00007fd52b42bf7b clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributesWithRange&, clang::SourceLocation*) (/usr/lib/libclang-cpp.so.13+0xa2bf7b)
#38 0x00007fd52b4a2eeb clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/lib/libclang-cpp.so.13+0xaa2eeb)
#39 0x00007fd52b4a35f8 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (/usr/lib/libclang-cpp.so.13+0xaa35f8)
#40 0x00007fd52b3ee139 clang::ParseAST(clang::Sema&, bool, bool) (/usr/lib/libclang-cpp.so.13+0x9ee139)
#41 0x00007fd52c977f79 clang::FrontendAction::Execute() (/usr/lib/libclang-cpp.so.13+0x1f77f79)
#42 0x00007fd52c91e2cf clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/lib/libclang-cpp.so.13+0x1f1e2cf)
#43 0x00007fd52c9c35f0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/lib/libclang-cpp.so.13+0x1fc35f0)
#44 0x000055c729de484c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+++0x1684c)
#45 0x000055c729de6c2d (/usr/bin/clang+++0x18c2d)
#46 0x00007fd52c687a99 (/usr/lib/libclang-cpp.so.13+0x1c87a99)
#47 0x00007fd524a991b7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/lib/libLLVM-13.so+0xa991b7)
#48 0x00007fd52c68e030 (/usr/lib/libclang-cpp.so.13+0x1c8e030)
#49 0x00007fd52c6a6694 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/lib/libclang-cpp.so.13+0x1ca6694)
#50 0x00007fd52c6a6ac9 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/lib/libclang-cpp.so.13+0x1ca6ac9)
#51 0x00007fd52c6a9a42 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/lib/libclang-cpp.so.13+0x1ca9a42)
#52 0x000055c729ddc61b main (/usr/bin/clang+++0xe61b)
#53 0x00007fd523829290 (/usr/lib/libc.so.6+0x29290)
#54 0x00007fd52382934a __libc_start_main (/usr/lib/libc.so.6+0x2934a)
#55 0x000055c729ddd485 _start (/usr/bin/clang+++0xf485)
clang-13: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 13.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-13: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/table-6f2f4b.cpp
clang-13: note: diagnostic msg: /tmp/table-6f2f4b.sh
clang-13: note: diagnostic msg: 

********************

Compiler Version:

$ clang --version
clang version 13.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Crash reproduce file generated by clang:
Archive.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]libstdc++GNU libstdc++ C++ standard libraryquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions