{"id":19238518,"url":"https://github.com/tmpfs/spack-array-config-bug","last_synced_at":"2025-02-23T13:52:50.639Z","repository":{"id":66127978,"uuid":"371580709","full_name":"tmpfs/spack-array-config-bug","owner":"tmpfs","description":"Reproduces a node OOM when configuring spack with an array","archived":false,"fork":false,"pushed_at":"2021-05-28T04:36:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T02:12:15.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmpfs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T04:36:20.000Z","updated_at":"2021-05-28T04:36:44.000Z","dependencies_parsed_at":"2023-03-10T23:38:43.896Z","dependency_job_id":null,"html_url":"https://github.com/tmpfs/spack-array-config-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-array-config-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-array-config-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-array-config-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpfs%2Fspack-array-config-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpfs","download_url":"https://codeload.github.com/tmpfs/spack-array-config-bug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240324059,"owners_count":19783453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T16:33:04.259Z","updated_at":"2025-02-23T13:52:50.621Z","avatar_url":"https://github.com/tmpfs.png","language":"JavaScript","readme":"# Spack / Node OOM Bug w/ Array Definition\n\nWhen attempting to configure Spack with an array the process hangs and eventually leads to a Javascript OOM error.\n\nTo reproduce:\n\n* `yarn install`\n* `npx spack`\n\n```\n\u003c--- Last few GCs ---\u003e\n\n[23032:0x630a870]   102040 ms: Mark-sweep (reduce) 3792.5 (4104.2) -\u003e 3791.6 (4104.7) MB, 4160.4 / 0.0 ms  (average mu = 0.060, current mu = 0.002) allocation failure scavenge might not succeed\n[23032:0x630a870]   105999 ms: Mark-sweep (reduce) 3792.8 (4101.7) -\u003e 3791.9 (4102.7) MB, 3954.4 / 0.0 ms  (average mu = 0.032, current mu = 0.001) allocation failure scavenge might not succeed\n\n\n\u003c--- JS stacktrace ---\u003e\n\nFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\n 1: 0xa222f0 node::Abort() [spack]\n 2: 0x96411f node::FatalError(char const*, char const*) [spack]\n 3: 0xb97f1e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [spack]\n 4: 0xb98297 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [spack]\n 5: 0xd52fd5  [spack]\n 6: 0xd53b5f  [spack]\n 7: 0xd61beb v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [spack]\n 8: 0xd657ac v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [spack]\n 9: 0xd33e5b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [spack]\n10: 0x107c5af v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [spack]\n11: 0x1423279  [spack]\n[1]    23032 abort      npx spack\n```\n\n---\n\n```\n\u003c--- Last few GCs ---\u003e\n\n[4419:0x623d870]    82549 ms: Mark-sweep 3836.1 (4125.9) -\u003e 3821.9 (4130.2) MB, 3878.3 / 0.0 ms  (average mu = 0.168, current mu = 0.013) allocation failure scavenge might not succeed\n[4419:0x623d870]    86926 ms: Mark-sweep 3841.3 (4130.7) -\u003e 3827.2 (4135.4) MB, 4305.0 / 0.0 ms  (average mu = 0.089, current mu = 0.016) allocation failure scavenge might not succeed\n\n\n\u003c--- JS stacktrace ---\u003e\n\nFATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory\n 1: 0xa222f0 node::Abort() [spack]\n 2: 0x96411f node::FatalError(char const*, char const*) [spack]\n 3: 0xb97f1e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [spack]\n 4: 0xb98297 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [spack]\n 5: 0xd52fd5  [spack]\n 6: 0xd83bbe v8::internal::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject, int) [spack]\n 7: 0xd8fbf6 v8::internal::FullEvacuator::RawEvacuatePage(v8::internal::MemoryChunk*, long*) [spack]\n 8: 0xd7bd8f v8::internal::Evacuator::EvacuatePage(v8::internal::MemoryChunk*) [spack]\n 9: 0xd7c008 v8::internal::PageEvacuationTask::RunInParallel(v8::internal::ItemParallelJob::Task::Runner) [spack]\n10: 0xd6e8e9 v8::internal::ItemParallelJob::Run() [spack]\n11: 0xd91b50 void v8::internal::MarkCompactCollectorBase::CreateAndExecuteEvacuationTasks\u003cv8::internal::FullEvacuator, v8::internal::MarkCompactCollector\u003e(v8::internal::MarkCompactCollector*, v8::internal::ItemParallelJob*, v8::internal::MigrationObserver*, long) [spack]\n12: 0xd923ec v8::internal::MarkCompactCollector::EvacuatePagesInParallel() [spack]\n13: 0xd925b5 v8::internal::MarkCompactCollector::Evacuate() [spack]\n14: 0xda45b1 v8::internal::MarkCompactCollector::CollectGarbage() [spack]\n15: 0xd60878 v8::internal::Heap::MarkCompact() [spack]\n16: 0xd62368 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [spack]\n17: 0xd657ac v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [spack]\n18: 0xd2af4d v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [spack]\n19: 0xd24dd4 v8::internal::FactoryBase\u003cv8::internal::Factory\u003e::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [spack]\n20: 0xd25873 v8::internal::FactoryBase\u003cv8::internal::Factory\u003e::NewByteArray(int, v8::internal::AllocationType) [spack]\n21: 0xcb3e3a v8::internal::TranslationBuffer::CreateByteArray(v8::internal::Factory*) [spack]\n22: 0x1a22be7 v8::internal::compiler::CodeGenerator::GenerateDeoptimizationData() [spack]\n23: 0x1a232d7 v8::internal::compiler::CodeGenerator::FinalizeCode() [spack]\n24: 0x1ab4c3b v8::internal::compiler::PipelineImpl::FinalizeCode(bool) [spack]\n25: 0x1ab5d07 v8::internal::compiler::PipelineCompilationJob::FinalizeJobImpl(v8::internal::Isolate*) [spack]\n26: 0xc613c0 v8::internal::OptimizedCompilationJob::FinalizeJob(v8::internal::Isolate*) [spack]\n27: 0xc69ceb v8::internal::Compiler::FinalizeOptimizedCompilationJob(v8::internal::OptimizedCompilationJob*, v8::internal::Isolate*) [spack]\n28: 0xc8b8dd v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions() [spack]\n29: 0xd0a6cf v8::internal::StackGuard::HandleInterrupts() [spack]\n30: 0x107c003 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [spack]\n31: 0x1423279  [spack]\n[1]    4419 abort      npx spack\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-array-config-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpfs%2Fspack-array-config-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpfs%2Fspack-array-config-bug/lists"}