CodeQL Analysis crash with out of memory
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- github-actions, typescript
调研方向
从链接的 CodeQL Actions 运行记录以及 packages/gizmo/ts/define.define_deps.spec.ts 的提取失败开始。将其与 type-plus 的 pull request 示例和已报告的 spec 文件 workaround 进行比较;当 TypeScript CodeQL 分析在 parser 未耗尽内存的情况下完成,或已清楚记录受支持的 workaround 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
https://github.com/unional/async-fp/actions/runs/4653860071/jobs/8235098420
[2023-04-10 02:21:17] [build-stdout] Extracting /home/runner/work/async-fp/async-fp/packages/gizmo/ts/define.define_deps.spec.ts
[2023-04-10 02:43:15] [build-stderr] <--- Last few GCs --->
[2023-04-10 02:43:15] [build-stderr] [2032:0x6de5530] 1319634 ms: Mark-sweep 3160.3 (3390.9) -> 3143.5 (3389.8) MB, 2799.8 / 0.0 ms (average mu = 0.119, current mu = 0.046) allocation failure; scavenge might not succeed
[2023-04-10 02:43:15] [build-stderr] [2032:0x6de5530] 1319773 ms: Scavenge 3159.3 (3389.8) -> 3144.1 (3389.8) MB, 20.2 / 0.0 ms (average mu = 0.119, current mu = 0.046) allocation failure;
[2023-04-10 02:43:15] [build-stderr] <--- JS stacktrace --->
[2023-04-10 02:43:15] [build-stderr] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[2023-04-10 02:43:15] [build-stderr] 1: 0xb7b3e0 node::Abort() [node]
[2023-04-10 02:43:15] [build-stderr] 2: 0xa8c8aa [node]
[2023-04-10 02:43:15] [build-stderr] 3: 0xd69100 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
[2023-04-10 02:43:15] [build-stderr] 4: 0xd694a7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
[2023-04-10 02:43:15] [build-stderr] 5: 0xf46ba5 [node]
[2023-04-10 02:43:15] [build-stderr] 6: 0xf47aa8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
[2023-04-10 02:43:15] [build-stderr] 7: 0xf57fb3 [node]
[2023-04-10 02:43:15] [build-stderr] 8: 0xf58e28 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
[2023-04-10 02:43:15] [build-stderr] 9: 0xf3378e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
[2023-04-10 02:43:15] [build-stderr] 10: 0xf34b57 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
[2023-04-10 02:43:15] [build-stderr] 11: 0xf15d2a v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
[2023-04-10 02:43:15] [build-stderr] 12: 0x12dacdf v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
[2023-04-10 02:43:15] [build-stderr] 13: 0x1707b79 [node]
[2023-04-10 02:43:16] [build-stderr] Exception while extracting /home/runner/work/async-fp/async-fp/packages/gizmo/ts/define.define_deps.spec.ts.
[2023-04-10 02:43:16] [build-stderr] The TypeScript parser wrapper crashed, possibly from running out of memory.
[2023-04-10 02:43:16] [build-stderr] at com.semmle.ts.extractor.TypeScriptParser.getExceptionFromMalformedResponse(TypeScriptParser.java:413)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.ts.extractor.TypeScriptParser.talkToParserWrapper(TypeScriptParser.java:381)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.ts.extractor.TypeScriptParser.parse(TypeScriptParser.java:451)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.TypeScriptExtractor.extract(TypeScriptExtractor.java:24)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.FileExtractor.extractContents(FileExtractor.java:547)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.FileExtractor.extract(FileExtractor.java:454)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.doExtract(AutoBuild.java:1234)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.extract(AutoBuild.java:1220)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.extractTypeScriptFiles(AutoBuild.java:1173)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.extractTypeScript(AutoBuild.java:1051)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.extractSource(AutoBuild.java:752)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.run(AutoBuild.java:459)
[2023-04-10 02:43:16] [build-stderr] at com.semmle.js.extractor.AutoBuild.main(AutoBuild.java:1329)
Error: 4-10 02:43:16] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/hostedtoolcache/CodeQL/2.12.6-20230403/x[64](https://github.com/unional/async-fp/actions/runs/4653860071/jobs/8235098420#step:5:65)/codeql/javascript/tools/autobuild.sh])
This tends to happen on TypeScript project.
I have also seen this on type-plus
And a workaround is to ignore the spec files.
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 493
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 44
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql-action 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
github/codeql-action#4052 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 条评论 ·
-
难度 4/5 3-5 天 新手友好度 52/100
github/codeql-action#3978 · 4 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 48/100
github/codeql-action#3915 · 6 条评论 · 3 个 reaction ·
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
vicharanashala/fln#563 ·