github / github/codeql

Codeql database analyze on CLI is stuck

未关闭
#9,037 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
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 摘要。