Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==7149== Memcheck, a memory error detector.
- ==7149== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
- ==7149== Using LibVEX rev 1854, a library for dynamic binary translation.
- ==7149== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
- ==7149== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
- ==7149== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
- ==7149==
- --7149-- Command line
- --7149-- a.out
- --7149-- Startup, with flags:
- --7149-- -v
- --7149-- --tool=memcheck
- --7149-- --leak-check=yes
- --7149-- --show-reachable=yes
- --7149-- --db-attach=yes
- --7149-- --db-command=gdb -nw %f %p
- --7149-- --num-callers=10
- --7149-- --track-fds=yes
- --7149-- Contents of /proc/version:
- --7149-- Linux version 2.4.31 (root@tree) (gcc version 3.3.5) #6 Sun Jun 5 19:04:47 PDT 2005
- --7149-- Arch and hwcaps: X86, x86-sse1-sse2
- --7149-- Page sizes: currently 4096, max supported 4096
- --7149-- Valgrind library directory: /usr/local/lib/valgrind
- --7149-- Reading syms from /lib/ld-2.3.5.so (0x4000000)
- --7149-- Reading syms from /home/p4r/a.out (0x8048000)
- --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/memcheck (0x38000000)
- --7149-- object doesn't have a dynamic symbol table
- --7149-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
- --7149-- REDIR: 0x4010620 (index) redirected to 0x38024c53 (vgPlain_x86_linux_REDIR_FOR_index)
- --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_core.so (0x4017000)
- --7149-- Reading syms from /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000)
- ==7149== WARNING: new redirection conflicts with existing -- ignoring it
- --7149-- new: 0x04010620 (index ) R-> 0x0401d710 index
- --7149-- REDIR: 0x40107d0 (strlen) redirected to 0x401d8e0 (strlen)
- --7149-- Reading syms from /lib/libc-2.3.5.so (0x4031000)
- --7149-- REDIR: 0x40985a0 (rindex) redirected to 0x401d5f0 (rindex)
- --7149-- REDIR: 0x4099100 (memset) redirected to 0x401dc10 (memset)
- ==7149== Invalid write of size 4
- ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
- ==7149== by 0x8048485: main (test.c:16)
- ==7149== Address 0xfffffffc is not stack'd, malloc'd or (recently) free'd
- ==7149==
- ==7149== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
- ==7149==
- ==7149== Process terminating with default action of signal 11 (SIGSEGV)
- ==7149== Access not within mapped region at address 0xFFFFFFFC
- ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
- ==7149== by 0x8048485: main (test.c:16)
- ==7149==
- ==7149== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n
- Before initstate--7149-- REDIR: 0x4092660 (free) redirected to 0x401c440 (free)
- ==7149==
- ==7149== FILE DESCRIPTORS: 3 open at exit.
- ==7149== Open file descriptor 2: /dev/pts/14
- ==7149== <inherited from parent>
- ==7149==
- ==7149== Open file descriptor 1: /dev/pts/14
- ==7149== <inherited from parent>
- ==7149==
- ==7149== Open file descriptor 0: /dev/pts/14
- ==7149== <inherited from parent>
- ==7149==
- ==7149==
- ==7149== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 11 from 1)
- ==7149==
- ==7149== 1 errors in context 1 of 1:
- ==7149== Invalid write of size 4
- ==7149== at 0x405CC33: initstate_r (in /lib/libc-2.3.5.so)
- ==7149== by 0x8048485: main (test.c:16)
- ==7149== Address 0xfffffffc is not stack'd, malloc'd or (recently) free'd
- --7149--
- --7149-- supp: 11 Ubuntu-stripped-ld.so
- ==7149==
- ==7149== IN SUMMARY: 1 errors from 1 contexts (suppressed: 11 from 1)
- ==7149==
- ==7149== malloc/free: in use at exit: 0 bytes in 0 blocks.
- ==7149== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
- ==7149==
- ==7149== All heap blocks were freed -- no leaks are possible.
- --7149-- memcheck: sanity checks: 0 cheap, 1 expensive
- --7149-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
- --7149-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10
- --7149-- memcheck: auxmaps_L2: 0 searches, 0 nodes
- --7149-- memcheck: SMs: n_issued = 7 (112k, 0M)
- --7149-- memcheck: SMs: n_deissued = 0 (0k, 0M)
- --7149-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
- --7149-- memcheck: SMs: max_undefined = 0 (0k, 0M)
- --7149-- memcheck: SMs: max_defined = 17 (272k, 0M)
- --7149-- memcheck: SMs: max_non_DSM = 7 (112k, 0M)
- --7149-- memcheck: max sec V bit nodes: 0 (0k, 0M)
- --7149-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0)
- --7149-- memcheck: max shadow mem size: 416k, 0M
- --7149-- translate: fast SP updates identified: 1,423 ( 89.1%)
- --7149-- translate: generic_known SP updates identified: 79 ( 4.9%)
- --7149-- translate: generic_unknown SP updates identified: 95 ( 5.9%)
- --7149-- tt/tc: 3,179 tt lookups requiring 3,190 probes
- --7149-- tt/tc: 3,179 fast-cache updates, 3 flushes
- --7149-- transtab: new 1,488 (29,944 -> 449,089; ratio 149:10) [0 scs]
- --7149-- transtab: dumped 0 (0 -> ??)
- --7149-- transtab: discarded 6 (150 -> ??)
- --7149-- scheduler: 28,850 jumps (bb entries).
- --7149-- scheduler: 0/1,729 major/minor sched events.
- --7149-- sanity: 1 cheap, 1 expensive checks.
- --7149-- exectx: 769 lists, 10 contexts (avg 0 per list)
- --7149-- exectx: 16 searches, 6 full compares (375 per 1000)
- --7149-- exectx: 0 cmp2, 26 cmp4, 0 cmpAll
- --7149-- errormgr: 7 supplist searches, 117 comparisons during search
- --7149-- errormgr: 12 errlist searches, 32 comparisons during search
- Segmentation fault
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement