Tcl Source Code

View Ticket
Login
Ticket UUID: a06dfb35861a76565e06eb834ab542d8152d35f5
Title: Memory lost error from valgrind (Tcl_StaticLibrary) running tcltest
Type: Bug Version: 9.0
Submitter: apnadkarni Created on: 2024-06-27 06:29:58
Subsystem: - New Builtin Commands Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2024-06-27 06:29:58
Resolution: None Closed By: nobody
    Closed on:
Description:

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.