Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prasoon@prasoon-desktop ~ $ valgrind -v ./a.out
- ==4446== Memcheck, a memory error detector
- ==4446== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
- ==4446== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
- ==4446== Command: ./a.out
- ==4446==
- --4446-- Valgrind options:
- --4446-- -v
- --4446-- Contents of /proc/version:
- --4446-- Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
- --4446-- Arch and hwcaps: X86, x86-sse1-sse2
- --4446-- Page sizes: currently 4096, max supported 4096
- --4446-- Valgrind library directory: /usr/local/lib/valgrind
- --4446-- Reading syms from /lib/ld-2.9.so (0x4000000)
- --4446-- Reading debug info from /lib/ld-2.9.so ..
- --4446-- .. CRC mismatch (computed 049232cc wanted 022486d8)
- --4446-- object doesn't have a symbol table
- --4446-- Reading syms from /home/prasoon/a.out (0x8048000)
- --4446-- Reading syms from /usr/local/lib/valgrind/memcheck-x86-linux (0x38000000)
- --4446-- object doesn't have a dynamic symbol table
- --4446-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
- --4446-- Reading syms from /usr/local/lib/valgrind/vgpreload_core-x86-linux.so (0x4020000)
- --4446-- Reading syms from /usr/local/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4023000)
- --4446-- Reading syms from /usr/lib/libstdc++.so.6.0.10 (0x403c000)
- --4446-- Reading debug info from /usr/lib/libstdc++.so.6.0.10 ..
- --4446-- .. CRC mismatch (computed 87794c5d wanted bcd37461)
- --4446-- object doesn't have a symbol table
- --4446-- Reading syms from /lib/tls/i686/cmov/libm-2.9.so (0x412b000)
- --4446-- Reading debug info from /lib/tls/i686/cmov/libm-2.9.so ..
- --4446-- .. CRC mismatch (computed 9d3c94d0 wanted 85a674c7)
- --4446-- object doesn't have a symbol table
- --4446-- Reading syms from /lib/libgcc_s.so.1 (0x4152000)
- --4446-- Reading debug info from /lib/libgcc_s.so.1 ..
- --4446-- .. CRC mismatch (computed 224ab3f8 wanted 89276151)
- --4446-- object doesn't have a symbol table
- --4446-- Reading syms from /lib/tls/i686/cmov/libc-2.9.so (0x4161000)
- --4446-- Reading debug info from /lib/tls/i686/cmov/libc-2.9.so ..
- --4446-- .. CRC mismatch (computed 7ee64c88 wanted 8d898f0d)
- --4446-- object doesn't have a symbol table
- --4446-- REDIR: 0x41d8a60 (rindex) redirected to 0x40267e0 (rindex)
- --4446-- REDIR: 0x41d85e0 (strlen) redirected to 0x4026b90 (strlen)
- --4446-- REDIR: 0x41da850 (memcpy) redirected to 0x4027000 (memcpy)
- --4446-- REDIR: 0x40f6f20 (operator new(unsigned int)) redirected to 0x402631b (operator new(unsigned int))
- --4446-- REDIR: 0x41da2d0 (memmove) redirected to 0x4027b00 (memmove)
- --4446-- REDIR: 0x40f5210 (operator delete(void*)) redirected to 0x40254c8 (operator delete(void*))
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c50d4 is 36 bytes inside a block of size 48 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c50c8 is 24 bytes inside a block of size 48 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c5074 is 12 bytes inside a block of size 24 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c5028 is 0 bytes inside a block of size 12 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- 012345FINISH!
- --4446-- REDIR: 0x41d2520 (free) redirected to 0x40257b1 (free)
- ==4446==
- ==4446== HEAP SUMMARY:
- ==4446== in use at exit: 0 bytes in 0 blocks
- ==4446== total heap usage: 4 allocs, 4 frees, 180 bytes allocated
- ==4446==
- ==4446== All heap blocks were freed -- no leaks are possible
- ==4446==
- ==4446== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 17 from 6)
- ==4446==
- ==4446== 1 errors in context 1 of 4:
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c5028 is 0 bytes inside a block of size 12 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446==
- ==4446== 1 errors in context 2 of 4:
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c5074 is 12 bytes inside a block of size 24 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446==
- ==4446== 1 errors in context 3 of 4:
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c50c8 is 24 bytes inside a block of size 48 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- ==4446==
- ==4446== 1 errors in context 4 of 4:
- ==4446== Invalid write of size 4
- ==4446== at 0x804884B: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446== Address 0x42c50d4 is 36 bytes inside a block of size 48 free'd
- ==4446== at 0x402554D: operator delete(void*) (vg_replace_malloc.c:346)
- ==4446== by 0x8048AFC: __gnu_cxx::new_allocator<XYZ>::deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8048B26: std::_Vector_base<XYZ, std::allocator<XYZ> >::_M_deallocate(XYZ*, unsigned int) (in /home/prasoon/a.out)
- ==4446== by 0x8049147: std::vector<XYZ, std::allocator<XYZ> >::_M_insert_aux(__gnu_cxx::__normal_iterator<XYZ*, std::vector<XYZ, std::allocator<XYZ> > >, XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x80491EA: std::vector<XYZ, std::allocator<XYZ> >::push_back(XYZ const&) (in /home/prasoon/a.out)
- ==4446== by 0x8048819: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x804884A: rec(int) (in /home/prasoon/a.out)
- ==4446== by 0x8048884: main (in /home/prasoon/a.out)
- ==4446==
- --4446--
- --4446-- used_suppression: 17 dl-hack3-cond-1
- ==4446==
- ==4446== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 17 from 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement