fork download
  1. ==6211== Invalid free() / delete / delete[]
  2. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  3. ==6211== by 0x401005: main (add.c:176)
  4. ==6211== Address 0x51b2670 is 0 bytes inside a block of size 80 free'd
  5. ==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
  6. ==6211== by 0x400BF4: add (add.c:79)
  7. ==6211== by 0x400FE9: main (add.c:174)
  8. ==6211==
  9. ==6211== Invalid read of size 1
  10. ==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
  11. ==6211== by 0x400B24: add (add.c:59)
  12. ==6211== by 0x400FE9: main (add.c:174)
  13. ==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
  14. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  15. ==6211== by 0x400FF9: main (add.c:175)
  16. ==6211==
  17. ==6211== Invalid read of size 1
  18. ==6211== at 0x4C292AD: __GI_strlen (mc_replace_strmem.c:284)
  19. ==6211== by 0x400B24: add (add.c:59)
  20. ==6211== by 0x400FE9: main (add.c:174)
  21. ==6211== Address 0x51b2701 is 1 bytes inside a block of size 60 free'd
  22. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  23. ==6211== by 0x400FF9: main (add.c:175)
  24. ==6211==
  25. ==6211== Invalid free() / delete / delete[]
  26. ==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
  27. ==6211== by 0x400BA9: add (add.c:71)
  28. ==6211== by 0x400FE9: main (add.c:174)
  29. ==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
  30. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  31. ==6211== by 0x400FF9: main (add.c:175)
  32. ==6211==
  33. --6211-- REDIR: 0x4eb4cb0 (memcpy) redirected to 0x4c2985d (memcpy)
  34. --6211-- REDIR: 0x4eb1270 (__GI_strncmp) redirected to 0x4c296b9 (__GI_strncmp)
  35. --6211-- REDIR: 0x4eb4a10 (__GI_stpcpy) redirected to 0x4c2a153 (__GI_stpcpy)
  36. --6211-- REDIR: 0x4eb43d0 (mempcpy) redirected to 0x4c2a4b2 (mempcpy)
  37. --6211-- REDIR: 0x4eb6270 (strchrnul) redirected to 0x4c2a441 (strchrnul)
  38. realloc fail: Success
  39. ==6211== Invalid read of size 1
  40. ==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
  41. ==6211== by 0x401043: main (add.c:182)
  42. ==6211== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  43. ==6211==
  44. ==6211==
  45. ==6211== Process terminating with default action of signal 11 (SIGSEGV)
  46. ==6211== Access not within mapped region at address 0x0
  47. ==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
  48. ==6211== by 0x401043: main (add.c:182)
  49. ==6211== If you believe this happened as a result of a stack
  50. ==6211== overflow in your program's main thread (unlikely but
  51. ==6211== possible), you can try to increase the size of the
  52. ==6211== main thread stack using the --main-stacksize= flag.
  53. ==6211== The main thread stack size used in this run was 8388608.
  54. ==6211==
  55. ==6211== HEAP SUMMARY:
  56. ==6211== in use at exit: 568 bytes in 1 blocks
  57. ==6211== total heap usage: 19 allocs, 19 frees, 1,753 bytes allocated
  58. ==6211==
  59. ==6211== Searching for pointers to 1 not-freed blocks
  60. ==6211== Checked 72,424 bytes
  61. ==6211==
  62. ==6211== LEAK SUMMARY:
  63. ==6211== definitely lost: 0 bytes in 0 blocks
  64. ==6211== indirectly lost: 0 bytes in 0 blocks
  65. ==6211== possibly lost: 0 bytes in 0 blocks
  66. ==6211== still reachable: 568 bytes in 1 blocks
  67. ==6211== suppressed: 0 bytes in 0 blocks
  68. ==6211== Rerun with --leak-check=full to see details of leaked memory
  69. ==6211==
  70. ==6211== ERROR SUMMARY: 63 errors from 5 contexts (suppressed: 4 from 4)
  71. ==6211==
  72. ==6211== 1 errors in context 1 of 5:
  73. ==6211== Invalid read of size 1
  74. ==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
  75. ==6211== by 0x401043: main (add.c:182)
  76. ==6211== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  77. ==6211==
  78. ==6211==
  79. ==6211== 1 errors in context 2 of 5:
  80. ==6211== Invalid free() / delete / delete[]
  81. ==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
  82. ==6211== by 0x400BA9: add (add.c:71)
  83. ==6211== by 0x400FE9: main (add.c:174)
  84. ==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
  85. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  86. ==6211== by 0x400FF9: main (add.c:175)
  87. ==6211==
  88. ==6211==
  89. ==6211== 1 errors in context 3 of 5:
  90. ==6211== Invalid read of size 1
  91. ==6211== at 0x4C292A4: __GI_strlen (mc_replace_strmem.c:284)
  92. ==6211== by 0x400B24: add (add.c:59)
  93. ==6211== by 0x400FE9: main (add.c:174)
  94. ==6211== Address 0x51b2700 is 0 bytes inside a block of size 60 free'd
  95. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  96. ==6211== by 0x400FF9: main (add.c:175)
  97. ==6211==
  98. ==6211==
  99. ==6211== 1 errors in context 4 of 5:
  100. ==6211== Invalid free() / delete / delete[]
  101. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  102. ==6211== by 0x401005: main (add.c:176)
  103. ==6211== Address 0x51b2670 is 0 bytes inside a block of size 80 free'd
  104. ==6211== at 0x4C28254: realloc (vg_replace_malloc.c:525)
  105. ==6211== by 0x400BF4: add (add.c:79)
  106. ==6211== by 0x400FE9: main (add.c:174)
  107. ==6211==
  108. ==6211==
  109. ==6211== 59 errors in context 5 of 5:
  110. ==6211== Invalid read of size 1
  111. ==6211== at 0x4C292AD: __GI_strlen (mc_replace_strmem.c:284)
  112. ==6211== by 0x400B24: add (add.c:59)
  113. ==6211== by 0x400FE9: main (add.c:174)
  114. ==6211== Address 0x51b2701 is 1 bytes inside a block of size 60 free'd
  115. ==6211== at 0x4C27D71: free (vg_replace_malloc.c:366)
  116. ==6211== by 0x400FF9: main (add.c:175)
  117. ==6211==
  118. --6211--
  119. --6211-- used_suppression: 2 dl-hack3-cond-1
  120. --6211-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
  121. ==6211==
  122. ==6211== ERROR SUMMARY: 63 errors from 5 contexts (suppressed: 4 from 4)
  123. Segmentation fault
  124.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty