Overview
| Artifact ID: | 4fd750dc39f20de60c1aebaa11815c6787c342eb |
|---|---|
| Ticket: | 990552ffffffffffffffffffffffffffffffffff
TclFinalizeFilesystem leaks with TCL_THREADS |
| User & Date: | mistachkin on 2004-07-13 23:19:35 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
TclFinalizeFilesystem is being called after Tcl_FinalizeThread from Tcl_Finalize. When TCL_THREADS is enabled, this causes a large leak because the thread specific data allocated by TclFreeObj is never freed by TclFinalizeThreadData (it has already been called by Tcl_FinalizeThread). Here is the valgrind output: 65751 bytes in 514 blocks are still reachable in loss record 2 of 2 at 0x3C0250D5: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck.so) by 0x3C04EE16: TclpAlloc (generic/tclAlloc.c:677) by 0x3C0588F9: Tcl_DbCkalloc (generic/tclCkalloc.c:375) by 0x3C0E9F7E: Tcl_GetThreadData (generic/tclThread.c:109) by 0x3C0D1A81: TclFreeObj (generic/tclObj.c:770) by 0x3C0D384D: Tcl_DbDecrRefCount (generic/tclObj.c:2777) by 0x3C0BE978: TclFinalizeFilesystem (generic/tclIOUtil.c:707) by 0x3C08CF35: Tcl_Finalize (generic/tclEvent.c:910) by 0x3C08CB98: Tcl_Exit (generic/tclEvent.c:638) by 0x3C0C91CA: Tcl_Main (generic/tclMain.c:674) by 0x8048637: main (unix/tclAppInit.c:90)
- foundin changed to: "None"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "mistachkin"
- subsystem changed to: "37. File System"
- title changed to: "TclFinalizeFilesystem leaks with TCL_THREADS"
- type changed to: "Bug"