Skip to content

Instantly share code, notes, and snippets.

@christianparpart
Created February 1, 2023 19:20
Show Gist options
  • Save christianparpart/12047ae6111fd1b0c187e8489c453194 to your computer and use it in GitHub Desktop.
Save christianparpart/12047ae6111fd1b0c187e8489c453194 to your computer and use it in GitHub Desktop.
I'm not giving up on compiler oopses :)
0. Program arguments: /home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang++ -Og -g -fdiagnostics-color=always -Qunused-arguments -Wall -Wduplicate-enum -Wextra -Wextra-semi -Wfinal-dtor-non-final-class -Wimplicit-fallthrough -Wmissing-declarations -Wnewline-eof -Wno-unknown-attributes -Wno-unknown-pragmas -Wnull-dereference -Wpessimizing-move -Wredundant-move -Wsuggest-destructor-override -pedantic -Wno-error=c++20-extensions -Wno-c++20-extensions -Wno-error=missing-declarations -Wno-missing-declarations -march=armv8-a+fp+simd+crypto+crc -std=c++20 -Werror -DBOOST_STACKTRACE_USE_ADDR2LINE=1 -DCONTOUR_STACKTRACE_ADDR2LINE=1 -DFMT_HEADER_ONLY=1 -DHAVE_BACKTRACE -DHAVE_BACKTRACE_SYMBOLS -DHAVE_CXXABI_H -DHAVE_DLADDR -DHAVE_DLFCN_H -DHAVE_DLSYM -DHAVE_EXECINFO_H -DHAVE_SYS_SELECT_H -DHAVE_UNWIND_H -DLIBTERMINAL_LOG_TRACE=1 -DLIBTERMINAL_NAME=\"contour\" -DLIBTERMINAL_VERSION_MAJOR=0 -DLIBTERMINAL_VERSION_MINOR=3 -DLIBTERMINAL_VERSION_PATCH=11 -DLIBTERMINAL_VERSION_STRING=\"0.3.11-clang-tidy-ccee277b\" -D_GLIBCXX_ASSERTIONS -I/home/christianparpart/projects/contour/src/vtbackend/.. -I/home/christianparpart/projects/contour/src/crispy/.. -I/home/christianparpart/projects/contour/_deps/sources/fmt-9.1.0/include -I/home/christianparpart/projects/contour/_deps/sources/libunicode-f29b88dd376a19bb203eb772a7b61a5c03f3b8c1/src/unicode/.. -I/home/christianparpart/projects/contour/src -isystem /home/christianparpart/projects/contour/_deps/sources/GSL-3.1.0/include -c -MD -MT src/vtbackend/CMakeFiles/terminal.dir/ViCommands.cpp.o -MF src/vtbackend/CMakeFiles/terminal.dir/ViCommands.cpp.o.d -fcolor-diagnostics -o src/vtbackend/CMakeFiles/terminal.dir/ViCommands.cpp.o /home/christianparpart/projects/contour/src/vtbackend/ViCommands.cpp
1. <unknown> parser at unknown location
#0 0x0000aaaab3b25168 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x2c75168)
#1 0x0000aaaab3b232f4 llvm::sys::RunSignalHandlers() (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x2c732f4)
#2 0x0000aaaab3b245b0 llvm::sys::CleanupOnSignal(unsigned long) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x2c745b0)
#3 0x0000aaaab3a9d22c CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x0000ffff80a157fc (linux-vdso.so.1+0x7fc)
#5 0x0000aaaab647d468 clang::Lexer::SkipWhitespace(clang::Token&, char const*, bool&) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x55cd468)
#6 0x0000aaaab6481194 clang::Lexer::LexTokenInternal(clang::Token&, bool) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x55d1194)
#7 0x0000aaaab64d9f8c clang::Preprocessor::Lex(clang::Token&) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x5629f8c)
#8 0x0000aaaab5526824 clang::Parser::ConsumeAnyToken(bool) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x4676824)
#9 0x0000aaaab552793c clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x467793c)
#10 0x0000aaaab55279b0 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46779b0)
#11 0x0000aaaab55279b0 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46779b0)
#12 0x0000aaaab55279b0 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46779b0)
#13 0x0000aaaab55279b0 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46779b0)
#14 0x0000aaaab55279b0 clang::Parser::SkipUntil(llvm::ArrayRef<clang::tok::TokenKind>, clang::Parser::SkipUntilFlags) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46779b0)
#15 0x0000aaaab5547280 clang::Parser::SkipMalformedDecl() (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x4697280)
#16 0x0000aaaab55466d4 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x46966d4)
#17 0x0000aaaab552b894 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x467b894)
#18 0x0000aaaab552b320 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x467b320)
#19 0x0000aaaab552a914 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x467a914)
#20 0x0000aaaab5528f18 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x4678f18)
#21 0x0000aaaab5525518 clang::ParseAST(clang::Sema&, bool, bool) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x4675518)
#22 0x0000aaaab42cd0c4 clang::FrontendAction::Execute() (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x341d0c4)
#23 0x0000aaaab425ecd0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x33aecd0)
#24 0x0000aaaab437caa8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x34ccaa8)
#25 0x0000aaaab2048350 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x1198350)
#26 0x0000aaaab2046b24 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#27 0x0000aaaab4145768 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::$_1>(long) Job.cpp:0:0
#28 0x0000aaaab3a9cf1c llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x2becf1c)
#29 0x0000aaaab41451d8 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x32951d8)
#30 0x0000aaaab4117d70 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x3267d70)
#31 0x0000aaaab4117f80 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x3267f80)
#32 0x0000aaaab412b6f4 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x327b6f4)
#33 0x0000aaaab2046230 clang_main(int, char**) (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x1196230)
#34 0x0000ffff8045b588 __libc_start_call_main (/lib64/libc.so.6+0x2b588)
#35 0x0000ffff8045b660 __libc_start_main@GLIBC_2.17 (/lib64/libc.so.6+0x2b660)
#36 0x0000aaaab20436a8 _start (/home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin/clang+++0x11936a8)
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 15.0.2 (http://git.linaro.org/toolchain/jenkins-scripts.git 534705216d7a795934be82cc0e38b9e26a3856dc)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/christianparpart/usr/opt/clang+llvm-15.0.2-aarch64-linux-gnu/bin
clang-15: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /tmp/ViCommands-5182ca.cpp
clang-15: note: diagnostic msg: /tmp/ViCommands-5182ca.sh
clang-15: note: diagnostic msg:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment