Posted to tcl by manveru at Thu Mar 11 01:59:44 GMT 2010view raw

  1. delta github/manveru/ver;master % valgrind --track-origins=yes --tool=memcheck --num-callers=8 --leak-check=no -v wish mini.tcl
  2. ==1937== Memcheck, a memory error detector
  3. ==1937== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
  4. ==1937== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
  5. ==1937== Command: wish mini.tcl
  6. ==1937==
  7. --1937-- Valgrind options:
  8. --1937-- --track-origins=yes
  9. --1937-- --tool=memcheck
  10. --1937-- --num-callers=8
  11. --1937-- --leak-check=no
  12. --1937-- -v
  13. --1937-- Contents of /proc/version:
  14. --1937-- Linux version 2.6.32-ARCH (tobias@T-POWA-LX) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Tue Feb 23 19:24:08 UTC 2010
  15. --1937-- Arch and hwcaps: X86, x86-sse1-sse2
  16. --1937-- Page sizes: currently 4096, max supported 4096
  17. --1937-- Valgrind library directory: /usr/lib/valgrind
  18. --1937-- Reading syms from /lib/ld-2.11.1.so (0x4000000)
  19. --1937-- Reading syms from /usr/bin/wish8.5 (0x8048000)
  20. --1937-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000)
  21. --1937-- object doesn't have a symbol table
  22. --1937-- object doesn't have a dynamic symbol table
  23. --1937-- Reading suppressions file: /usr/lib/valgrind/default.supp
  24. --1937-- REDIR: 0x4016840 (index) redirected to 0x3803dfd3 (???)
  25. --1937-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so (0x401f000)
  26. --1937-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4021000)
  27. ==1937== WARNING: new redirection conflicts with existing -- ignoring it
  28. --1937-- new: 0x04016840 (index ) R-> 0x040245a0 index
  29. --1937-- REDIR: 0x40169e0 (strlen) redirected to 0x4024890 (strlen)
  30. --1937-- Reading syms from /usr/lib/libtk8.5.so (0x4029000)
  31. --1937-- Reading syms from /usr/lib/libtcl8.5.so (0x413b000)
  32. --1937-- Reading syms from /lib/libpthread-2.11.1.so (0x4267000)
  33. --1937-- Reading syms from /usr/lib/libX11.so.6.3.0 (0x4281000)
  34. --1937-- Reading syms from /usr/lib/libXss.so.1.0.0 (0x439b000)
  35. --1937-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x439e000)
  36. --1937-- Reading syms from /usr/lib/libXft.so.2.1.13 (0x43ac000)
  37. --1937-- Reading syms from /usr/lib/libfreetype.so.6.4.0 (0x43bf000)
  38. --1937-- Reading syms from /usr/lib/libfontconfig.so.1.4.4 (0x4444000)
  39. --1937-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x4473000)
  40. --1937-- Reading syms from /lib/libdl-2.11.1.so (0x447c000)
  41. --1937-- Reading syms from /lib/libm-2.11.1.so (0x4480000)
  42. --1937-- Reading syms from /lib/libc-2.11.1.so (0x44a6000)
  43. --1937-- Reading syms from /usr/lib/libxcb.so.1.1.0 (0x45ed000)
  44. --1937-- Reading syms from /usr/lib/libz.so.1.2.3.9 (0x4606000)
  45. --1937-- Reading syms from /usr/lib/libexpat.so.1.5.2 (0x461b000)
  46. --1937-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x4641000)
  47. --1937-- Reading syms from /usr/lib/libXdmcp.so.6.0.0 (0x4644000)
  48. --1937-- REDIR: 0x4519690 (index) redirected to 0x4024540 (index)
  49. --1937-- REDIR: 0x451b440 (memchr) redirected to 0x4024cb0 (memchr)
  50. --1937-- REDIR: 0x451a120 (rindex) redirected to 0x40244b0 (rindex)
  51. --1937-- REDIR: 0x451b940 (memset) redirected to 0x4025840 (memset)
  52. --1937-- REDIR: 0x4519800 (strcmp) redirected to 0x4024b90 (strcmp)
  53. --1937-- REDIR: 0x4519d70 (strlen) redirected to 0x4024870 (strlen)
  54. --1937-- REDIR: 0x4519f50 (strncmp) redirected to 0x4024b20 (strncmp)
  55. --1937-- REDIR: 0x451ea10 (strchrnul) redirected to 0x4025930 (strchrnul)
  56. --1937-- REDIR: 0x45165b0 (malloc) redirected to 0x4023877 (malloc)
  57. --1937-- REDIR: 0x451b9a0 (mempcpy) redirected to 0x4025980 (mempcpy)
  58. --1937-- REDIR: 0x451be50 (memcpy) redirected to 0x4024cf0 (memcpy)
  59. --1937-- REDIR: 0x45164d0 (free) redirected to 0x4023491 (free)
  60. --1937-- REDIR: 0x451bb30 (stpcpy) redirected to 0x40255a0 (stpcpy)
  61. --1937-- REDIR: 0x4515cb0 (calloc) redirected to 0x4022b87 (calloc)
  62. --1937-- REDIR: 0x4519870 (strcpy) redirected to 0x40248d0 (strcpy)
  63. --1937-- Reading syms from /lib/libnss_files-2.11.1.so (0x553b000)
  64. --1937-- REDIR: 0x451b8d0 (memmove) redirected to 0x40258b0 (memmove)
  65. --1937-- REDIR: 0x4517550 (realloc) redirected to 0x4023926 (realloc)
  66. --1937-- REDIR: 0x451a040 (strncpy) redirected to 0x40249b0 (strncpy)
  67. --1937-- REDIR: 0x45194e0 (strcat) redirected to 0x4024630 (strcat)
  68. --1937-- REDIR: 0x451e940 (rawmemchr) redirected to 0x4025960 (rawmemchr)
  69. --1937-- REDIR: 0x451b5e0 (bcmp) redirected to 0x4025500 (bcmp)
  70. --1937-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x423c000)
  71. --1937-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x4245000)
  72. ==1937== Invalid read of size 1
  73. ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  74. ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
  75. ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
  76. ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
  77. ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
  78. ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
  79. ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
  80. ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
  81. ==1937== Address 0x10 is not stack'd, malloc'd or (recently) free'd
  82. ==1937==
  83. ==1937==
  84. ==1937== Process terminating with default action of signal 11 (SIGSEGV)
  85. ==1937== Access not within mapped region at address 0x10
  86. ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  87. ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
  88. ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
  89. ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
  90. ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
  91. ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
  92. ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
  93. ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
  94. ==1937== If you believe this happened as a result of a stack
  95. ==1937== overflow in your program's main thread (unlikely but
  96. ==1937== possible), you can try to increase the size of the
  97. ==1937== main thread stack using the --main-stacksize= flag.
  98. ==1937== The main thread stack size used in this run was 8388608.
  99. name 1: 0x4120206name 2: 0x411df1dname 3: 0x10--1937-- Discarding syms at 0x553c9f0-0x5543cc8 in /lib/libnss_files-2.11.1.so due to munmap()
  100. ==1937==
  101. ==1937== HEAP SUMMARY:
  102. ==1937== in use at exit: 1,549,294 bytes in 2,180 blocks
  103. ==1937== total heap usage: 4,013 allocs, 1,833 frees, 3,537,980 bytes allocated
  104. ==1937==
  105. ==1937== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 53 from 10)
  106. ==1937==
  107. ==1937== 1 errors in context 1 of 1:
  108. ==1937== Invalid read of size 1
  109. ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  110. ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
  111. ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
  112. ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
  113. ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
  114. ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
  115. ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
  116. ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
  117. ==1937== Address 0x10 is not stack'd, malloc'd or (recently) free'd
  118. ==1937==
  119. --1937--
  120. --1937-- used_suppression: 53 dl-hack3-cond-1
  121. ==1937==
  122. ==1937== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 53 from 10)