Advertisement
_Slaze

errors

May 26th, 2021 (edited)
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.44 KB | None | 0 0
  1. # Run main.cpp with Valgrind.
  2. > valgrind --leak-check=full --track-origins=yes ./main
  3. ==4050== Memcheck, a memory error detector
  4. ==4050== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  5. ==4050== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
  6. ==4050== Command: ./main
  7. ==4050==
  8. List1: |3|2|1|
  9. List1 size: 3
  10. List2: |7|6|5|4|
  11. swaped
  12. List1: |7|6|5|4|
  13. List2: |3|2|1|
  14. ==4050== Invalid read of size 8
  15. ==4050== at 0x109549: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
  16. ==4050== by 0x109445: main (main.cpp:19)
  17. ==4050== Address 0x4a7ecd8 is 8 bytes inside a block of size 16 free'd
  18. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  19. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  20. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  21. ==4050== by 0x109445: main (main.cpp:19)
  22. ==4050== Block was alloc'd at
  23. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  24. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  25. ==4050== by 0x1092DC: main (main.cpp:11)
  26. ==4050==
  27. ==4050== Invalid read of size 8
  28. ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  29. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  30. ==4050== by 0x109445: main (main.cpp:19)
  31. ==4050== Address 0x4a7ecd8 is 8 bytes inside a block of size 16 free'd
  32. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  33. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  34. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  35. ==4050== by 0x109445: main (main.cpp:19)
  36. ==4050== Block was alloc'd at
  37. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  38. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  39. ==4050== by 0x1092DC: main (main.cpp:11)
  40. ==4050==
  41. ==4050== Invalid read of size 8
  42. ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  43. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  44. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  45. ==4050== by 0x109445: main (main.cpp:19)
  46. ==4050== Address 0x4a7ec88 is 8 bytes inside a block of size 16 free'd
  47. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  48. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  49. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  50. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  51. ==4050== by 0x109445: main (main.cpp:19)
  52. ==4050== Block was alloc'd at
  53. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  54. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  55. ==4050== by 0x1092C2: main (main.cpp:10)
  56. ==4050==
  57. ==4050== Invalid free() / delete / delete[] / realloc()
  58. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  59. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  60. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  61. ==4050== by 0x109445: main (main.cpp:19)
  62. ==4050== Address 0x4a7ec80 is 0 bytes inside a block of size 16 free'd
  63. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  64. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  65. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  66. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  67. ==4050== by 0x109445: main (main.cpp:19)
  68. ==4050== Block was alloc'd at
  69. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  70. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  71. ==4050== by 0x1092C2: main (main.cpp:10)
  72. ==4050==
  73. ==4050== Invalid free() / delete / delete[] / realloc()
  74. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  75. ==4050== by 0x109571: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  76. ==4050== by 0x109445: main (main.cpp:19)
  77. ==4050== Address 0x4a7ecd0 is 0 bytes inside a block of size 16 free'd
  78. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  79. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  80. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  81. ==4050== by 0x109445: main (main.cpp:19)
  82. ==4050== Block was alloc'd at
  83. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  84. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  85. ==4050== by 0x1092DC: main (main.cpp:11)
  86. ==4050==
  87. ==4050== Invalid read of size 8
  88. ==4050== at 0x109549: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
  89. ==4050== by 0x109451: main (main.cpp:9)
  90. ==4050== Address 0x4a7ee18 is 8 bytes inside a block of size 16 free'd
  91. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  92. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  93. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  94. ==4050== by 0x109451: main (main.cpp:9)
  95. ==4050== Block was alloc'd at
  96. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  97. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  98. ==4050== by 0x1093A8: main (main.cpp:22)
  99. ==4050==
  100. ==4050== Invalid read of size 8
  101. ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  102. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  103. ==4050== by 0x109451: main (main.cpp:9)
  104. ==4050== Address 0x4a7ee18 is 8 bytes inside a block of size 16 free'd
  105. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  106. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  107. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  108. ==4050== by 0x109451: main (main.cpp:9)
  109. ==4050== Block was alloc'd at
  110. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  111. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  112. ==4050== by 0x1093A8: main (main.cpp:22)
  113. ==4050==
  114. ==4050== Invalid read of size 8
  115. ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  116. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  117. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  118. ==4050== by 0x109451: main (main.cpp:9)
  119. ==4050== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
  120. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  121. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  122. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  123. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  124. ==4050== by 0x109451: main (main.cpp:9)
  125. ==4050== Block was alloc'd at
  126. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  127. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  128. ==4050== by 0x10938E: main (main.cpp:21)
  129. ==4050==
  130. ==4050== Invalid read of size 8
  131. ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  132. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  133. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  134. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  135. ==4050== by 0x109451: main (main.cpp:9)
  136. ==4050== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
  137. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  138. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  139. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  140. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  141. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  142. ==4050== by 0x109451: main (main.cpp:9)
  143. ==4050== Block was alloc'd at
  144. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  145. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  146. ==4050== by 0x109374: main (main.cpp:20)
  147. ==4050==
  148. ==4050== Invalid free() / delete / delete[] / realloc()
  149. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  150. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  151. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  152. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  153. ==4050== by 0x109451: main (main.cpp:9)
  154. ==4050== Address 0x4a7ed70 is 0 bytes inside a block of size 16 free'd
  155. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  156. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  157. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  158. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  159. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  160. ==4050== by 0x109451: main (main.cpp:9)
  161. ==4050== Block was alloc'd at
  162. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  163. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  164. ==4050== by 0x109374: main (main.cpp:20)
  165. ==4050==
  166. ==4050== Invalid free() / delete / delete[] / realloc()
  167. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  168. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  169. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  170. ==4050== by 0x109451: main (main.cpp:9)
  171. ==4050== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
  172. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  173. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  174. ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  175. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  176. ==4050== by 0x109451: main (main.cpp:9)
  177. ==4050== Block was alloc'd at
  178. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  179. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  180. ==4050== by 0x10938E: main (main.cpp:21)
  181. ==4050==
  182. ==4050== Invalid free() / delete / delete[] / realloc()
  183. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  184. ==4050== by 0x109571: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  185. ==4050== by 0x109451: main (main.cpp:9)
  186. ==4050== Address 0x4a7ee10 is 0 bytes inside a block of size 16 free'd
  187. ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  188. ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  189. ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  190. ==4050== by 0x109451: main (main.cpp:9)
  191. ==4050== Block was alloc'd at
  192. ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  193. ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  194. ==4050== by 0x1093A8: main (main.cpp:22)
  195. ==4050==
  196. ==4050==
  197. ==4050== HEAP SUMMARY:
  198. ==4050== in use at exit: 72,704 bytes in 1 blocks
  199. ==4050== total heap usage: 8 allocs, 16 frees, 72,816 bytes allocated
  200. ==4050==
  201. ==4050== LEAK SUMMARY:
  202. ==4050== definitely lost: 0 bytes in 0 blocks
  203. ==4050== indirectly lost: 0 bytes in 0 blocks
  204. ==4050== possibly lost: 0 bytes in 0 blocks
  205. ==4050== still reachable: 72,704 bytes in 1 blocks
  206. ==4050== suppressed: 0 bytes in 0 blocks
  207. ==4050== Reachable blocks (those to which a pointer was found) are not shown.
  208. ==4050== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  209. ==4050==
  210. ==4050== For lists of detected and suppressed errors, rerun with: -s
  211. ==4050== ERROR SUMMARY: 23 errors from 12 contexts (suppressed: 0 from 0)
  212. # FAIL exitstatus=1 (499 ms)
  213.  
  214. # Valgrind test.
  215. > COLORS=yes valgrind --leak-check=full --track-origins=yes ./test_main
  216. ==4058== Memcheck, a memory error detector
  217. ==4058== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  218. ==4058== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
  219. ==4058== Command: ./test_main
  220. ==4058==
  221. PASSED Newly created list is empty()
  222. PASSED Newly created list has size() 0
  223. PASSED List with inserted elements is not empty()
  224. PASSED size() is correct after inserting a number of elements
  225. PASSED front() yields last inserted element
  226. PASSED Range based for loop yields correct elements
  227. PASSED Assigning to front() allows changing the first element
  228. PASSED insert_after() returns iterator to inserted element
  229. PASSED insert_after() increases the size by 1
  230. PASSED insert_after() does not change previous element
  231. PASSED insert_after() inserts at correct position
  232. PASSED insert_after() does not change next element
  233. ==4058== Invalid read of size 4
  234. ==4058== at 0x10AE32: main (test_main.cc:58)
  235. ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
  236. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  237. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  238. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  239. ==4058== by 0x10AE25: main (test_main.cc:56)
  240. ==4058== Block was alloc'd at
  241. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  242. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  243. ==4058== by 0x109B4A: main (test_main.cc:17)
  244. ==4058==
  245. PASSED pop_front() removes exactly one element
  246. ==4058== Invalid read of size 8
  247. ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
  248. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  249. ==4058== by 0x10AFFE: main (test_main.cc:61)
  250. ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
  251. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  252. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  253. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  254. ==4058== by 0x10AE25: main (test_main.cc:56)
  255. ==4058== Block was alloc'd at
  256. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  257. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  258. ==4058== by 0x109B4A: main (test_main.cc:17)
  259. ==4058==
  260. ==4058== Invalid read of size 8
  261. ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  262. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  263. ==4058== by 0x10AFFE: main (test_main.cc:61)
  264. ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
  265. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  266. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  267. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  268. ==4058== by 0x10AE25: main (test_main.cc:56)
  269. ==4058== Block was alloc'd at
  270. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  271. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  272. ==4058== by 0x109B4A: main (test_main.cc:17)
  273. ==4058==
  274. ==4058== Invalid read of size 8
  275. ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
  276. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  277. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  278. ==4058== by 0x10AFFE: main (test_main.cc:61)
  279. ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
  280. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  281. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  282. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  283. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  284. ==4058== by 0x10AE25: main (test_main.cc:56)
  285. ==4058== Block was alloc'd at
  286. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  287. ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
  288. ==4058== by 0x10A4FE: main (test_main.cc:45)
  289. ==4058==
  290. ==4058== Invalid read of size 8
  291. ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  292. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  293. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  294. ==4058== by 0x10AFFE: main (test_main.cc:61)
  295. ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
  296. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  297. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  298. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  299. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  300. ==4058== by 0x10AE25: main (test_main.cc:56)
  301. ==4058== Block was alloc'd at
  302. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  303. ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
  304. ==4058== by 0x10A4FE: main (test_main.cc:45)
  305. ==4058==
  306. ==4058== Invalid read of size 8
  307. ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
  308. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  309. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  310. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  311. ==4058== by 0x10AFFE: main (test_main.cc:61)
  312. ==4058== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
  313. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  314. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  315. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  316. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  317. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  318. ==4058== by 0x10AE25: main (test_main.cc:56)
  319. ==4058== Block was alloc'd at
  320. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  321. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  322. ==4058== by 0x109B4A: main (test_main.cc:17)
  323. ==4058==
  324. ==4058== Invalid read of size 8
  325. ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  326. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  327. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  328. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  329. ==4058== by 0x10AFFE: main (test_main.cc:61)
  330. ==4058== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
  331. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  332. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  333. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  334. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  335. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  336. ==4058== by 0x10AE25: main (test_main.cc:56)
  337. ==4058== Block was alloc'd at
  338. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  339. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  340. ==4058== by 0x109B4A: main (test_main.cc:17)
  341. ==4058==
  342. ==4058== Invalid read of size 8
  343. ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
  344. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  345. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  346. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  347. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  348. ==4058== by 0x10AFFE: main (test_main.cc:61)
  349. ==4058== Address 0x4a7ed28 is 8 bytes inside a block of size 16 free'd
  350. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  351. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  352. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  353. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  354. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  355. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  356. ==4058== by 0x10AE25: main (test_main.cc:56)
  357. ==4058== Block was alloc'd at
  358. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  359. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  360. ==4058== by 0x109B4A: main (test_main.cc:17)
  361. ==4058==
  362. ==4058== Invalid read of size 8
  363. ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  364. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  365. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  366. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  367. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  368. ==4058== by 0x10AFFE: main (test_main.cc:61)
  369. ==4058== Address 0x4a7ed28 is 8 bytes inside a block of size 16 free'd
  370. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  371. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  372. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  373. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  374. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  375. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  376. ==4058== by 0x10AE25: main (test_main.cc:56)
  377. ==4058== Block was alloc'd at
  378. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  379. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  380. ==4058== by 0x109B4A: main (test_main.cc:17)
  381. ==4058==
  382. ==4058== Invalid read of size 4
  383. ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
  384. ==4058== by 0x10B93C: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:55)
  385. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  386. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  387. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  388. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  389. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  390. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  391. ==4058== by 0x10AFFE: main (test_main.cc:61)
  392. ==4058== Address 0x4a7ec80 is 0 bytes inside a block of size 16 free'd
  393. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  394. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  395. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  396. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  397. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  398. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  399. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  400. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  401. ==4058== by 0x10AE25: main (test_main.cc:56)
  402. ==4058== Block was alloc'd at
  403. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  404. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  405. ==4058== by 0x109B4A: main (test_main.cc:17)
  406. ==4058==
  407. ==4058== Invalid read of size 4
  408. ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
  409. ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  410. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  411. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  412. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  413. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  414. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  415. ==4058== by 0x10AFFE: main (test_main.cc:61)
  416. ==4058== Address 0x4a7ecd0 is 0 bytes inside a block of size 16 free'd
  417. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  418. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  419. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  420. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  421. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  422. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  423. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  424. ==4058== by 0x10AE25: main (test_main.cc:56)
  425. ==4058== Block was alloc'd at
  426. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  427. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  428. ==4058== by 0x109B4A: main (test_main.cc:17)
  429. ==4058==
  430. ==4058== Invalid read of size 4
  431. ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
  432. ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  433. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  434. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  435. ==4058== by 0x10AFFE: main (test_main.cc:61)
  436. ==4058== Address 0x4a7ee60 is 0 bytes inside a block of size 16 free'd
  437. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  438. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  439. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  440. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  441. ==4058== by 0x10AE25: main (test_main.cc:56)
  442. ==4058== Block was alloc'd at
  443. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  444. ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
  445. ==4058== by 0x10A4FE: main (test_main.cc:45)
  446. ==4058==
  447. ==4058== Invalid read of size 4
  448. ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
  449. ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  450. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  451. ==4058== by 0x10AFFE: main (test_main.cc:61)
  452. ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
  453. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  454. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  455. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  456. ==4058== by 0x10AE25: main (test_main.cc:56)
  457. ==4058== Block was alloc'd at
  458. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  459. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  460. ==4058== by 0x109B4A: main (test_main.cc:17)
  461. ==4058==
  462. PASSED Copying the list yields the same elements
  463. PASSED Copying yields no more than those elements
  464. ==4058== Invalid read of size 8
  465. ==4058== at 0x10B599: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
  466. ==4058== by 0x10B44D: main (test_main.cc:61)
  467. ==4058== Address 0x4a7eff8 is 8 bytes inside a block of size 16 free'd
  468. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  469. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  470. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  471. ==4058== by 0x10B44D: main (test_main.cc:61)
  472. ==4058== Block was alloc'd at
  473. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  474. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  475. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  476. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  477. ==4058== by 0x10AFFE: main (test_main.cc:61)
  478. ==4058==
  479. ==4058== Invalid read of size 8
  480. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  481. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  482. ==4058== by 0x10B44D: main (test_main.cc:61)
  483. ==4058== Address 0x4a7eff8 is 8 bytes inside a block of size 16 free'd
  484. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  485. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  486. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  487. ==4058== by 0x10B44D: main (test_main.cc:61)
  488. ==4058== Block was alloc'd at
  489. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  490. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  491. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  492. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  493. ==4058== by 0x10AFFE: main (test_main.cc:61)
  494. ==4058==
  495. ==4058== Invalid read of size 8
  496. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  497. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  498. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  499. ==4058== by 0x10B44D: main (test_main.cc:61)
  500. ==4058== Address 0x4a7efa8 is 8 bytes inside a block of size 16 free'd
  501. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  502. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  503. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  504. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  505. ==4058== by 0x10B44D: main (test_main.cc:61)
  506. ==4058== Block was alloc'd at
  507. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  508. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  509. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  510. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  511. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  512. ==4058== by 0x10AFFE: main (test_main.cc:61)
  513. ==4058==
  514. ==4058== Invalid read of size 8
  515. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  516. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  517. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  518. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  519. ==4058== by 0x10B44D: main (test_main.cc:61)
  520. ==4058== Address 0x4a7ef58 is 8 bytes inside a block of size 16 free'd
  521. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  522. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  523. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  524. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  525. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  526. ==4058== by 0x10B44D: main (test_main.cc:61)
  527. ==4058== Block was alloc'd at
  528. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  529. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  530. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  531. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  532. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  533. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  534. ==4058== by 0x10AFFE: main (test_main.cc:61)
  535. ==4058==
  536. ==4058== Invalid read of size 8
  537. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  538. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  539. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  540. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  541. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  542. ==4058== by 0x10B44D: main (test_main.cc:61)
  543. ==4058== Address 0x4a7ef08 is 8 bytes inside a block of size 16 free'd
  544. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  545. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  546. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  547. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  548. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  549. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  550. ==4058== by 0x10B44D: main (test_main.cc:61)
  551. ==4058== Block was alloc'd at
  552. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  553. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  554. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  555. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  556. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  557. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  558. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  559. ==4058== by 0x10AFFE: main (test_main.cc:61)
  560. ==4058==
  561. ==4058== Invalid free() / delete / delete[] / realloc()
  562. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  563. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  564. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  565. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  566. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  567. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  568. ==4058== by 0x10B44D: main (test_main.cc:61)
  569. ==4058== Address 0x4a7eeb0 is 0 bytes inside a block of size 16 free'd
  570. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  571. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  572. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  573. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  574. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  575. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  576. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  577. ==4058== by 0x10B44D: main (test_main.cc:61)
  578. ==4058== Block was alloc'd at
  579. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  580. ==4058== by 0x10B925: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:55)
  581. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  582. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  583. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  584. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  585. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  586. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  587. ==4058== by 0x10AFFE: main (test_main.cc:61)
  588. ==4058==
  589. ==4058== Invalid free() / delete / delete[] / realloc()
  590. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  591. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  592. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  593. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  594. ==4058== by 0x10B44D: main (test_main.cc:61)
  595. ==4058== Address 0x4a7ef50 is 0 bytes inside a block of size 16 free'd
  596. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  597. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  598. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  599. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  600. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  601. ==4058== by 0x10B44D: main (test_main.cc:61)
  602. ==4058== Block was alloc'd at
  603. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  604. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  605. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  606. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  607. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  608. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  609. ==4058== by 0x10AFFE: main (test_main.cc:61)
  610. ==4058==
  611. ==4058== Invalid free() / delete / delete[] / realloc()
  612. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  613. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  614. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  615. ==4058== by 0x10B44D: main (test_main.cc:61)
  616. ==4058== Address 0x4a7efa0 is 0 bytes inside a block of size 16 free'd
  617. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  618. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  619. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  620. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  621. ==4058== by 0x10B44D: main (test_main.cc:61)
  622. ==4058== Block was alloc'd at
  623. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  624. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  625. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  626. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  627. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  628. ==4058== by 0x10AFFE: main (test_main.cc:61)
  629. ==4058==
  630. ==4058== Invalid free() / delete / delete[] / realloc()
  631. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  632. ==4058== by 0x10B5C1: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  633. ==4058== by 0x10B44D: main (test_main.cc:61)
  634. ==4058== Address 0x4a7eff0 is 0 bytes inside a block of size 16 free'd
  635. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  636. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  637. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  638. ==4058== by 0x10B44D: main (test_main.cc:61)
  639. ==4058== Block was alloc'd at
  640. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  641. ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  642. ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
  643. ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
  644. ==4058== by 0x10AFFE: main (test_main.cc:61)
  645. ==4058==
  646. ==4058== Invalid read of size 8
  647. ==4058== at 0x10B599: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
  648. ==4058== by 0x10B459: main (test_main.cc:10)
  649. ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
  650. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  651. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  652. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  653. ==4058== by 0x10AE25: main (test_main.cc:56)
  654. ==4058== Block was alloc'd at
  655. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  656. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  657. ==4058== by 0x109B4A: main (test_main.cc:17)
  658. ==4058==
  659. ==4058== Invalid read of size 8
  660. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  661. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  662. ==4058== by 0x10B459: main (test_main.cc:10)
  663. ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
  664. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  665. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  666. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  667. ==4058== by 0x10AE25: main (test_main.cc:56)
  668. ==4058== Block was alloc'd at
  669. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  670. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  671. ==4058== by 0x109B4A: main (test_main.cc:17)
  672. ==4058==
  673. ==4058== Invalid read of size 8
  674. ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  675. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  676. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  677. ==4058== by 0x10B459: main (test_main.cc:10)
  678. ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
  679. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  680. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  681. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  682. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  683. ==4058== by 0x10AE25: main (test_main.cc:56)
  684. ==4058== Block was alloc'd at
  685. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  686. ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
  687. ==4058== by 0x10A4FE: main (test_main.cc:45)
  688. ==4058==
  689. ==4058== Invalid free() / delete / delete[] / realloc()
  690. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  691. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  692. ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  693. ==4058== by 0x10B459: main (test_main.cc:10)
  694. ==4058== Address 0x4a7ee60 is 0 bytes inside a block of size 16 free'd
  695. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  696. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  697. ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  698. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  699. ==4058== by 0x10AE25: main (test_main.cc:56)
  700. ==4058== Block was alloc'd at
  701. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  702. ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
  703. ==4058== by 0x10A4FE: main (test_main.cc:45)
  704. ==4058==
  705. ==4058== Invalid free() / delete / delete[] / realloc()
  706. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  707. ==4058== by 0x10B5C1: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
  708. ==4058== by 0x10B459: main (test_main.cc:10)
  709. ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
  710. ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
  711. ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
  712. ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
  713. ==4058== by 0x10AE25: main (test_main.cc:56)
  714. ==4058== Block was alloc'd at
  715. ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
  716. ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
  717. ==4058== by 0x109B4A: main (test_main.cc:17)
  718. ==4058==
  719. PASSED ALL 15 tests.
  720. ==4058==
  721. ==4058== HEAP SUMMARY:
  722. ==4058== in use at exit: 72,704 bytes in 1 blocks
  723. ==4058== total heap usage: 14 allocs, 49 frees, 72,912 bytes allocated
  724. ==4058==
  725. ==4058== LEAK SUMMARY:
  726. ==4058== definitely lost: 0 bytes in 0 blocks
  727. ==4058== indirectly lost: 0 bytes in 0 blocks
  728. ==4058== possibly lost: 0 bytes in 0 blocks
  729. ==4058== still reachable: 72,704 bytes in 1 blocks
  730. ==4058== suppressed: 0 bytes in 0 blocks
  731. ==4058== Reachable blocks (those to which a pointer was found) are not shown.
  732. ==4058== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  733. ==4058==
  734. ==4058== For lists of detected and suppressed errors, rerun with: -s
  735. ==4058== ERROR SUMMARY: 101 errors from 27 contexts (suppressed: 0 from 0)
  736. # FAIL exitstatus=1 (557 ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement