Posted to tcl by manveru at Thu Mar 11 01:59:44 GMT 2010view raw
- delta github/manveru/ver;master % valgrind --track-origins=yes --tool=memcheck --num-callers=8 --leak-check=no -v wish mini.tcl
- ==1937== Memcheck, a memory error detector
- ==1937== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
- ==1937== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
- ==1937== Command: wish mini.tcl
- ==1937==
- --1937-- Valgrind options:
- --1937-- --track-origins=yes
- --1937-- --tool=memcheck
- --1937-- --num-callers=8
- --1937-- --leak-check=no
- --1937-- -v
- --1937-- Contents of /proc/version:
- --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
- --1937-- Arch and hwcaps: X86, x86-sse1-sse2
- --1937-- Page sizes: currently 4096, max supported 4096
- --1937-- Valgrind library directory: /usr/lib/valgrind
- --1937-- Reading syms from /lib/ld-2.11.1.so (0x4000000)
- --1937-- Reading syms from /usr/bin/wish8.5 (0x8048000)
- --1937-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000)
- --1937-- object doesn't have a symbol table
- --1937-- object doesn't have a dynamic symbol table
- --1937-- Reading suppressions file: /usr/lib/valgrind/default.supp
- --1937-- REDIR: 0x4016840 (index) redirected to 0x3803dfd3 (???)
- --1937-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so (0x401f000)
- --1937-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4021000)
- ==1937== WARNING: new redirection conflicts with existing -- ignoring it
- --1937-- new: 0x04016840 (index ) R-> 0x040245a0 index
- --1937-- REDIR: 0x40169e0 (strlen) redirected to 0x4024890 (strlen)
- --1937-- Reading syms from /usr/lib/libtk8.5.so (0x4029000)
- --1937-- Reading syms from /usr/lib/libtcl8.5.so (0x413b000)
- --1937-- Reading syms from /lib/libpthread-2.11.1.so (0x4267000)
- --1937-- Reading syms from /usr/lib/libX11.so.6.3.0 (0x4281000)
- --1937-- Reading syms from /usr/lib/libXss.so.1.0.0 (0x439b000)
- --1937-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x439e000)
- --1937-- Reading syms from /usr/lib/libXft.so.2.1.13 (0x43ac000)
- --1937-- Reading syms from /usr/lib/libfreetype.so.6.4.0 (0x43bf000)
- --1937-- Reading syms from /usr/lib/libfontconfig.so.1.4.4 (0x4444000)
- --1937-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x4473000)
- --1937-- Reading syms from /lib/libdl-2.11.1.so (0x447c000)
- --1937-- Reading syms from /lib/libm-2.11.1.so (0x4480000)
- --1937-- Reading syms from /lib/libc-2.11.1.so (0x44a6000)
- --1937-- Reading syms from /usr/lib/libxcb.so.1.1.0 (0x45ed000)
- --1937-- Reading syms from /usr/lib/libz.so.1.2.3.9 (0x4606000)
- --1937-- Reading syms from /usr/lib/libexpat.so.1.5.2 (0x461b000)
- --1937-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x4641000)
- --1937-- Reading syms from /usr/lib/libXdmcp.so.6.0.0 (0x4644000)
- --1937-- REDIR: 0x4519690 (index) redirected to 0x4024540 (index)
- --1937-- REDIR: 0x451b440 (memchr) redirected to 0x4024cb0 (memchr)
- --1937-- REDIR: 0x451a120 (rindex) redirected to 0x40244b0 (rindex)
- --1937-- REDIR: 0x451b940 (memset) redirected to 0x4025840 (memset)
- --1937-- REDIR: 0x4519800 (strcmp) redirected to 0x4024b90 (strcmp)
- --1937-- REDIR: 0x4519d70 (strlen) redirected to 0x4024870 (strlen)
- --1937-- REDIR: 0x4519f50 (strncmp) redirected to 0x4024b20 (strncmp)
- --1937-- REDIR: 0x451ea10 (strchrnul) redirected to 0x4025930 (strchrnul)
- --1937-- REDIR: 0x45165b0 (malloc) redirected to 0x4023877 (malloc)
- --1937-- REDIR: 0x451b9a0 (mempcpy) redirected to 0x4025980 (mempcpy)
- --1937-- REDIR: 0x451be50 (memcpy) redirected to 0x4024cf0 (memcpy)
- --1937-- REDIR: 0x45164d0 (free) redirected to 0x4023491 (free)
- --1937-- REDIR: 0x451bb30 (stpcpy) redirected to 0x40255a0 (stpcpy)
- --1937-- REDIR: 0x4515cb0 (calloc) redirected to 0x4022b87 (calloc)
- --1937-- REDIR: 0x4519870 (strcpy) redirected to 0x40248d0 (strcpy)
- --1937-- Reading syms from /lib/libnss_files-2.11.1.so (0x553b000)
- --1937-- REDIR: 0x451b8d0 (memmove) redirected to 0x40258b0 (memmove)
- --1937-- REDIR: 0x4517550 (realloc) redirected to 0x4023926 (realloc)
- --1937-- REDIR: 0x451a040 (strncpy) redirected to 0x40249b0 (strncpy)
- --1937-- REDIR: 0x45194e0 (strcat) redirected to 0x4024630 (strcat)
- --1937-- REDIR: 0x451e940 (rawmemchr) redirected to 0x4025960 (rawmemchr)
- --1937-- REDIR: 0x451b5e0 (bcmp) redirected to 0x4025500 (bcmp)
- --1937-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x423c000)
- --1937-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x4245000)
- ==1937== Invalid read of size 1
- ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
- ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
- ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
- ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
- ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
- ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
- ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
- ==1937== Address 0x10 is not stack'd, malloc'd or (recently) free'd
- ==1937==
- ==1937==
- ==1937== Process terminating with default action of signal 11 (SIGSEGV)
- ==1937== Access not within mapped region at address 0x10
- ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
- ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
- ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
- ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
- ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
- ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
- ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
- ==1937== If you believe this happened as a result of a stack
- ==1937== overflow in your program's main thread (unlikely but
- ==1937== possible), you can try to increase the size of the
- ==1937== main thread stack using the --main-stacksize= flag.
- ==1937== The main thread stack size used in this run was 8388608.
- name 1: 0x4120206name 2: 0x411df1dname 3: 0x10--1937-- Discarding syms at 0x553c9f0-0x5543cc8 in /lib/libnss_files-2.11.1.so due to munmap()
- ==1937==
- ==1937== HEAP SUMMARY:
- ==1937== in use at exit: 1,549,294 bytes in 2,180 blocks
- ==1937== total heap usage: 4,013 allocs, 1,833 frees, 3,537,980 bytes allocated
- ==1937==
- ==1937== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 53 from 10)
- ==1937==
- ==1937== 1 errors in context 1 of 1:
- ==1937== Invalid read of size 1
- ==1937== at 0x4024878: strlen (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
- ==1937== by 0x4207B2A: Tcl_ScanCountedElement (tclUtil.c:710)
- ==1937== by 0x4207C8B: Tcl_ScanElement (tclUtil.c:627)
- ==1937== by 0x41F3940: Tcl_AppendElement (tclResult.c:722)
- ==1937== by 0x40C3147: DumpSegment (tkText.c:4835)
- ==1937== by 0x40C3424: DumpLine (tkText.c:4704)
- ==1937== by 0x40C6003: TextWidgetObjCmd (tkText.c:4542)
- ==1937== by 0x415D3D8: TclEvalObjvInternal (tclBasic.c:3689)
- ==1937== Address 0x10 is not stack'd, malloc'd or (recently) free'd
- ==1937==
- --1937--
- --1937-- used_suppression: 53 dl-hack3-cond-1
- ==1937==
- ==1937== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 53 from 10)