Tcl Source Code

Artifact [10f6880c38]
Login

Artifact 10f6880c38d6fe6f7481b267ebf68c6803e35aff:

Attachment "valgrind.out" to ticket [2978773fff] added by sbron 2010-03-30 03:01:03.
==30577== Memcheck, a memory error detector
==30577== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==30577== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==30577== Command: /home/sbron/user/bin/tclsh8.5 segfault.tcl
==30577== 
==30577== Invalid read of size 8
==30577==    at 0x4EF5F4C: InvokeTclMethod (tclIORChan.c:2260)
==30577==    by 0x4EF543B: ReflectWatch (tclIORChan.c:1568)
==30577==    by 0x4EED3E6: UpdateInterest (tclIO.c:7954)
==30577==    by 0x4EE8BCA: Tcl_GetsObj (tclIO.c:4326)
==30577==    by 0x4EF1440: Tcl_GetsObjCmd (tclIOCmd.c:324)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577==    by 0x4F2183A: TclObjInterpProcCore (tclProc.c:1758)
==30577==    by 0x4F21771: TclObjInterpProc (tclProc.c:1652)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577==    by 0x4F2183A: TclObjInterpProcCore (tclProc.c:1758)
==30577==  Address 0x5a03158 is 8 bytes inside a block of size 48 free'd
==30577==    at 0x4C23DD8: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30577==    by 0x4E5D983: TclpFree (tclAlloc.c:731)
==30577==    by 0x4E6A3B1: Tcl_Free (tclCkalloc.c:1209)
==30577==    by 0x4EF5C15: FreeReflectedChannel (tclIORChan.c:2114)
==30577==    by 0x4EF4D59: ReflectClose (tclIORChan.c:1160)
==30577==    by 0x4EE682B: CloseChannel (tclIO.c:2577)
==30577==    by 0x4EE65E3: FlushChannel (tclIO.c:2472)
==30577==    by 0x4EE71F0: Tcl_Close (tclIO.c:3034)
==30577==    by 0x4EE4F15: Tcl_UnregisterChannel (tclIO.c:946)
==30577==    by 0x4EF1D52: Tcl_CloseObjCmd (tclIOCmd.c:660)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577== 
==30577== Invalid read of size 8
==30577==    at 0x4EF5F63: InvokeTclMethod (tclIORChan.c:2261)
==30577==    by 0x4EF543B: ReflectWatch (tclIORChan.c:1568)
==30577==    by 0x4EED3E6: UpdateInterest (tclIO.c:7954)
==30577==    by 0x4EE8BCA: Tcl_GetsObj (tclIO.c:4326)
==30577==    by 0x4EF1440: Tcl_GetsObjCmd (tclIOCmd.c:324)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577==    by 0x4F2183A: TclObjInterpProcCore (tclProc.c:1758)
==30577==    by 0x4F21771: TclObjInterpProc (tclProc.c:1652)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577==    by 0x4F2183A: TclObjInterpProcCore (tclProc.c:1758)
==30577==  Address 0x5a03158 is 8 bytes inside a block of size 48 free'd
==30577==    at 0x4C23DD8: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30577==    by 0x4E5D983: TclpFree (tclAlloc.c:731)
==30577==    by 0x4E6A3B1: Tcl_Free (tclCkalloc.c:1209)
==30577==    by 0x4EF5C15: FreeReflectedChannel (tclIORChan.c:2114)
==30577==    by 0x4EF4D59: ReflectClose (tclIORChan.c:1160)
==30577==    by 0x4EE682B: CloseChannel (tclIO.c:2577)
==30577==    by 0x4EE65E3: FlushChannel (tclIO.c:2472)
==30577==    by 0x4EE71F0: Tcl_Close (tclIO.c:3034)
==30577==    by 0x4EE4F15: Tcl_UnregisterChannel (tclIO.c:946)
==30577==    by 0x4EF1D52: Tcl_CloseObjCmd (tclIOCmd.c:660)
==30577==    by 0x4E6224E: TclEvalObjvInternal (tclBasic.c:3689)
==30577==    by 0x4EC8946: TclExecuteByteCode (tclExecute.c:2419)
==30577== 
==30577== 
==30577== HEAP SUMMARY:
==30577==     in use at exit: 208,989 bytes in 3,055 blocks
==30577==   total heap usage: 7,435 allocs, 4,380 frees, 712,889 bytes allocated
==30577== 
==30577== LEAK SUMMARY:
==30577==    definitely lost: 0 bytes in 0 blocks
==30577==    indirectly lost: 0 bytes in 0 blocks
==30577==      possibly lost: 25,367 bytes in 611 blocks
==30577==    still reachable: 183,622 bytes in 2,444 blocks
==30577==         suppressed: 0 bytes in 0 blocks
==30577== Rerun with --leak-check=full to see details of leaked memory
==30577== 
==30577== For counts of detected and suppressed errors, rerun with: -v
==30577== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 4 from 4)