digitalmars.D.bugs - [Issue 17960] New: [REG 2.077-rc1] A 192 bytes leak is created by
- d-bugmail puremagic.com (40/40) Nov 02 2017 https://issues.dlang.org/show_bug.cgi?id=17960
https://issues.dlang.org/show_bug.cgi?id=17960 Issue ID: 17960 Summary: [REG 2.077-rc1] A 192 bytes leak is created by the GC when `-unittest` is an option Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: b2.temp gmx.com with DMD 2.077-rc1 --- a.d --- void main(){} ----------- dmd a.d -unittest && valgrind --leak-check=yes ./a gives: --- ==23681== HEAP SUMMARY: ==23681== in use at exit: 192 bytes in 1 blocks ==23681== total heap usage: 109 allocs, 108 frees, 55,864 bytes allocated ==23681== ==23681== LEAK SUMMARY: ==23681== definitely lost: 0 bytes in 0 blocks ==23681== indirectly lost: 0 bytes in 0 blocks ==23681== possibly lost: 0 bytes in 0 blocks ==23681== still reachable: 192 bytes in 1 blocks ==23681== suppressed: 0 bytes in 0 blocks ==23681== Reachable blocks (those to which a pointer was found) are not shown. ==23681== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==23681== ==23681== For counts of detected and suppressed errors, rerun with: -v ==23681== Use --track-origins=yes to see where uninitialised values come from ==23681== ERROR SUMMARY: 254 errors from 12 contexts (suppressed: 0 from 0) --- The problem disappears without -unittest. --
Nov 02 2017