-
Notifications
You must be signed in to change notification settings - Fork 273
Check for memory leaks on exit and abort #3462
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
Check for memory leaks on exit and abort #3462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good as far as I can tell, but is failing CI.
There's SV-COMP and there's the real world. In the real-world, memory leaks at exit() don't matter, and most engineers won't fix. |
We could do a classification similar to Valgrind: http://valgrind.org/docs/manual/faq.html#faq.deflost |
84fff90
to
507d221
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 507d221).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/92469216
Hi @peterschrammel, how should we proceed with this? It looks valuable but looks like it's going to need some work. |
This is part of the SV-COMP patchset and needs more work before it can go into |
507d221
to
45d6c56
Compare
45d6c56
to
1ac66e7
Compare
Codecov ReportBase: 78.34% // Head: 78.35% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #3462 +/- ##
========================================
Coverage 78.34% 78.35%
========================================
Files 1644 1645 +1
Lines 190313 190372 +59
========================================
+ Hits 149097 149159 +62
+ Misses 41216 41213 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
SV-COMP (also) requires that all dynamically allocated memory is freed via `free` before terminating the program.
1ac66e7
to
b4b815f
Compare
This has become relevant in the SV-COMP MemCleanup category.