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

Fix stack overflows #1986

Merged
merged 5 commits into from
Nov 7, 2020
Merged

Fix stack overflows #1986

merged 5 commits into from
Nov 7, 2020

Conversation

mjambon
Copy link
Member

@mjambon mjambon commented Nov 7, 2020

I tested on the joke calculator file we had elsewhere in the semgrep repo (my_first_calculator.py) since it was giving us stack overflows when scanning the semgrep repo itself. After reducing my stack limit (down to ulimit -s 50), I reached a point where spacegrep was fine but unix utilities started to crash (less and bash (I think)).

I added make examples to the CI tests, which should do the job of finding future stack overflows.

Fixes #1944

@mjambon mjambon requested a review from aryx November 7, 2020 04:35
@mjambon mjambon merged commit 07ec23a into develop Nov 7, 2020
@mjambon mjambon deleted the mj/stack-overflow branch November 7, 2020 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

spacegrep stack overflow on file with 20K lines
2 participants