Posted to tcl by miguel at Wed Jul 13 12:54:41 GMT 2011view raw

  1. mig@ari:~/DEVEL/tcl-core/core-8-4/unix$ valgrind ./tclsh
  2. ==23664== Memcheck, a memory error detector
  3. ==23664== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
  4. ==23664== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
  5. ==23664== Command: ./tclsh
  6. ==23664==
  7. % proc {} x {$x}
  8. % []
  9. ==23664== Invalid write of size 1
  10. ==23664== at 0x41D2F9: Tcl_ConvertCountedElement (tclUtil.c:742)
  11. ==23664== by 0x4167BC: TclObjInterpProc (tclProc.c:1159)
  12. ==23664== by 0x42B26F: TclEvalObjvInternal (tclBasic.c:3260)
  13. ==23664== by 0x46229F: TclExecuteByteCode (tclExecute.c:1589)
  14. ==23664== by 0x46149A: TclCompEvalObj (tclExecute.c:1105)
  15. ==23664== by 0x42C9DE: Tcl_EvalObjEx (tclBasic.c:5241)
  16. ==23664== by 0x47392E: Tcl_RecordAndEvalObj (tclHistory.c:140)
  17. ==23664== by 0x40FE46: Tcl_Main (tclMain.c:391)
  18. ==23664== by 0x40F61A: main (tclAppInit.c:88)
  19. ==23664== Address 0x574b432 is 0 bytes after a block of size 2 alloc'd
  20. ==23664== at 0x4C2815C: malloc (vg_replace_malloc.c:236)
  21. ==23664== by 0x4BA2C5: TclpAlloc (tclAlloc.c:687)
  22. ==23664== by 0x430D5C: Tcl_Alloc (tclCkalloc.c:1009)
  23. ==23664== by 0x41679A: TclObjInterpProc (tclProc.c:1158)
  24. ==23664== by 0x42B26F: TclEvalObjvInternal (tclBasic.c:3260)
  25. ==23664== by 0x46229F: TclExecuteByteCode (tclExecute.c:1589)
  26. ==23664== by 0x46149A: TclCompEvalObj (tclExecute.c:1105)
  27. ==23664== by 0x42C9DE: Tcl_EvalObjEx (tclBasic.c:5241)
  28. ==23664== by 0x47392E: Tcl_RecordAndEvalObj (tclHistory.c:140)
  29. ==23664== by 0x40FE46: Tcl_Main (tclMain.c:391)
  30. ==23664== by 0x40F61A: main (tclAppInit.c:88)
  31. ==23664==
  32. wrong # args: should be "{} x"