Memory lost error from valgrind (Tcl_StaticLibrary) running tcltest
Closed / Fixeda06dfb35861a76565e06eb834ab542d8152d35f5Created 2 years agoUpdated 196 days ago
Descriptionmarkdown2024-06-27 06:29:58
A valgrind run on commit [88b75ee393] shows 16 lost bytes. (Note that is the commit tested, not where the leak originated). I feel like I logged this ticket before but can't find it.
==829498== HEAP SUMMARY:
==829498== in use at exit: 16 bytes in 1 blocks
==829498== total heap usage: 29,202,866 allocs, 29,202,865 frees, 1,308,483,430 bytes allocated
==829498==
==829498== Searching for pointers to 1 not-freed blocks
==829498== Checked 114,960 bytes
==829498==
==829498== 16 bytes in 1 blocks are definitely lost in loss record 1 of 1
==829498== at 0x484280F: malloc (vg_replace_malloc.c:442)
==829498== by 0x489716C: TclpAlloc (tclAlloc.c:700)
==829498== by 0x48B5692: Tcl_Alloc (tclCkalloc.c:1035)
==829498== by 0x49D891F: Tcl_StaticLibrary (tclLoad.c:1066)
==829498== by 0x4013A4: Tcl_AppInit (tclAppInit.c:135)
==829498== by 0x49D9414: Tcl_MainEx (tclMain.c:370)
==829498== by 0x401344: main (tclAppInit.c:94)
==829498==
==829498== LEAK SUMMARY:
==829498== definitely lost: 16 bytes in 1 blocks
==829498== indirectly lost: 0 bytes in 0 blocks
==829498== possibly lost: 0 bytes in 0 blocks
==829498== still reachable: 0 bytes in 0 blocks
==829498== suppressed: 0 bytes in 0 blocks
==829498==
==829498== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
The call to Tcl_StaticLibrary is to load Tcltest.
apnadkarniplain2026-05-21 15:52:09
Fixed via the other duplicate ticket that I can again not find :-) But confirmed valgrind no longer shows this error.
Log in (anonymous is fine) to add a comment.