Skip to content
Tcl Source Code History Of Ticket 1f4af0a127369d4a
Login

History Of Ticket 1f4af0a127369d4a

Artifacts Associated With Ticket 1f4af0a127369d4a

  1. Ticket change [46e4bd0ae8] (rid 193833) by pooryorick on 2021-04-20 19:27:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In core-8-branch, commit [ec5b3d21f9b29ee9], built with 
      <code>--enable-symbols CFLAGS=-DPURIFY</code>
      
      , for zipfs-5.1 Valgrind reports:
      
      <code><verbatim>
      ==1880520== 0 bytes in 1 blocks are definitely lost in loss record 1 of 2
      ==1880520==    at 0x483E77F: malloc (vg_replace_malloc.c:307)
      ==1880520==    by 0x488C464: TclpAlloc (tclAlloc.c:699)
      ==1880520==    by 0x4A34BBB: TclZipfs_MountBuffer (tclZipfs.c:2096)
      ==1880520==    by 0x4A3520D: ZipFSMountBufferObjCmd (tclZipfs.c:2309)
      ==1880520==    by 0x4899194: Dispatch (tclBasic.c:4817)
      ==1880520==    by 0x489921A: TclNRRunCallbacks (tclBasic.c:4857)
      ==1880520==    by 0x4898ADC: Tcl_EvalObjv (tclBasic.c:4576)
      ==1880520==    by 0x489B1AF: TclEvalEx (tclBasic.c:5728)
      ==1880520==    by 0x49C5F82: Tcl_FSEvalFileEx (tclIOUtil.c:1782)
      ==1880520==    by 0x49D4A97: Tcl_MainEx (tclMain.c:399)
      ==1880520==    by 0x10A3B4: main (tclAppInit.c:91)
      </verbatim></code>
      
      The problem is that storage is allocated in <code>TclZipfs_MountBuffer</code>,
      and the exit handler that cleans it up is established in
      <code>ZipFSCatalogFilesystem</code>, but in some cases that routine returns
      before establishing the exit handle.
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "69. Other"
    13. title initialized to:
      zipfs-5.1 Valgrind, TclZipfs_MountBuffer, "1 blocks are definitely lost"
      
    14. type initialized to: "Bug"
  2. Ticket change [d3991bde8d] (rid 193837) by pooryorick on 2021-04-20 19:36:39:

    1. icomment: "Fixed in [dd4f24fce90dc392]."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [b5f04b7a60] (rid 193838) by pooryorick on 2021-04-20 19:48:16:

    1. closedate changed to: "2459325.32519006"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"