You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
When scanning a Dockerfile with multi-line RUN commands that contain comments, the scan hangs until the process eventually runs out of memory.
Expected Behavior
KICS should scan the Dockerfile without hanging or running out of memory.
Actual Behavior
debug.log
KICS stops printing trace logs after a few seconds and hangs, leading to the container running out of memory and crashing.
Steps to Reproduce the Problem
Download "Dockerfile.txt" and rename it to "Dockerfile" Dockerfile.txt
Run KICS: docker run -m 2G -it -v $PWD:/path checkmarx/kics:latest scan --path "/path/" --ci --log-level TRACE
(the docker image is used to avoid running out of host memory)
wait for the container to run out of memory and crash
Specifications
Version: v2.1.2
Platform: Linux AMD64/MacOS ARM64
Subsystem: Docker
The text was updated successfully, but these errors were encountered:
saars-orca
changed the title
bug(docker): OOM when scanning a Dockerfile with multi-line commands and comments
bug(docker): oom when scanning a dockerfile with multi-line commands and comments
Sep 15, 2024
Hey,
When scanning a Dockerfile with multi-line
RUN
commands that contain comments, the scan hangs until the process eventually runs out of memory.Expected Behavior
KICS should scan the Dockerfile without hanging or running out of memory.
Actual Behavior
debug.log
KICS stops printing trace logs after a few seconds and hangs, leading to the container running out of memory and crashing.
Steps to Reproduce the Problem
Dockerfile.txt
docker run -m 2G -it -v $PWD:/path checkmarx/kics:latest scan --path "/path/" --ci --log-level TRACE
(the docker image is used to avoid running out of host memory)
Specifications
The text was updated successfully, but these errors were encountered: