Artifacts Associated With Ticket d7849f77215ce9a2
Ticket change [8405871ffa] (rid 218279) by dgp on 2023-09-15 17:15:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
==13348== 4,148 bytes in 10 blocks are definitely lost in loss record 12,350 of 12,586 ==13348== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==13348== by 0x60FE28: TclpAlloc (tclAlloc.c:699) ==13348== by 0x5C3E6A: AllocateZipFile (tclZipfs.c:1076) ==13348== by 0x5C631E: TclZipfs_MountBuffer (tclZipfs.c:2164) ==13348== by 0x5C6946: ZipFSMountBufferObjCmd (tclZipfs.c:2391) ==13348== by 0x43593B: Dispatch (tclBasic.c:4920) ==13348== by 0x4359C3: TclNRRunCallbacks (tclBasic.c:4960) ==13348== by 0x43528F: Tcl_EvalObjv (tclBasic.c:4679) ==13348== by 0x4378FB: TclEvalEx (tclBasic.c:5837) ==13348== by 0x55B42A: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==13348== by 0x5680B2: Tcl_MainEx (tclMain.c:405) ==13348== by 0x40FF78: main (tclAppInit.c:94)
- foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "37. File System"
- title initialized to: "valgrind detected memory leak in latest zipfs"
- type initialized to: "Bug"
Ticket change [11febb7ba8] (rid 218284) by apnadkarni on 2023-09-16 02:45:16:
- icomment:
Latent bugs, triggered by now actually having tests. First analysis - ZipChannel.ubuf which is leaked may point to allocated memory (in which case it needs to be freed) or within a mapped zip file (in which case it must not). However, insufficient information is maintained as to whether it needs freeing. Currently, it is only freed when the file was compressed. However, memory is also allocated if file was encrypted without being compressed, or if the file is opened for write. Further complicating matters, in the encrypted case the field is updated to point *within* the allocation so the pointer to the allocation base is "lost". Fixing needs some thought.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [fd66c56af1] (rid 218297) by apnadkarni on 2023-09-16 08:23:45:
- icomment:
Fixed for 8.7 in [96a4c5ad17]. ``` ==308386== LEAK SUMMARY: ==308386== definitely lost: 0 bytes in 0 blocks ==308386== indirectly lost: 0 bytes in 0 blocks ==308386== possibly lost: 0 bytes in 0 blocks ==308386== still reachable: 16 bytes in 1 blocks ==308386== suppressed: 8,809 bytes in 22 blocks ==308386== ==308386== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) --308386-- ```
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [7051ab387c] (rid 218305) by apnadkarni on 2023-09-16 11:02:28:
- closedate changed to: "2460203.960048"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"