==16111== Memcheck, a memory error detector.
==16111== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==16111== Using LibVEX rev 1804, a library for dynamic binary translation.
==16111== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==16111== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==16111== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==16111== For more details, rerun with: -v
==16111== 
==16111== My PID = 16111, parent PID = 6690.  Prog and args are:
==16111==    /usr/local/tcl/8.6a0-dbg/bin/tclsh
==16111==    oo.test
==16111==    -constraints
==16111==    knownBug
==16111== 
==16111== Invalid read of size 4
==16111==    at 0x46E37A8: ReleaseClassContents (tclOO.c:602)
==16111==    by 0x46E36C6: ObjectRenamedTrace (tclOO.c:558)
==16111==    by 0x4051890: CallCommandTraces (tclBasic.c:2914)
==16111==    by 0x405156C: Tcl_DeleteCommandFromToken (tclBasic.c:2737)
==16111==    by 0x46E6C0B: ObjectDestroy (tclOO.c:2143)
==16111==    by 0x46EF7FB: BasicMethodInvoke (tclOOMethod.c:318)
==16111==    by 0x46E8C81: TclOOInvokeContext (tclOOCall.c:221)
==16111==    by 0x46E64BD: TclOOObjectCmdCore (tclOO.c:1898)
==16111==    by 0x46E607B: PublicObjectCmd (tclOO.c:1759)
==16111==    by 0x4052870: TclEvalObjvInternal (tclBasic.c:3645)
==16111==    by 0x40538AA: TclEvalEx (tclBasic.c:4292)
==16111==    by 0x4052FEA: Tcl_EvalEx (tclBasic.c:3998)
==16111==  Address 0x5153304 is 4 bytes inside a block of size 148 free'd
==16111==    at 0x402565C: free (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E717: TclpFree (tclAlloc.c:729)
==16111==    by 0x40597A0: Tcl_Free (tclCkalloc.c:1182)
==16111==    by 0x40FD21C: Tcl_Release (tclPreserve.c:230)
==16111==    by 0x46E36FA: ObjectRenamedTrace (tclOO.c:562)
==16111==    by 0x4051890: CallCommandTraces (tclBasic.c:2914)
==16111==    by 0x405156C: Tcl_DeleteCommandFromToken (tclBasic.c:2737)
==16111==    by 0x46E6C0B: ObjectDestroy (tclOO.c:2143)
==16111==    by 0x46EF7FB: BasicMethodInvoke (tclOOMethod.c:318)
==16111==    by 0x46E8C81: TclOOInvokeContext (tclOOCall.c:221)
==16111==    by 0x46E64BD: TclOOObjectCmdCore (tclOO.c:1898)
==16111==    by 0x46E607B: PublicObjectCmd (tclOO.c:1759)
==16111== 
==16111== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 1)
==16111== malloc/free: in use at exit: 538,602 bytes in 10,865 blocks.
==16111== malloc/free: 165,428 allocs, 154,563 frees, 9,306,520 bytes allocated.
==16111== For counts of detected errors, rerun with: -v
==16111== searching for pointers to 10,865 not-freed blocks.
==16111== checked 532,552 bytes.
==16111== 
==16111== 
==16111== 68 bytes in 1 blocks are still reachable in loss record 1 of 6
==16111==    at 0x4025AB8: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x4013E5F: (within /lib/ld-2.6.1.so)
==16111== 
==16111== 
==16111== 180 bytes in 11 blocks are still reachable in loss record 2 of 6
==16111==    at 0x4025AB8: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x4025C0C: realloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E741: TclpRealloc (tclAlloc.c:754)
==16111==    by 0x4059687: Tcl_Realloc (tclCkalloc.c:1105)
==16111==    by 0x40E403E: Tcl_Export (tclNamesp.c:1317)
==16111==    by 0x404F345: Tcl_CreateInterp (tclBasic.c:735)
==16111==    by 0x40E1D36: Tcl_Main (tclMain.c:349)
==16111==    by 0x80486EB: main (tclAppInit.c:87)
==16111== 
==16111== 
==16111== 3,590 (756 direct, 2,834 indirect) bytes in 11 blocks are definitely lost in loss record 3 of 6
==16111==    at 0x4025AB8: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E6F4: TclpAlloc (tclAlloc.c:706)
==16111==    by 0x405957C: Tcl_Alloc (tclCkalloc.c:1019)
==16111==    by 0x4105B19: Tcl_NewStringObj (tclStringObj.c:210)
==16111==    by 0x46E2EBB: ???
==16111==    by 0x46E27C5: ???
==16111==    by 0x40E0C0D: Tcl_LoadObjCmd (tclLoad.c:432)
==16111==    by 0x4052870: TclEvalObjvInternal (tclBasic.c:3645)
==16111==    by 0x40538AA: TclEvalEx (tclBasic.c:4292)
==16111==    by 0x4052FEA: Tcl_EvalEx (tclBasic.c:3998)
==16111==    by 0x40F951A: PkgRequireCore (tclPkg.c:486)
==16111==    by 0x40F928B: Tcl_PkgRequireProc (tclPkg.c:329)
==16111== 
==16111== 
==16111== 2,834 bytes in 130 blocks are indirectly lost in loss record 4 of 6
==16111==    at 0x4025AB8: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E6F4: TclpAlloc (tclAlloc.c:706)
==16111==    by 0x405957C: Tcl_Alloc (tclCkalloc.c:1019)
==16111==    by 0x4105B4F: Tcl_NewStringObj (tclStringObj.c:210)
==16111==    by 0x46E2EBB: ???
==16111==    by 0x46E27C5: ???
==16111==    by 0x40E0C0D: Tcl_LoadObjCmd (tclLoad.c:432)
==16111==    by 0x4052870: TclEvalObjvInternal (tclBasic.c:3645)
==16111==    by 0x40538AA: TclEvalEx (tclBasic.c:4292)
==16111==    by 0x4052FEA: Tcl_EvalEx (tclBasic.c:3998)
==16111==    by 0x40F951A: PkgRequireCore (tclPkg.c:486)
==16111==    by 0x40F928B: Tcl_PkgRequireProc (tclPkg.c:329)
==16111== 
==16111== 
==16111== 143,332 bytes in 227 blocks are still reachable in loss record 5 of 6
==16111==    at 0x4025B92: realloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E741: TclpRealloc (tclAlloc.c:754)
==16111==    by 0x4059747: Tcl_AttemptRealloc (tclCkalloc.c:1149)
==16111==    by 0x4106398: Tcl_AttemptSetObjLength (tclStringObj.c:886)
==16111==    by 0x4106DAE: AppendUtfToUtfRep (tclStringObj.c:1481)
==16111==    by 0x4106756: Tcl_AppendLimitedToObj (tclStringObj.c:1085)
==16111==    by 0x41067E9: Tcl_AppendToObj (tclStringObj.c:1126)
==16111==    by 0x40EAB8D: TclMakeEnsemble (tclNamesp.c:5956)
==16111==    by 0x40D48EA: TclInitChanCmd (tclIOCmd.c:1858)
==16111==    by 0x404F17B: Tcl_CreateInterp (tclBasic.c:668)
==16111==    by 0x40E1D36: Tcl_Main (tclMain.c:349)
==16111==    by 0x80486EB: main (tclAppInit.c:87)
==16111== 
==16111== 
==16111== 391,432 bytes in 10,485 blocks are still reachable in loss record 6 of 6
==16111==    at 0x4025AB8: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==16111==    by 0x404E6F4: TclpAlloc (tclAlloc.c:706)
==16111==    by 0x405957C: Tcl_Alloc (tclCkalloc.c:1019)
==16111==    by 0x4105B19: Tcl_NewStringObj (tclStringObj.c:210)
==16111==    by 0x4125EA5: TclpFindExecutable (tclUnixFile.c:138)
==16111==    by 0x40A12C3: Tcl_FindExecutable (tclEncoding.c:1440)
==16111==    by 0x40E1D31: Tcl_Main (tclMain.c:347)
==16111==    by 0x80486EB: main (tclAppInit.c:87)
==16111== 
==16111== LEAK SUMMARY:
==16111==    definitely lost: 756 bytes in 11 blocks.
==16111==    indirectly lost: 2,834 bytes in 130 blocks.
==16111==      possibly lost: 0 bytes in 0 blocks.
==16111==    still reachable: 535,012 bytes in 10,724 blocks.
==16111==         suppressed: 0 bytes in 0 blocks.
