Issue 52812
Summary ICE during Firefox compilation on Arch Linux
Labels new issue
Assignees
Reporter parcha
    Consistently get this and sibling ICEs during attempts to compile Firefox on Arch Linux.

```
16:14.22 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
16:14.22 Stack dump:
16:14.22 0.     Program arguments: /usr/bin/clang++ -std=gnu++17 -o nsNativeThemeGTK.o -c -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/stl_wrappers -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/system_wrappers -include /tmp/makepkg/firefox/src/firefox-95.0.2/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fstack-clash-protection -DNDEBUG=1 -DTRIMMED=1 -DOS_POSIX=1 -DOS_LINUX=1 -DCAIRO_GFX -DMOZ_APP_NAME=\"firefox\" -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -I/tmp/makepkg/firefox/src/firefox-95.0.2/widget/gtk -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/widget/gtk -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/ipc/ipdl/_ipdlhead
[nsNativeThemeGTK-bb97a9.sh.txt](https://github.com/llvm/llvm-project/files/7748651/nsNativeThemeGTK-bb97a9.sh.txt)
[nsNativeThemeGTK-bb97a9.sh.txt](https://github.com/llvm/llvm-project/files/7748652/nsNativeThemeGTK-bb97a9.sh.txt)
ers -I/tmp/makepkg/firefox/src/firefox-95.0.2/ipc/chromium/src -I/tmp/makepkg/firefox/src/firefox-95.0.2/layout/base -I/tmp/makepkg/firefox/src/firefox-95.0.2/layout/forms -I/tmp/makepkg/firefox/src/firefox-95.0.2/layout/generic -I/tmp/makepkg/firefox/src/firefox-95.0.2/layout/xul -I/tmp/makepkg/firefox/src/firefox-95.0.2/other-licenses/atk-1.0 -I/tmp/makepkg/firefox/src/firefox-95.0.2/third_party/cups/include -I/tmp/makepkg/firefox/src/firefox-95.0.2/widget -I/tmp/makepkg/firefox/src/firefox-95.0.2/widget/headless -I/tmp/makepkg/firefox/src/firefox-95.0.2/widget/x11 -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/nspr -I/tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/include/nss -DMOZILLA_CLIENT -include /tmp/makepkg/firefox/src/firefox-95.0.2/obj/mozilla-config.h -Qunused-arguments -Wno-error -Wno-error=all -UDEBUG -DNDEBUG -D_FORTIFY_SOURCE=2 -Qunused-arguments -Wall -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith -Wshadow-field-in-constructor-modified -Wshadow-uncaptured-local -Wsign-compare -Wtype-limits -Wno-error=tautological-type-limit-compare -Wunreachable-code -Wunreachable-code-return -Wno-invalid-offsetof -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-zero-conversion -Wloop-analysis -Wno-range-loop-analysis -Wc++2a-compat -Wcomma -Wenum-compare-conditional -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=backend-plugin -Wno-error=free-nonheap-object -Wno-error=return-std-move -Wno-error=atomic-alignment -Wno-error=deprecated-copy -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-psabi -Wno-unknown-warning-option -fno-sized-deallocation -fno-aligned-new -mtune=native -march=native -Wno-error -Wno-error=all -UDEBUG -DNDEBUG -D_FORTIFY_SOURCE=2 -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fno-plt -fvectorize -fjump-tables -flto=thin -funroll-loops -freroll-loops -mrelax-all -fstack-clash-protection -fstack-protector-strong -fcf-protection=full -fvisibility=hidden -fstrict-vtable-pointers -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -O3 -fomit-frame-pointer -funwind-tables -I/tmp/makepkg/firefox/src/firefox-95.0.2/widget/gtk/compat-gtk3 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0/unix-print -pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wno-error=shadow -Werror=switch -fexperimental-new-pass-manager -DNS_FREE_PERMANENT_DATA=1 -fprofile-generate -MD -MP -MF .deps/nsNativeThemeGTK.o.pp -fcolor-diagnostics /tmp/makepkg/firefox/src/firefox-95.0.2/widget/gtk/nsNativeThemeGTK.cpp
16:14.22 1.     /tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/include/nsComponentManagerUtils.h:139:29: current parser token 'NS_GET_TEMPLATE_IID'
16:14.22 2.     /tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/include/nsComponentManagerUtils.h:135:68: parsing function body 'CallCreateInstance'
16:14.22 3.     /tmp/makepkg/firefox/src/firefox-95.0.2/obj/dist/include/nsComponentManagerUtils.h:135:68: in compound statement ('{}')
16:14.34  #0 0x0000753382451c93 (/usr/bin/../lib/libLLVM-13.so+0xba2c93)
16:14.34  #1 0x000075338244f994 llvm::sys::CleanupOnSignal(unsigned long) (/usr/bin/../lib/libLLVM-13.so+0xba0994)
16:14.34  #2 0x00007533823557b9 (/usr/bin/../lib/libLLVM-13.so+0xaa67b9)
16:14.34  #3 0x000075338148d460 __restore_rt sigaction.c:0:0
16:14.34  #4 0x0000753388cc93e4 clang::TokenLexer::ExpandFunctionArguments() (/usr/bin/../lib/libclang-cpp.so.13+0xbec3e4)
16:14.35  #5 0x0000753388cca4b8 clang::TokenLexer::Init(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/bin/../lib/libclang-cpp.so.13+0xbed4b8)
16:14.35  #6 0x0000753388c97963 clang::Preprocessor::EnterMacro(clang::Token&, clang::SourceLocation, clang::MacroInfo*, clang::MacroArgs*) (/usr/bin/../lib/libclang-cpp.so.13+0xbba963)
16:14.35  #7 0x0000753388ca6e17 clang::Preprocessor::H
[nsNativeThemeGTK-bb97a9.cpp.xz.txt](https://github.com/llvm/llvm-project/files/7748654/nsNativeThemeGTK-bb97a9.cpp.xz.txt)
andleMacroExpandedIdentifier(clang::Token&, clang::MacroDefinition const&) (/usr/bin/../lib/libclang-cpp.so.13+0xbc9e17)
16:14.35  #8 0x0000753388cc0554 clang::Preprocessor::HandleIdentifier(clang::Token&) (/usr/bin/../lib/libclang-cpp.so.13+0xbe3554)
16:14.35  #9 0x0000753388c491a1 clang::Lexer::LexIdentifier(clang::Token&, char const*) (/usr/bin/../lib/libclang-cpp.so.13+0xb6c1a1)
16:14.35 #10 0x0000753388c4b32b clang::Lexer::LexTokenInternal(clang::Token&, bool) (/usr/bin/../lib/libclang-cpp.so.13+0xb6e32b)
16:14.35 #11 0x0000753388cc3630 clang::Preprocessor::Lex(clang::Token&) (/usr/bin/../lib/libclang-cpp.so.13+0xbe6630)
16:14.35 #12 0x0000753388d1cb9c clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&, llvm::SmallVectorImpl<clang::SourceLocation>&, llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.13+0xc3fb9c)
16:14.35 #13 0x0000753388d21649 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) (/usr/bin/../lib/libclang-cpp.so.13+0xc44649)
16:14.38 #14 0x0000753388d19c69 clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*) (/usr/bin/../lib/libclang-cpp.so.13+0xc3cc69)
16:14.38 #15 0x0000753388d1c63a clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, clang::Parser::TypeCastState, bool, bool*) (/usr/bin/../lib/libclang-cpp.so.13+0xc3f63a)
16:14.38 #16 0x0000753388d1c849 clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) (/usr/bin/../lib/libclang-cpp.so.13+0xc3f849)
16:14.38 #17 0x0000753388d20369 clang::Parser::ParseExpression(clang::Parser::TypeCastState) (/usr/bin/../lib/libclang-cpp.so.13+0xc43369)
16:14.38 #18 0x0000753388d7f721 clang::Parser::ParseReturnStatement() (/usr/bin/../lib/libclang-cpp.so.13+0xca2721)
16:14.38 #19 0x0000753388d81d7c clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributesWithRange&) (/usr/bin/../lib/libclang-cpp.so.13+0xca4d7c)
16:14.38 #20 0x0000753388d82a96 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/bin/../lib/libclang-cpp.so.13+0xca5a96)
16:14.38 #21 0x0000753388d8380a clang::Parser::ParseCompoundStatementBody(bool) (/usr/bin/../lib/libclang-cpp.so.13+0xca680a)
16:14.38 #22 0x0000753388d85a9b clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/bin/../lib/libclang-cpp.so.13+0xca8a9b)
16:14.39 #23 0x0000753388db8c2d clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/usr/bin/../lib/libclang-cpp.so.13+0xcdbc2d)
16:14.40 #24 0x0000753388da135a clang::Parser::ParseSingleDeclarationAfterTemplate(clang::DeclaratorContext, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/bin/../lib/libclang-cpp.so.13+0xcc435a)
16:14.40 #25 0x0000753388da7f47 clang::Parser::ParseTemplateDeclarationOrSpecialization(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/bin/../lib/libclang-cpp.so.13+0xccaf47)
16:14.40 #26 0x0000753388da81db clang::Parser::ParseDeclarationStartingWithTemplate(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::AccessSpecifier) (/usr/bin/../lib/libclang-cpp.so.13+0xccb1db)
16:14.40 #27 0x0000753388cf5905 clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributesWithRange&, clang::SourceLocation*) (/usr/bin/../lib/libclang-cpp.so.13+0xc18905)
16:14.40 #28 0x0000753388dbaa55 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/usr/bin/../lib/libclang-cpp.so.13+0xcdda55)
16:14.40 #29 0x0000753388dbbf4a clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool) (/usr/bin/../lib/libclang-cpp.so.13+0xcdef4a)
16:14.40 #30 0x0000753388ccac22 clang::ParseAST(clang::Sema&, bool, bool) (/usr/bin/../lib/libclang-cpp.so.13+0xbedc22)
16:14.40 #31 0x000075338a870899 clang::FrontendAction::Execute() (/usr/bin/../lib/libclang-cpp.so.13+0x2793899)
16:14.41 #32 0x000075338a7fa9ec clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/bin/../lib/libclang-cpp.so.13+0x271d9ec)
16:14.41 #33 0x000075338a8f0c99 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/bin/../lib/libclang-cpp.so.13+0x2813c99)
16:14.41 #34 0x0000566524a058e9 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+++0x128e9)
16:14.41 #35 0x0000566524a02cf9 (/usr/bin/clang+++0xfcf9)
16:14.41 #36 0x000075338a4b5d75 (/usr/bin/../lib/libclang-cpp.so.13+0x23d8d75)
16:14.41 #37 0x00007533823558c3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/bin/../lib/libLLVM-13.so+0xaa68c3)
16:14.42 #38 0x000075338a4b6120 (/usr/bin/../lib/libclang-cpp.so.13+0x23d9120)
16:14.43 #39 0x000075338a488b68 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/bin/../lib/libclang-cpp.so.13+0x23abb68)
16:14.43 #40 0x000075338a489609 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/bin/../lib/libclang-cpp.so.13+0x23ac609)
16:14.43 #41 0x000075338a49972a clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/bin/../lib/libclang-cpp.so.13+0x23bc72a)
16:14.43 #42 0x0000566524a00a4f main (/usr/bin/clang+++0xda4f)
16:14.43 #43 0x00007533814a4706 __libc_start_main (/usr/bin/../lib/libc.so.6+0x3f706)
16:14.43 #44 0x0000566524a0265e _start (/usr/bin/clang+++0xf65e)
16:14.43 clang-13: error: clang frontend command failed with exit code 139 (use -v to see invocation)
16:14.43 clang version 13.0.0
16:14.44 Target: x86_64-pc-linux-gnu
16:14.44 Thread model: posix
16:14.44 InstalledDir: /usr/bin
16:15.02 xpcom/reflect/xptinfo
16:15.55 clang-13: note: diagnostic msg:
16:15.56 ********************
16:15.56 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
16:15.56 Preprocessed source(s) and associated run script(s) are located at:
16:15.56 clang-13: note: diagnostic msg: /tmp/nsNativeThemeGTK-bb97a9.cpp
16:15.56 clang-13: note: diagnostic msg: /tmp/nsNativeThemeGTK-bb97a9.sh
16:15.56 clang-13: note: diagnostic msg:
16:15.56 ********************
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to