==6211== Invalid
free() / delete
/ delete
[] ==6211== at
0x4C27D71: free (vg_replace_malloc.
c:366) ==6211== by 0x401005: main (add.c:176)
==6211== Address
0x51b2670 is
0 bytes inside a block of size
80 free'd ==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
==6211== by 0x400BF4: add (add.c:79)
==6211== by 0x400FE9: main (add.c:174)
==6211==
==6211== Invalid read of size 1
==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x400B24: add (add.c:59)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
==6211== at
0x4C27D71: free (vg_replace_malloc.
c:366) ==6211== by 0x400FF9: main (add.c:175)
==6211==
==6211== Invalid read of size 1
==6211== at 0x4C292AD: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x400B24: add (add.c:59)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address
0x51b2701 is
1 bytes inside a block of size
60 free'd ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
==6211== by 0x400FF9: main (add.c:175)
==6211==
==6211== Invalid free() / delete / delete[]
==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
==6211== by 0x400BA9: add (add.c:71)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
==6211== at
0x4C27D71: free (vg_replace_malloc.
c:366) ==6211== by 0x400FF9: main (add.c:175)
==6211==
--6211-- REDIR
: 0x4eb4cb0 (memcpy) redirected to
0x4c2985d (memcpy) --6211-- REDIR: 0x4eb1270 (__GI_strncmp) redirected to 0x4c296b9 (__GI_strncmp)
--6211-- REDIR: 0x4eb4a10 (__GI_stpcpy) redirected to 0x4c2a153 (__GI_stpcpy)
--6211-- REDIR: 0x4eb43d0 (mempcpy) redirected to 0x4c2a4b2 (mempcpy)
--6211-- REDIR: 0x4eb6270 (strchrnul) redirected to 0x4c2a441 (strchrnul)
==6211== Invalid read of size 1
==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x401043: main (add.c:182)
==6211== Address
0x0 is not stack
'd, malloc'd or
(recently
) free'd ==6211==
==6211==
==6211== Process terminating with default action of signal 11 (SIGSEGV)
==6211== Access not within mapped region at address 0x0
==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x401043: main (add.c:182)
==6211== If you believe this happened as a result of a stack
==6211== overflow in your program's main thread (unlikely but
==6211== possible), you can try to increase the size of the
==6211== main thread stack using the --main-stacksize= flag.
==6211== The main thread stack size used in this run was 8388608.
==6211==
==6211== HEAP SUMMARY:
==6211== in use at
exit: 568 bytes in
1 blocks
==6211== total heap usage: 19 allocs, 19 frees, 1,753 bytes allocated
==6211==
==6211== Searching for pointers to 1 not-freed blocks
==6211== Checked 72,424 bytes
==6211==
==6211== LEAK SUMMARY:
==6211== definitely lost: 0 bytes in 0 blocks
==6211== indirectly lost: 0 bytes in 0 blocks
==6211== possibly lost: 0 bytes in 0 blocks
==6211== still reachable: 568 bytes in 1 blocks
==6211== suppressed: 0 bytes in 0 blocks
==6211== Rerun with --leak-check=full to see details of leaked memory
==6211==
==6211== ERROR SUMMARY: 63 errors from 5 contexts (suppressed: 4 from 4)
==6211==
==6211== 1 errors in context 1 of 5:
==6211== Invalid read of size 1
==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x401043: main (add.c:182)
==6211== Address
0x0 is not stack
'd, malloc'd or
(recently
) free'd ==6211==
==6211==
==6211== 1 errors in context 2 of 5:
==6211== Invalid free() / delete / delete[]
==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
==6211== by 0x400BA9: add (add.c:71)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
==6211== at
0x4C27D71: free (vg_replace_malloc.
c:366) ==6211== by 0x400FF9: main (add.c:175)
==6211==
==6211==
==6211== 1 errors in context 3 of 5:
==6211== Invalid read of size 1
==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x400B24: add (add.c:59)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address
0x51b2700 is
0 bytes inside a block of size
60 free'd ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
==6211== by 0x400FF9: main (add.c:175)
==6211==
==6211==
==6211== 1 errors in context 4 of 5:
==6211== Invalid free() / delete / delete[]
==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
==6211== by 0x401005: main (add.c:176)
==6211== Address 0x51b2670 is 0 bytes inside a block of size 80 free'd
==6211== at
0x4C28254: realloc (vg_replace_malloc.
c:525) ==6211== by 0x400BF4: add (add.c:79)
==6211== by 0x400FE9: main (add.c:174)
==6211==
==6211==
==6211== 59 errors in context 5 of 5:
==6211== Invalid read of size 1
==6211== at 0x4C292AD: __GI_strlen (mc_replace_strmem.c:284)
==6211== by 0x400B24: add (add.c:59)
==6211== by 0x400FE9: main (add.c:174)
==6211== Address
0x51b2701 is
1 bytes inside a block of size
60 free'd ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
==6211== by 0x400FF9: main (add.c:175)
==6211==
--6211--
--6211-- used_suppression: 2 dl-hack3-cond-1
--6211-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==6211==
==6211== ERROR SUMMARY: 63 errors from 5 contexts (suppressed: 4 from 4)
Segmentation fault