==31030== Memcheck, a memory error detector.==31030== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.==31030== Using LibVEX rev 1658, a library for dynamic binary translation.==31030== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.==31030== Using valgrind-3.2.1, a dynamic binary instrumentation framework.==31030== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.==31030== ==31030== My PID = 31030, parent PID = 13420. Prog and args are:==31030== ./ass_04==31030== --31030-- --31030-- Command line--31030-- ./ass_04--31030-- Startup, with flags:--31030-- --log-file-exactly=memoryleak.txt--31030-- -v--31030-- --tool=memcheck--31030-- Contents of /proc/version:--31030-- Linux version 2.6.18-8.1.15.el5.centos.plus (mockbuild@builder6.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Oct 25 06:49:40 EDT 2007--31030-- Arch and hwcaps: X86, x86-sse1-sse2--31030-- Valgrind library directory: /usr/lib/valgrind--31030-- Reading syms from /home/k/kakazza/ass_04 (0x8048000)--31030-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)--31030-- object doesn't have a dynamic symbol table--31030-- Reading syms from /lib/ld-2.5.so (0x47BBE000)--31030-- Reading suppressions file: /usr/lib/valgrind/default.supp--31030-- REDIR: 0x47BD3040 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)--31030-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)--31030-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)==31030== WARNING: new redirection conflicts with existing -- ignoring it--31030-- new: 0x47BD3040 (index ) R-> 0x04006080 index--31030-- REDIR: 0x47BD31E0 (strlen) redirected to 0x4006250 (strlen)--31030-- Reading syms from /lib/libc-2.5.so (0x485C2000)--31030-- REDIR: 0x4862E6A0 (rindex) redirected to 0x4005F60 (rindex)--31030-- REDIR: 0x48629D10 (malloc) redirected to 0x400533B (malloc)--31030-- REDIR: 0x4862B710 (realloc) redirected to 0x40053EA (realloc)==31030== Invalid write of size 1==31030== at 0x8048553: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024067 is 63 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== ==31030== Invalid free() / delete / delete[]==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024028 is 0 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)--31030-- REDIR: 0x4862B520 (free) redirected to 0x4004F55 (free)==31030====31030== Invalid free() / delete / delete[]==31030== at 0x4004FDA: free (vg_replace_malloc.c:233)==31030== by 0x804853E: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024028 is 0 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== ==31030== Invalid read of size 1==31030== at 0x80485B6: mystrlen (in /home/k/kakazza/ass_04)==31030== by 0x80487A2: main (in /home/k/kakazza/ass_04)==31030== Address 0x0 is not stack'd, malloc'd or (recently) free'd==31030====31030== Process terminating with default action of signal 11 (SIGSEGV)==31030== Access not within mapped region at address 0x0==31030== at 0x80485B6: mystrlen (in /home/k/kakazza/ass_04)==31030== by 0x80487A2: main (in /home/k/kakazza/ass_04)--31030-- REDIR: 0x4862F540 (memset) redirected to 0x4006540 (memset)==31030====31030== ERROR SUMMARY: 60 errors from 4 contexts (suppressed: 12 from 1)==31030====31030== 1 errors in context 1 of 4:==31030== Invalid read of size 1==31030== at 0x80485B6: mystrlen (in /home/k/kakazza/ass_04)==31030== by 0x80487A2: main (in /home/k/kakazza/ass_04)==31030== Address 0x0 is not stack'd, malloc'd or (recently) free'd==31030== ==31030== 1 errors in context 2 of 4:==31030== Invalid free() / delete / delete[]==31030== at 0x4004FDA: free (vg_replace_malloc.c:233)==31030== by 0x804853E: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024028 is 0 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030====31030== 1 errors in context 3 of 4:==31030== Invalid free() / delete / delete[]==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024028 is 0 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== ==31030== 57 errors in context 4 of 4:==31030== Invalid write of size 1==31030== at 0x8048553: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)==31030== Address 0x4024067 is 63 bytes inside a block of size 65 free'd==31030== at 0x40054BB: realloc (vg_replace_malloc.c:306)==31030== by 0x804852F: getInput (in /home/k/kakazza/ass_04)==31030== by 0x8048794: main (in /home/k/kakazza/ass_04)--31030----31030-- supp: 12 Fedora-Core-6-hack3-ld25==31030====31030== IN SUMMARY: 60 errors from 4 contexts (suppressed: 12 from 1)==31030====31030== malloc/free: in use at exit: 129 bytes in 1 blocks.==31030== malloc/free: 3 allocs, 3 frees, 387 bytes allocated.==31030====31030== searching for pointers to 1 not-freed blocks.==31030== checked 50,992 bytes.==31030====31030== LEAK SUMMARY:==31030== definitely lost: 129 bytes in 1 blocks.==31030== possibly lost: 0 bytes in 0 blocks.==31030== still reachable: 0 bytes in 0 blocks.==31030== suppressed: 0 bytes in 0 blocks.==31030== Use --leak-check=full to see details of leaked memory.--31030-- memcheck: sanity checks: 0 cheap, 1 expensive--31030-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use--31030-- memcheck: auxmaps: 0 searches, 0 comparisons--31030-- memcheck: SMs: n_issued = 9 (144k, 0M)--31030-- memcheck: SMs: n_deissued = 0 (0k, 0M)--31030-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)--31030-- memcheck: SMs: max_undefined = 0 (0k, 0M)--31030-- memcheck: SMs: max_defined = 20 (320k, 0M)--31030-- memcheck: SMs: max_non_DSM = 9 (144k, 0M)--31030-- memcheck: max sec V bit nodes: 0 (0k, 0M)--31030-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)--31030-- memcheck: max shadow mem size: 448k, 0M--31030-- translate: fast SP updates identified: 1,433 ( 90.8%)--31030-- translate: generic_known SP updates identified: 71 ( 4.4%)--31030-- translate: generic_unknown SP updates identified: 74 ( 4.6%)--31030-- tt/tc: 3,093 tt lookups requiring 3,120 probes--31030-- tt/tc: 3,093 fast-cache updates, 3 flushes--31030-- transtab: new 1,440 (31,251 -> 516,231; ratio 165:10) [0 scs]--31030-- transtab: dumped 0 (0 -> ??)--31030-- transtab: discarded 6 (148 -> ??)--31030-- scheduler: 21,300 jumps (bb entries).--31030-- scheduler: 0/1,695 major/minor sched events.--31030-- sanity: 1 cheap, 1 expensive checks.--31030-- exectx: 30,011 lists, 13 contexts (avg 0 per list)--31030-- exectx: 75 searches, 62 full compares (826 per 1000)--31030-- exectx: 0 cmp2, 95 cmp4, 0 cmpAll