incorrect outofmemory death
还没有人认领这个 Issue。
评估
调研方向
使用 --ram 10240 重现报告的 CodeQL 查询命令,并捕获与内存相关的输出。跟踪 CLI 如何将 --ram 传递给查询评估,以及如何选择 Java 堆最大值。差异得到解释,并且错误报告相关的已配置限制或行为得到修正时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I run a query like this:
../../sources/codeql/codeql query run ./queries/types-flow.ql -d ../../sources/linux-6.12.74/linux-db/ -j0 --ram 10240 > ./results/types-flow.txt
I get
types-flow.ql: [1/1 eval 4m37s] Failed: Query evaluation ran out of Java heap (Java heap maximum: 2070 MiB).
(eventual cause: OutOfMemoryError "Java heap space")
CodeQL is out of memory. Try increasing the memory available to CodeQL using the --ram option.
make: *** [Makefile:44: types-flow] Error 99
Clearly I passed 10GB to --ram, why does the error message say that the java heap maximum is 2GB?
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 143
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/codeql 的其他 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 70/100
-
false-positive javascript
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
false-positive
难度 2/5 1-3 小时 新手友好度 70/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 75/100
elastic/gradle-plugins#156 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
Fission-AI/OpenSpec#1960 ·
-
area/config comp/tools P2 type/bug
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#119942 ·
-
难度 2/5 1-3 小时 新手友好度 75/100