github / github/codeql

incorrect outofmemory death

オープン
#21,543 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

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 クエリコマンドを --ram 10240 で再現し、メモリ関連の出力を記録します。CLI が --ram をクエリ評価に渡す方法と、Java ヒープの最大値が選択される方法を追跡します。差異が説明され、エラーが関連する設定済みの上限を報告するか、動作が修正されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cli, devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。