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
Brakeman hangs on some platforms #1818
Comments
Just as a guess, the machines that work probably have more memory? I'd be interested in looking at the file - you can send it to brakeman@presidentbeef.com 📧 |
Wouldn't bet on that, both have 16GB (though there is definitely a difference in how much stuff is running on which machine).
Sending. |
@stanley90 Brakeman is struggling due to many conditional re-assignments to the same variable that also use the variable as part of the new value (e.g. I have a potential fix I'll add soon. |
@presidentbeef Not the prettiest file, I know 🙂 I can then test it, if it helps. |
Fixed with #1820 |
Background
Brakeman version: 6.1.1
Rails version: 6.1.7.6
Ruby version: 3.1.4
Hanging or Slowness
Brakeman (4.10.0) has been hanging since I moved to a Macbook Pro M1, but the same scan worked on an Ubuntu server. Currently I upgraded to 6.1.1 and in addition to hanging locally, it now also hangs on an Azure Ubuntu 20 image (but still works on the Ubuntu 22 server).
I narrowed the problem down to an individual file, the scan works when the file is skipped. The exception after interrupting is:
I can provide the file privately (it's a module included in several controllers).
The text was updated successfully, but these errors were encountered: