Posted to tcl by de at Fri Aug 08 23:48:32 GMT 2008view raw

  1. With 8.5.4rc0, --enable-symbols --disable-threads, -DPURIFY added,
  2. on linux valgrind says to this 2 line script
  3.  
  4. cd ~/
  5. proc exit args {}
  6.  
  7. ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 30 from 3)
  8. malloc/free: in use at exit: 46 bytes in 3 blocks.
  9. malloc/free: 4,875 allocs, 4,872 frees, 290,003 bytes allocated.
  10. For counts of detected errors, rerun with: -v
  11. searching for pointers to 3 not-freed blocks.
  12. checked 110,252 bytes.
  13.  
  14. 11 bytes in 1 blocks are definitely lost in loss record 2 of 3
  15. at 0x4019925: malloc (m_replacemalloc/vg_replace_malloc.c:207)
  16. by 0x404036D: TclpAlloc (/home/rolf/tcltk/tcl8.5.4/generic/tclAlloc.c:706)
  17. by 0x404ACE5: Tcl_Alloc (/home/rolf/tcltk/tcl8.5.4/generic/tclCkalloc.c:1019)
  18. by 0x410A958: TclpGetNativeCwd (/home/rolf/tcltk/tcl8.5.4/unix/tclUnixFile.c:705)
  19. by 0x40C340A: Tcl_FSChdir (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:2983)
  20. by 0x404DCE2: Tcl_CdObjCmd (/home/rolf/tcltk/tcl8.5.4/generic/tclCmdAH.c:332)
  21. by 0x4044224: TclEvalObjvInternal (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:3690)
  22. by 0x4045133: TclEvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4338)
  23. by 0x404489D: Tcl_EvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4043)
  24. by 0x40C23C7: Tcl_FSEvalFileEx (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:1820)
  25. by 0x40CA467: Tcl_Main (/home/rolf/tcltk/tcl8.5.4/generic/tclMain.c:441)
  26. by 0x804C975: main (/home/rolf/tcltk/tcl8.5.4/unix/tclAppInit.c:87)
  27.  
  28.  
  29. 35 (24 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 3 of 3
  30. at 0x4019925: malloc (m_replacemalloc/vg_replace_malloc.c:207)
  31. by 0x404036D: TclpAlloc (/home/rolf/tcltk/tcl8.5.4/generic/tclAlloc.c:706)
  32. by 0x404ACE5: Tcl_Alloc (/home/rolf/tcltk/tcl8.5.4/generic/tclCkalloc.c:1019)
  33. by 0x40EB874: Tcl_NewStringObj (/home/rolf/tcltk/tcl8.5.4/generic/tclStringObj.c:210)
  34. by 0x40C13CE: FsUpdateCwd (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:745)
  35. by 0x40C3429: Tcl_FSChdir (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:2985)
  36. by 0x404DCE2: Tcl_CdObjCmd (/home/rolf/tcltk/tcl8.5.4/generic/tclCmdAH.c:332)
  37. by 0x4044224: TclEvalObjvInternal (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:3690)
  38. by 0x4045133: TclEvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4338)
  39. by 0x404489D: Tcl_EvalEx (/home/rolf/tcltk/tcl8.5.4/generic/tclBasic.c:4043)
  40. by 0x40C23C7: Tcl_FSEvalFileEx (/home/rolf/tcltk/tcl8.5.4/generic/tclIOUtil.c:1820)
  41. by 0x40CA467: Tcl_Main (/home/rolf/tcltk/tcl8.5.4/generic/tclMain.c:441)
  42.  
  43. LEAK SUMMARY:
  44. definitely lost: 35 bytes in 2 blocks.
  45. indirectly lost: 11 bytes in 1 blocks.
  46. possibly lost: 0 bytes in 0 blocks.
  47. still reachable: 0 bytes in 0 blocks.
  48. suppressed: 0 bytes in 0 blocks.
  49.