Closed Bug 1562372 Opened 5 years ago Closed 5 years ago

LLVM ERROR: out of memory

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: emk, Unassigned)

Details

Attachments

(1 file)

 8:13.98    Compiling xpcom v0.1.0 (F:\m\mozilla-unified\xpcom\rust\xpcom)
 8:16.35 warning: Hard linking files in the incremental compilation cache failed. Copying files instead. Consider moving the cache directory to a file system which supports hard linking in session dir `\\?\F:\m\mozilla-unified\obj-x86_64-pc-mingw32\x86_64-pc-windows-msvc\release\incremental\xpcom-2qk8klkqj353z\s-fdlv3szdr4-1gmrfkk-working`
 8:42.88 LLVM ERROR: out of memory
 8:43.06 LLVM ERROR: out of memory
 8:43.06 LLVM ERROR: out of memory
 8:43.11 memory allocation of 83886080 bytes failed
 8:43.32  #0 0x00007ff6204bbe36
 8:43.32  #1 0x00007ff622416833
 8:43.32  #2 0x00007ff622404f4c
 8:43.32  #3 0x00007ff6204b9a5b
 8:43.32  #4 0x00007ff6204b9ad2
 8:43.32  #5 0x00007ff6223ff7c1
 8:43.32  #6 0x00007ff62241aed4
 8:43.32  #7 0x00007ff6223fb937
 8:43.33  #8 0x00007ff621d80458
 8:43.33  #9 0x00007ff621d803b6
 8:43.34 #10 0x00007ff621d80066
 8:43.34 #11 0x00007ff621d81017
 8:43.34 #12 0x00007ff621d80929
 8:43.34 #13 0x00007ff621d802d2
 8:43.35 #14 0x00007ff621d80c7e
 8:43.36 #15 0x00007ff621d802d2
 8:43.36 #16 0x00007ff621d8b1f6
 8:43.36 #17 0x00007ff621d7c914
 8:43.36 #18 0x00007ff621d7c829
 8:43.36 #19 0x00007ff621d7ff58
 8:43.36 #20 0x00007ff621d7cac6
 8:43.36 #21 0x00007ff621d7c829
 8:43.36 #22 0x00007ff621d77bc9
 8:43.36 #23 0x00007ff621d77cfa
 8:43.36 #24 0x00007ffc63753349
 8:43.36 #25 0x00007ffc63753078
 8:43.37 #26 0x00007ffc63723da8
 8:43.38 #27 0x00007ffc6373ca14
 8:43.38 #28 0x00007ffc6373ac7f
 8:43.39 #29 0x00007ffc6373cb61
 8:43.39 #30 0x00007ffc6373bb00
 8:43.39 #31 0x00007ffc6373a652
 8:43.39 #32 0x00007ffc6375505c
 8:43.39 #33 0x00007ffc63759443
 8:43.39 #34 0x00007ffc63758064
 8:43.39 #35 0x00007ffc6375944e
 8:43.39 #36 0x00007ffc63758064
 8:43.39 #37 0x00007ffc6375944e
 8:43.39 #38 0x00007ffc63758064
 8:43.39 #39 0x00007ffc6373dbd1
 8:43.39 #40 0x00007ff620b3382c
 8:43.39 #41 0x00007ff621560e93
 8:43.39 #42 0x00007ff620b01e1d
 8:43.39 #43 0x00007ff620ac5f07
 8:43.39 #44 0x00007ff620b601c8
 8:43.39 #45 0x00007ff61f6b6bd4
 8:43.39 #46 0x00007ff61f6b410e
 8:43.39 #47 0x00007ff6223fbb60
 8:43.39 #48 0x00007ffc7f467bd4
 8:43.40 #49 0x00007ffc7fe0ce71
 8:43.40 #0 0x00007ffc7dbea839 (C:\WINDOWS\System32\KERNELBASE.dll+0x3a839)
 8:43.40 #1 0x000001a0b7b27e00
 8:43.40 #2 0x00007ffc6379d650 (f:\m\mozilla-unified\obj-x86_64-pc-mingw32\build\clang-plugin\clang-plugin.dll+0xbd650)
 8:43.42 #3 0x00007ffc6379f050 (f:\m\mozilla-unified\obj-x86_64-pc-mingw32\build\clang-plugin\clang-plugin.dll+0xbf050)
 8:43.43 #4 0x00007ffc7fde07cd (C:\WINDOWS\SYSTEM32\ntdll.dll+0x407cd)
 8:43.43 #5 0x00000001e06d7363
 8:43.43 clang: error: clang frontend command failed due to signal (use -v to see invocation)
 8:43.43 clang version 8.0.0 (tags/RELEASE_800/final 356365)
 8:43.43 Target: x86_64-pc-windows-msvc
 8:43.43 Thread model: posix
 8:43.43 InstalledDir: c:/Users/kimu/.mozbuild/clang/bin
 8:43.43 clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
 8:43.49 error: Could not compile `xpcom`.
 8:43.51 To learn more, run the command again with --verbose.
 8:43.53 mozmake.EXE[4]: *** [f:/m/mozilla-unified/config/makefiles/rust.mk:240: force-cargo-library-build] Error 101
 8:43.56 mozmake.EXE[3]: *** [f:/m/mozilla-unified/config/recurse.mk:74: toolkit/library/rust/target] Error 2
 8:43.58 mozmake.EXE[3]: *** Waiting for unfinished jobs....
 8:43.63 clang: error: clang frontend command failed due to signal (use -v to see invocation)
 8:43.64 clang version 8.0.0 (tags/RELEASE_800/final 356365)
 8:43.65 Target: x86_64-pc-windows-msvc
 8:43.66 Thread model: posix
 8:43.67 InstalledDir: c:/Users/kimu/.mozbuild/clang/bin
 8:43.69 clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
 8:44.09  #0 0x00007ff6204bbe36 HandleAbort (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xe0be36)
 8:44.10  #1 0x00007ff622416833 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d66833)
 8:44.10  #2 0x00007ff622404f4c llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d54f4c)
 8:44.10  #3 0x00007ff6204b9a5b llvm::report_bad_alloc_error(char const *,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xe09a5b)
 8:44.10  #4 0x00007ff61f6ccf07 llvm::X86AsmPrinter::EmitBasicBlockEnd(class llvm::MachineBasicBlock const &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1cf07)
 8:44.10  #5 0x00007ff620accfb2 clang::CompilerInstance::loadModule(class clang::SourceLocation,class llvm::ArrayRef<struct std::pair<class clang::IdentifierInfo *,class clang::SourceLocation> >,enum clang::Module::NameVisibilityKind,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x141cfb2)
 8:44.10  #6 0x00007ff621fb1cd5 clang::Preprocessor::LookUpIdentifierInfo(class clang::Token &)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2901cd5)
 8:44.10  #7 0x00007ff621fa5e08 clang::Lexer::LexIdentifier(class clang::Token &,char const *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x28f5e08)
 8:44.10  #8 0x00007ff621faa622 clang::Lexer::LexTokenInternal(class clang::Token &,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x28fa622)
 8:44.10  #9 0x00007ff621fb2b04 clang::Preprocessor::Lex(class clang::Token &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2902b04)
 8:44.10 #10 0x00007ff621fd648d clang::Preprocessor::ReadMacroName(class clang::Token &,enum clang::MacroUse,bool *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x292648d)
 8:44.10 #11 0x00007ff621fd835d clang::Preprocessor::HandleDefineDirective(class clang::Token &,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x292835d)
 8:44.12 #12 0x00007ff621fded5a clang::Preprocessor::HandleDirective(class clang::Token &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x292ed5a)
 8:44.12 #13 0x00007ff621fad3bc clang::Lexer::LexTokenInternal(class clang::Token &,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x28fd3bc)
 8:44.12 #14 0x00007ff621fb2b04 clang::Preprocessor::Lex(class clang::Token &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2902b04)
 8:44.12 #15 0x00007ff62200c100 clang::Preprocessor::CachingLex(class clang::Token &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x295c100)
 8:44.12 #16 0x00007ff621fb2b30 clang::Preprocessor::Lex(class clang::Token &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2902b30)
 8:44.12 #17 0x00007ff6215626a0 clang::Parser::ExpectAndConsumeSemi(unsigned int) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb26a0)
 8:44.12 #18 0x00007ff6215b0a62 clang::Parser::ParseDeclGroup(class clang::ParsingDeclSpec &,enum clang::DeclaratorContext,class clang::SourceLocation *,struct clang::Parser::ForRangeInit *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1f00a62)
 8:44.12 #19 0x00007ff6215ab58b clang::Parser::ParseSimpleDeclaration(enum clang::DeclaratorContext,class clang::SourceLocation &,struct clang::Parser::ParsedAttributesWithRange &,bool,struct clang::Parser::ForRangeInit *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1efb58b)
 8:44.14 #20 0x00007ff6215ab012 clang::Parser::ParseDeclaration(enum clang::DeclaratorContext,class clang::SourceLocation &,struct clang::Parser::ParsedAttributesWithRange &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1efb012)
 8:44.14 #21 0x00007ff621565f5d clang::Parser::ParseExternalDeclaration(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb5f5d)
 8:44.14 #22 0x00007ff62158dec0 clang::Parser::ParseLinkage(class clang::ParsingDeclSpec &,enum clang::DeclaratorContext) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eddec0)
 8:44.14 #23 0x00007ff621568b38 clang::Parser::ParseDeclOrFunctionDefInternal(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec &,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8b38)
 8:44.14 #24 0x00007ff621568450 clang::Parser::ParseDeclarationOrFunctionDefinition(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8450)
 8:44.14 #25 0x00007ff621566cab clang::Parser::ParseExternalDeclaration(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb6cab)
 8:44.14 #26 0x00007ff62158dec0 clang::Parser::ParseLinkage(class clang::ParsingDeclSpec &,enum clang::DeclaratorContext) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eddec0)
 8:44.15 #27 0x00007ff621568b38 clang::Parser::ParseDeclOrFunctionDefInternal(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec &,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8b38)
 8:44.15 #28 0x00007ff621568450 clang::Parser::ParseDeclarationOrFunctionDefinition(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8450)
 8:44.15 #29 0x00007ff621566cab clang::Parser::ParseExternalDeclaration(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb6cab)
 8:44.19 #30 0x00007ff62158dec0 clang::Parser::ParseLinkage(class clang::ParsingDeclSpec &,enum clang::DeclaratorContext) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eddec0)
 8:44.20 #31 0x00007ff621568b38 clang::Parser::ParseDeclOrFunctionDefInternal(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec &,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8b38)
 8:44.20 #32 0x00007ff621568450 clang::Parser::ParseDeclarationOrFunctionDefinition(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *,enum clang::AccessSpecifier) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb8450)
 8:44.20 #33 0x00007ff621566cab clang::Parser::ParseExternalDeclaration(struct clang::Parser::ParsedAttributesWithRange &,class clang::ParsingDeclSpec *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb6cab)
 8:44.21 #34 0x00007ff6215656d9 clang::Parser::ParseTopLevelDecl(class clang::OpaquePtr<class clang::DeclGroupRef> &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb56d9)
 8:44.21 #35 0x00007ff621560e36 clang::ParseAST(class clang::Sema &,bool,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb0e36)
 8:44.21 #36 0x00007ff620b01e1d clang::FrontendAction::Execute(void) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1451e1d)
 8:44.21 #37 0x00007ff620ac5f07 clang::CompilerInstance::ExecuteAction(class clang::FrontendAction &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1415f07)
 8:44.21 #38 0x00007ff620b601c8 clang::ExecuteCompilerInvocation(class clang::CompilerInstance *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x14b01c8)
 8:44.22 #39 0x00007ff61f6b6bd4 clang::ChainedDiagnosticConsumer::HandleDiagnostic(enum clang::DiagnosticsEngine::Level,class clang::Diagnostic const &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x6bd4)
 8:44.22 #40 0x00007ff61f6b410e (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x410e)
 8:44.22 #41 0x00007ff6223fbb60 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d4bb60)
 8:44.23 #42 0x00007ffc7f467bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)
 8:44.23 #43 0x00007ffc7fe0ce71 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ce71)
 8:44.23 clang: error: clang frontend command failed due to signal (use -v to see invocation)
 8:44.23 clang version 8.0.0 (tags/RELEASE_800/final 356365)
 8:44.23 Target: x86_64-pc-windows-msvc
 8:44.23 Thread model: posix
 8:44.23 InstalledDir: c:/Users/kimu/.mozbuild/clang/bin
 8:44.23 clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
 8:44.23  #0 0x00007ff6204bbe36 HandleAbort (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xe0be36)
 8:44.23  #1 0x00007ff622416833 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d66833)
 8:44.23  #2 0x00007ff622404f4c llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d54f4c)
 8:44.27  #3 0x00007ff6204b9a5b llvm::report_bad_alloc_error(char const *,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xe09a5b)
 8:44.30  #4 0x00007ff6204b9ad2 llvm::install_out_of_memory_new_handler(void) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xe09ad2)
 8:44.30  #5 0x00007ff6223ff7c1 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d4f7c1)
 8:44.33  #6 0x00007ff62241aed4 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d6aed4)
 8:44.37  #7 0x00007ff6223fb937 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d4b937)
 8:44.38  #8 0x00007ff61ff2dd39 llvm::initializeMachineBlockPlacementStatsPass(class llvm::PassRegistry &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x87dd39)
 8:44.42  #9 0x00007ff620351684 llvm::ADCEPass::run(class llvm::Function &,class llvm::AnalysisManager<class llvm::Function> &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xca1684)
 8:44.47 #10 0x00007ff620355502 llvm::po_iterator<struct llvm::Inverse<class llvm::BasicBlock *>,class llvm::SmallPtrSet<class llvm::BasicBlock *,16>,1,struct llvm::GraphTraits<struct llvm::Inverse<class llvm::BasicBlock *> > >::traverseChild(void) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0xca5502)
 8:44.49 #11 0x00007ff620072c59 llvm::FPPassManager::runOnFunction(class llvm::Function &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x9c2c59)
 8:44.51 #12 0x00007ff62204d40b llvm::initializeDummyCGSCCPassPass(class llvm::PassRegistry &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x299d40b)
 8:44.51 #13 0x00007ff62007331e llvm::legacy::PassManagerImpl::run(class llvm::Module &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x9c331e)
 8:44.54 #14 0x00007ff6206d4b63 clang::EmitBackendOutput(class clang::DiagnosticsEngine &,class clang::HeaderSearchOptions const &,class clang::CodeGenOptions const &,class clang::TargetOptions const &,class clang::LangOptions const &,class llvm::DataLayout const &,class llvm::Module *,enum clang::BackendAction,class std::unique_ptr<class llvm::raw_pwrite_stream,struct std::default_delete<class llvm::raw_pwrite_stream> >) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1024b63)
 8:44.55 #15 0x00007ff62223164b clang::BackendConsumer::HandleTranslationUnit(class clang::ASTContext &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2b8164b)
 8:44.56 #16 0x00007ff620b3382c clang::MultiplexConsumer::HandleTranslationUnit(class clang::ASTContext &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x148382c)
 8:44.56 #17 0x00007ff621560e93 clang::ParseAST(class clang::Sema &,bool,bool) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1eb0e93)
 8:44.58 #18 0x00007ff620b01e1d clang::FrontendAction::Execute(void) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1451e1d)
 8:44.58 #19 0x00007ff620ac5f07 clang::CompilerInstance::ExecuteAction(class clang::FrontendAction &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x1415f07)
 8:44.59 #20 0x00007ff620b601c8 clang::ExecuteCompilerInvocation(class clang::CompilerInstance *) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x14b01c8)
 8:44.59 #21 0x00007ff61f6b6bd4 clang::ChainedDiagnosticConsumer::HandleDiagnostic(enum clang::DiagnosticsEngine::Level,class clang::Diagnostic const &) (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x6bd4)
 8:44.61 #22 0x00007ff61f6b410e (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x410e)
 8:44.61 #23 0x00007ff6223fbb60 llvm::ms_demangle::SpecialTableSymbolNode::output(class OutputStream &,enum llvm::ms_demangle::OutputFlags)const  (c:\Users\kimu\.mozbuild\clang\bin\clang.exe+0x2d4bb60)
 8:44.62 #24 0x00007ffc7f467bd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x17bd4)
 8:44.62 #25 0x00007ffc7fe0ce71 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x6ce71)
 8:44.62 clang: error: clang frontend command failed due to signal (use -v to see invocation)
 8:44.64 clang version 8.0.0 (tags/RELEASE_800/final 356365)
 8:44.65 Target: x86_64-pc-windows-msvc
 8:44.67 Thread model: posix
 8:44.67 InstalledDir: c:/Users/kimu/.mozbuild/clang/bin
 8:44.68 clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
 8:44.70 clang: note: diagnostic msg:
 8:44.70 ********************
 8:44.71 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 8:44.73 Preprocessed source(s) and associated run script(s) are located at:
 8:44.74 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\BinASTTokenReaderMultipart-0edc65.cpp
 8:44.74 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\BinASTTokenReaderMultipart-0edc65.sh
 8:44.74 clang: note: diagnostic msg:
 8:44.74 ********************
 8:44.74 mozmake.EXE[4]: *** [f:/m/mozilla-unified/config/rules.mk:812: BinASTTokenReaderMultipart.obj] Error 1
 8:44.75 clang: note: diagnostic msg:
 8:44.75 ********************
 8:44.75 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 8:44.75 Preprocessed source(s) and associated run script(s) are located at:
 8:44.75 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_gc2-1b0e4c.cpp
 8:44.76 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_gc2-1b0e4c.sh
 8:44.76 clang: note: diagnostic msg:
 8:44.76 ********************
 8:44.76 mozmake.EXE[3]: *** [f:/m/mozilla-unified/config/recurse.mk:74: js/src/frontend/target] Error 2
 8:44.76 mozmake.EXE[4]: *** [f:/m/mozilla-unified/config/rules.mk:810: Unified_cpp_js_src_gc2.obj] Error 1
 8:44.76 mozmake.EXE[3]: *** [f:/m/mozilla-unified/config/recurse.mk:74: js/src/gc/target] Error 2
 8:45.73 clang: note: diagnostic msg:
 8:45.75 ********************
 8:45.80 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 8:45.84 Preprocessed source(s) and associated run script(s) are located at:
 8:45.88 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_wasm1-89a844.cpp
 8:45.91 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_wasm1-89a844.sh
 8:45.94 clang: note: diagnostic msg:
 8:45.94 ********************
 8:45.94 mozmake.EXE[4]: *** [f:/m/mozilla-unified/config/rules.mk:812: Unified_cpp_js_src_wasm1.obj] Error 1
 8:45.95 mozmake.EXE[4]: *** Waiting for unfinished jobs....
 8:45.95 clang: note: diagnostic msg:
 8:45.95 ********************
 8:45.95 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 8:45.95 Preprocessed source(s) and associated run script(s) are located at:
 8:45.95 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_wasm2-4064e4.cpp
 8:45.95 clang: note: diagnostic msg: C:\Users\kimu\AppData\Local\Temp\Unified_cpp_js_src_wasm2-4064e4.sh
 8:45.95 clang: note: diagnostic msg:
 8:45.95 ********************
 8:45.98 mozmake.EXE[4]: *** [f:/m/mozilla-unified/config/rules.mk:812: Unified_cpp_js_src_wasm2.obj] Error 1
 8:50.03     Finished release [optimized] target(s) in 1m 21s
10:00.67 mozmake.EXE[3]: *** [f:/m/mozilla-unified/config/recurse.mk:74: js/src/wasm/target] Error 2
11:28.10 mozmake.EXE[2]: *** [f:/m/mozilla-unified/config/recurse.mk:34: compile] Error 2
11:28.10 mozmake.EXE[1]: *** [f:/m/mozilla-unified/config/rules.mk:400: default] Error 2
11:28.11 mozmake.EXE: *** [client.mk:125: build] Error 2
11:28.23 225 compiler warnings present.

I got this error after I updated cbindgen using ./mach bootstrap. Is 16GiB RAM insufficient to build Firefox now?

Also I can't rollback cbindgen because bug 1559814 required a newer version.

Flags: needinfo?(emilio)
Regressed by: 1559814

Cbindgen can't be the thing OOM-ing, but maybe the code it's generating is hitting some bug in clang?

I don't see the same on Linux, and I do build on a machine with 16 gigs. Do you know if making a debug or release build makes a difference? It seems it's running out of memory doing some windows-specific path mangling, though maybe it's just bad luck that it ends up crashing there...

How does your mozconfig look like? I can try to reproduce this on windows tomorrow or something.

Flags: needinfo?(VYV03354)

Also, does this reproduce with ./mach build -j1? I'd be pretty sure this is a clang bug if so.

Lowering concurrency (-j1) worked around the issue. It seems to be actually running out memory...

Flags: needinfo?(VYV03354)

How many jobs do you usually build with? Is there an easy way to check which translation units are being compiled when it OOMs?

I'd like to try to understand how my patch can regress this. It does generate more C++ code in a wildly included header but still shouldn't need 16+gigs to build...

If you have your mozconfig around I'd still be interested in trying to repro it.

Flags: needinfo?(emilio) → needinfo?(VYV03354)
Attached file .mozconfig

How many jobs do you usually build with?

I didn't set job count. My PC has 4 core / 8 logical processors.

Flags: needinfo?(VYV03354)
Attachment #9074985 - Attachment mime type: application/octet-stream → application/plain
Attachment #9074985 - Attachment mime type: application/plain → text/plain

Ok, thanks, I'll try to get a windows setup sometime next week. Can you confirm that building a revision before bug 1559814 consistently does not OOMs (you shouldn't need to downgrade cbindgen for that), and building a revision after it consistently-ish OOMs?

Flags: needinfo?(VYV03354)

OOM happened even before bug 1559814 if the toolchain is updated.

Flags: needinfo?(VYV03354)

Ah, ok, so then this is likely not a regression from that bug then, but just that that bug forced you to run ./mach bootstrap which updated your clang-cl as well.

Masatoshi, do you know of which was the previous toolchain you had installed? That may help pin-pointing a range of clang changes that cause this.

David, maybe you have any idea of what may have changed?

Flags: needinfo?(dmajor)
No longer regressed by: 1559814

I looked at the .mozbuild\toolchain directory.
Current version: 373337c95e7313e4-clang.tar.bz2
Previous version: a22f28c3f8ebfc8d-clang.tar.bz2

If you still have access to the old tarball, could you please check the clang-cl.exe --version on both the old and new toolchains?

Flags: needinfo?(dmajor)

Old: clang version 8.0.0 (tags/RELEASE_800/final 356365)
New: clang version 8.0.0 (tags/RELEASE_800/final 356365)
🤔

(In reply to Masatoshi Kimura [:emk] from comment #12)

Old: clang version 8.0.0 (tags/RELEASE_800/final 356365)
New: clang version 8.0.0 (tags/RELEASE_800/final 356365)
🤔

So they're both the 8.0.0 release revision from upstream, but with a different set of Mozilla patches applied on top: https://hg.mozilla.org/mozilla-central/log/tip/build/build-clang/clang-win64.json

It seems unlikely that any of those changes would directly be at fault in an OOM situation. I think it's more likely that our codebase grew over time and eventually it passed a tipping point on your machine.

So instead of looking at this from the direction of "what changed?" it would probably be better to just look at the problem how it stands today. If you start from a clobber, when does the OOM happen and what else is your machine doing? Is the error near the beginning of the build? Is it near the end, when we're doing lots of rustc work? Are we linking something with lld-link when it happens?

Out of curiosity, does the MOZ_RUST_TIER variable from bug 1560442 avoid the error?

I can no longer reproduce the issue. Build succeeded without OOM.

After I filed this bug and investigating, Firefox crashed with OOM error (bp-3222503c-95fc-47a8-9a1a-88de60190630), so it might have been running some memory intensive tasks in the background.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: