Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runaway loop in conditions.py multiply_equals #2597

Closed
trav-c opened this issue Feb 21, 2023 · 0 comments · Fixed by #2598
Closed

Runaway loop in conditions.py multiply_equals #2597

trav-c opened this issue Feb 21, 2023 · 0 comments · Fixed by #2598
Assignees
Labels
bug Something isn't working

Comments

@trav-c
Copy link
Contributor

trav-c commented Feb 21, 2023

CloudFormation Lint Version

0.73.2

What operating system are you using?

Linux (Fedora)

Describe the bug

Linting the attached template causes the memory usage of cfn-lint to explode, ultimately leading to it being killed by the OOM killer.

Watching it in top the Resident Set Size memory usage exceeded 35 GiB

The OOM log entry also indicates 30+ GiB of usage

Out of memory: Killed process 251752 (cfn-lint) total-vm:39513408kB, anon-rss:39061404kB, file-rss:1700kB, shmem-rss:0kB, UID:1000 pgtables:76940kB oom_score_adj:0

Killing the process while it's running consistently shows a backtrace leading to multiply_equals in conditions.py

Expected behavior

cfn-lint should be able to process the template using a sensible amount of memory (and time)

Reproduction template

multiply-equals.yml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants