Tcl Source Code

Ticket Change Details
Login
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA
Overview

Artifact ID: d40bd3354f36d0f5891596c81f93ef11ba9d8eab0b279052e330aa153cc503c3
Ticket: a06dfb35861a76565e06eb834ab542d8152d35f5
Memory lost error from valgrind (Tcl_StaticLibrary) running tcltest
User & Date: apnadkarni 2024-06-27 06:29:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    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.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Memory lost error from valgrind (Tcl_StaticLibrary) running tcltest
    
  16. type changed to: "Bug"