codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Where can I find the explanation of return codes when codeql execution fails?

Open KiRito02 opened this issue 1 year ago • 2 comments

Description of the issue When I encounter errors while running codeql scans, troubleshooting can be very challenging. I would like to understand the specific meanings of the return codes from codeql.exe, as this would help me resolve issues more quickly. Is there any content related to this in the codeql documentation? If not, could you provide documentation that maps return codes to their descriptions? Thank you!

KiRito02 avatar Aug 27 '24 02:08 KiRito02

There is this documentation page: https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/exit-codes

It appears a couple of exit codes are missing from the documentation:

  public static final int EXITCODE_QUERY_FAILURE = 34;
  // Returned when the launcher script should transparently chain to a different command
  public static final int EXITCODE_CHAIN_PROCESS = 70;
  // Exit codes when something goes completely wrong
  public static final int EXITCODE_DISKFULL = 97;

Of these the exit code 70 is a special one. It does not indicate an error, it merely indicates that processing was continued by a new process.

aibaars avatar Aug 27 '24 10:08 aibaars

@KiRito02 hope @aibaars answer, answers your question. If not let us know so we can provide further guidance.

rvermeulen avatar Aug 28 '24 00:08 rvermeulen

This issue is stale because it has been open 14 days with no activity. Comment or remove the Stale label in order to avoid having this issue closed in 7 days.

github-actions[bot] avatar Sep 11 '24 01:09 github-actions[bot]

This issue was closed because it has been inactive for 7 days.

github-actions[bot] avatar Sep 18 '24 01:09 github-actions[bot]