Posted to tcl by de at Fri Aug 08 23:48:32 GMT 2008view raw
- With 8.5.4rc0, --enable-symbols --disable-threads, -DPURIFY added,
- on linux valgrind says to this 2 line script
- cd ~/
- proc exit args {}
- ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 30 from 3)
- malloc/free: in use at exit: 46 bytes in 3 blocks.
- malloc/free: 4,875 allocs, 4,872 frees, 290,003 bytes allocated.
- For counts of detected errors, rerun with: -v
- searching for pointers to 3 not-freed blocks.
- checked 110,252 bytes.
- 11 bytes in 1 blocks are definitely lost in loss record 2 of 3
- at 0x4019925: malloc (m_replacemalloc/vg_replace_malloc.c:207)
- by 0x404036D: TclpAlloc (/home/rolf/tcltk/tcl8.5.4/generic/tclAlloc.c:706)
- by 0x404ACE5: Tcl_Alloc (/home/rolf/tcltk/tcl8.5.4/generic/tclCkalloc.c:1019)
- by 0x410A958: TclpGetNativeCwd (/home/rolf/tcltk/tcl8.5.4/unix/tclUnixFile.c:705)
- by 0x40C340A: Tcl_FSChdir (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:2983)
- by 0x404DCE2: Tcl_CdObjCmd (/home/rolf/tcltk/tcl8.5.4/generic/tclCmdAH.c:332)
- by 0x4044224: TclEvalObjvInternal (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:3690)
- by 0x4045133: TclEvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4338)
- by 0x404489D: Tcl_EvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4043)
- by 0x40C23C7: Tcl_FSEvalFileEx (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:1820)
- by 0x40CA467: Tcl_Main (/home/rolf/tcltk/tcl8.5.4/generic/tclMain.c:441)
- by 0x804C975: main (/home/rolf/tcltk/tcl8.5.4/unix/tclAppInit.c:87)
- 35 (24 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 3 of 3
- at 0x4019925: malloc (m_replacemalloc/vg_replace_malloc.c:207)
- by 0x404036D: TclpAlloc (/home/rolf/tcltk/tcl8.5.4/generic/tclAlloc.c:706)
- by 0x404ACE5: Tcl_Alloc (/home/rolf/tcltk/tcl8.5.4/generic/tclCkalloc.c:1019)
- by 0x40EB874: Tcl_NewStringObj (/home/rolf/tcltk/tcl8.5.4/generic/tclStringObj.c:210)
- by 0x40C13CE: FsUpdateCwd (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:745)
- by 0x40C3429: Tcl_FSChdir (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:2985)
- by 0x404DCE2: Tcl_CdObjCmd (/home/rolf/tcltk/tcl8.5.4/generic/tclCmdAH.c:332)
- by 0x4044224: TclEvalObjvInternal (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:3690)
- by 0x4045133: TclEvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4338)
- by 0x404489D: Tcl_EvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4043)
- by 0x40C23C7: Tcl_FSEvalFileEx (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:1820)
- by 0x40CA467: Tcl_Main (/home/rolf/tcltk/tcl8.5.4/generic/tclMain.c:441)
- LEAK SUMMARY:
- definitely lost: 35 bytes in 2 blocks.
- indirectly lost: 11 bytes in 1 blocks.
- possibly lost: 0 bytes in 0 blocks.
- still reachable: 0 bytes in 0 blocks.
- suppressed: 0 bytes in 0 blocks.