github / github/codeql

Codeql database analyze on CLI is stuck

Ouverte
#9,037 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.