Check for memory leaks on exit and abort#3462
Conversation
tautschnig
left a comment
There was a problem hiding this comment.
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
allredj
left a comment
There was a problem hiding this comment.
✔️
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.