-
Notifications
You must be signed in to change notification settings - Fork 66
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
Memory and CPU issue with Nilaway on Kubebuilder projects #148
Comments
Hi! NilAway by default analyzes everything (meaning all 3rd party dependencies and standard libraries), and the linter driver from If you specify only the first party packages for NilAway analysis (meaning we will apply optimistic defaults for packages not analyzed) by giving (We are thinking of making it default to only analyze first party packages, or at least make it more explicit in our README, so I'm keeping this issue open for such efforts) |
@painhardcore @yuxincs Thanks for the following up. We had faced a nil pointer error in this line of the project in the runtime. I checked it out with Nilaway with this command since I knew it's caused by the nilaway -include-pkgs github.com/snapp-incubator/s3-operator,github.com/opdev/subreconciler ./... However, Nilaway didn't recognize this part as a nil pointer and dangerous part of the code. I just wanted to mention it and you might find it helpful for further contributions to the package. Thanks in advance. |
@hoptical This is an interesting case, would you mind opening a new issue to elaborate it further? I briefly took a look at the package but lost track of the call chain to see where the root cause is. We would be interested to investigate why NilAway fails to detect such false negatives. |
I'm having trouble using Nilaway to detect nil pointers in the S3 Operator project. My OS hangs due to high memory and CPU usage. They are totally utilized by Nilaway. What is wrong?
System specification running Nilaway:
RAM: 16GB
CPU: Intel® Core™ i7-10510U CPU @ 1.80GHz × 8
OS: Ubuntu 22.04 LTS
Run commands leading to the crash:
The text was updated successfully, but these errors were encountered: