rendered paste body==16077== Memcheck, a memory error detector.
==16077== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==16077== Using LibVEX rev 1606, a library for dynamic binary translation.
==16077== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==16077== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation framework.
==16077== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==16077==
==16077== My PID = 16077, parent PID = 2411. Prog and args are:
==16077== ./o
==16077==
--16077--
--16077-- Command line
--16077-- ./o
--16077-- Startup, with flags:
--16077-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--16077-- --log-file=log
--16077-- --error-limit=no
--16077-- --leak-check=full
--16077-- -v
--16077-- Contents of /proc/version:
--16077-- Linux version 2.6.14.4 (root@gyptis.org) (gcc version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5)) #4 Sun Jul 16 01:02:30 CEST 2006
--16077-- Arch and hwcaps: X86, x86-sse1
--16077-- Valgrind library directory: /usr/lib/valgrind
--16077-- Reading syms from /lib/ld-2.3.6.so (0x4000000)
--16077-- Reading debug info from /lib/ld-2.3.6.so...
--16077-- ... CRC mismatch (computed 8D0DB48E wanted BF5D33FD)
--16077-- Reading debug info from /usr/lib/debug/lib/ld-2.3.6.so...
--16077-- Reading syms from /home/mans/Ma_creation/c++/proxy_ftp/o (0x8048000)
--16077-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--16077-- object doesn't have a dynamic symbol table
--16077-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp
--16077-- Reading suppressions file: /usr/lib/valgrind/default.supp
--16077-- REDIR: 0x40112B0 (index) redirected to 0x3802985F (vgPlain_x86_linux_REDIR_FOR_index)
--16077-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4018000)
--16077-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000)
==16077== WARNING: new redirection conflicts with existing -- ignoring it
--16077-- new: 0x040112B0 (index ) R-> 0x0401D0F0 index
--16077-- REDIR: 0x4011470 (strlen) redirected to 0x401D1D0 (strlen)
--16077-- Reading syms from /usr/lib/debug/libc-2.3.6.so (0x4021000)
--16077-- REDIR: 0x408CAB0 (rindex) redirected to 0x401CF90 (rindex)
--16077-- REDIR: 0x40887F0 (malloc) redirected to 0x401B41C (malloc)
==16077== Invalid write of size 1
==16077== at 0x804839F: main2 (c.c:18)
==16077== by 0x80483BE: main (c.c:25)
==16077== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==16077==
==16077== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==16077== Access not within mapped region at address 0x0
==16077== at 0x804839F: main2 (c.c:18)
==16077== by 0x80483BE: main (c.c:25)
--16077-- REDIR: 0x4086900 (free) redirected to 0x401C0B4 (free)
==16077==
==16077== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 1)
==16077==
==16077== 1 errors in context 1 of 1:
==16077== Invalid write of size 1
==16077== at 0x804839F: main2 (c.c:18)
==16077== by 0x80483BE: main (c.c:25)
==16077== Address 0x0 is not stack'd, malloc'd or (recently) free'd
--16077--
--16077-- supp: 12 Debian libc6 stripped dynamic linker
==16077==
==16077== IN SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 1)
==16077==
==16077== malloc/free: in use at exit: 4 bytes in 1 blocks.
==16077== malloc/free: 1 allocs, 0 frees, 4 bytes allocated.
==16077==
==16077== searching for pointers to 1 not-freed blocks.
==16077== checked 51,456 bytes.
==16077==
==16077==
==16077== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==16077== at 0x401B4A1: malloc (vg_replace_malloc.c:149)
==16077== by 0x804838F: main2 (c.c:16)
==16077== by 0x80483BE: main (c.c:25)
==16077==
==16077== LEAK SUMMARY:
==16077== definitely lost: 4 bytes in 1 blocks.
==16077== possibly lost: 0 bytes in 0 blocks.
==16077== still reachable: 0 bytes in 0 blocks.
==16077== suppressed: 0 bytes in 0 blocks.
==16077== Reachable blocks (those to which a pointer was found) are not shown.
==16077== To see them, rerun with: --show-reachable=yes
--16077-- memcheck: sanity checks: 0 cheap, 1 expensive
--16077-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--16077-- memcheck: auxmaps: 0 searches, 0 comparisons
--16077-- memcheck: SMs: n_issued = 6 (96k, 0M)
--16077-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--16077-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--16077-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--16077-- memcheck: SMs: max_defined = 18 (288k, 0M)
--16077-- memcheck: SMs: max_non_DSM = 6 (96k, 0M)
--16077-- memcheck: max sec V bit nodes: 0 (0k, 0M)
--16077-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
--16077-- memcheck: max shadow mem size: 400k, 0M
--16077-- translate: fast SP updates identified: 1,298 ( 90.7%)
--16077-- translate: generic_known SP updates identified: 66 ( 4.6%)
--16077-- translate: generic_unknown SP updates identified: 66 ( 4.6%)
--16077-- tt/tc: 2,871 tt lookups requiring 2,886 probes
--16077-- tt/tc: 2,871 fast-cache updates, 3 flushes
--16077-- transtab: new 1,328 (27,815 -> 462,889; ratio 166:10) [0 scs]
--16077-- transtab: dumped 0 (0 -> ??)
--16077-- transtab: discarded 8 (193 -> ??)
--16077-- scheduler: 27,237 jumps (bb entries).
--16077-- scheduler: 0/1,636 major/minor sched events.
--16077-- sanity: 1 cheap, 1 expensive checks.
--16077-- exectx: 30,011 lists, 9 contexts (avg 0 per list)
--16077-- exectx: 14 searches, 5 full compares (357 per 1000)
--16077-- exectx: 0 cmp2, 32 cmp4, 0 cmpAll