github / github/codeql

Codeql database analyze on CLI is stuck

Open
#9,037 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.