github / github/codeql

Codeql database analyze on CLI is stuck

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

説明

**Description of the issue**

When running this command
```
codeql database analyze -vvvv /var/tmp/database /opt/codeql/qlpacks/codeql/python-queries/0.1.0/analysis/ --format=sarifv2.1.0 --output=query-results.sarif
```

Codeql seems to be hanging here for a very long time:

```
Scanning for [codeql-pack.yml, qlpack.yml] from /opt/codeql/qlpacks/codeql/python-queries/0.1.0/.codeql/libraries/codeql/suite-helpers/0.1.0/
Scanning for [codeql-pack.yml, qlpack.yml] from /opt/codeql/.codeqlmanifest.json
Scanning for [codeql-pack.yml, qlpack.yml] from /opt/
Not scanning from /opt/codeql which is already done.
Compiling query plan for /opt/codeql/qlpacks/codeql/python-queries/0.1.0/analysis/AlertSuppression.ql.
Resolving imports for /opt/codeql/qlpacks/codeql/python-queries/0.1.0/analysis/AlertSuppression.ql.
Checking QL for /opt/codeql/qlpacks/codeql/python-queries/0.1.0/analysis/AlertSuppression.ql.
Optimizing /opt/codeql/qlpacks/codeql/python-queries/0.1.0/analysis/AlertSuppression.ql.
```

If I run without a specific query codeql would get stuck in the same spot when optimizing a `.ql` This is running on a Docker container with the base image of Ubuntu 20.04. Memory and CPU usage is not a problem. Any idea why?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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