Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run main.cpp with Valgrind.
- > valgrind --leak-check=full --track-origins=yes ./main
- ==4050== Memcheck, a memory error detector
- ==4050== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==4050== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
- ==4050== Command: ./main
- ==4050==
- List1: |3|2|1|
- List1 size: 3
- List2: |7|6|5|4|
- swaped
- List1: |7|6|5|4|
- List2: |3|2|1|
- ==4050== Invalid read of size 8
- ==4050== at 0x109549: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Address 0x4a7ecd8 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1092DC: main (main.cpp:11)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Address 0x4a7ecd8 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1092DC: main (main.cpp:11)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Address 0x4a7ec88 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1092C2: main (main.cpp:10)
- ==4050==
- ==4050== Invalid free() / delete / delete[] / realloc()
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Address 0x4a7ec80 is 0 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1092C2: main (main.cpp:10)
- ==4050==
- ==4050== Invalid free() / delete / delete[] / realloc()
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x109571: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Address 0x4a7ecd0 is 0 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109445: main (main.cpp:19)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1092DC: main (main.cpp:11)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x109549: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7ee18 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1093A8: main (main.cpp:22)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7ee18 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1093A8: main (main.cpp:22)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x10938E: main (main.cpp:21)
- ==4050==
- ==4050== Invalid read of size 8
- ==4050== at 0x10971F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x109374: main (main.cpp:20)
- ==4050==
- ==4050== Invalid free() / delete / delete[] / realloc()
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7ed70 is 0 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x109374: main (main.cpp:20)
- ==4050==
- ==4050== Invalid free() / delete / delete[] / realloc()
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x10972F: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x10938E: main (main.cpp:21)
- ==4050==
- ==4050== Invalid free() / delete / delete[] / realloc()
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x109571: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Address 0x4a7ee10 is 0 bytes inside a block of size 16 free'd
- ==4050== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4050== by 0x10973C: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4050== by 0x109564: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4050== by 0x109451: main (main.cpp:9)
- ==4050== Block was alloc'd at
- ==4050== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4050== by 0x109596: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4050== by 0x1093A8: main (main.cpp:22)
- ==4050==
- ==4050==
- ==4050== HEAP SUMMARY:
- ==4050== in use at exit: 72,704 bytes in 1 blocks
- ==4050== total heap usage: 8 allocs, 16 frees, 72,816 bytes allocated
- ==4050==
- ==4050== LEAK SUMMARY:
- ==4050== definitely lost: 0 bytes in 0 blocks
- ==4050== indirectly lost: 0 bytes in 0 blocks
- ==4050== possibly lost: 0 bytes in 0 blocks
- ==4050== still reachable: 72,704 bytes in 1 blocks
- ==4050== suppressed: 0 bytes in 0 blocks
- ==4050== Reachable blocks (those to which a pointer was found) are not shown.
- ==4050== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==4050==
- ==4050== For lists of detected and suppressed errors, rerun with: -s
- ==4050== ERROR SUMMARY: 23 errors from 12 contexts (suppressed: 0 from 0)
- # FAIL exitstatus=1 (499 ms)
- # Valgrind test.
- > COLORS=yes valgrind --leak-check=full --track-origins=yes ./test_main
- ==4058== Memcheck, a memory error detector
- ==4058== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==4058== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
- ==4058== Command: ./test_main
- ==4058==
- PASSED Newly created list is empty()
- PASSED Newly created list has size() 0
- PASSED List with inserted elements is not empty()
- PASSED size() is correct after inserting a number of elements
- PASSED front() yields last inserted element
- PASSED Range based for loop yields correct elements
- PASSED Assigning to front() allows changing the first element
- PASSED insert_after() returns iterator to inserted element
- PASSED insert_after() increases the size by 1
- PASSED insert_after() does not change previous element
- PASSED insert_after() inserts at correct position
- PASSED insert_after() does not change next element
- ==4058== Invalid read of size 4
- ==4058== at 0x10AE32: main (test_main.cc:58)
- ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- PASSED pop_front() removes exactly one element
- ==4058== Invalid read of size 8
- ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
- ==4058== by 0x10A4FE: main (test_main.cc:45)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
- ==4058== by 0x10A4FE: main (test_main.cc:45)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ed78 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B913: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:53)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ed28 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B943: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ed28 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 4
- ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
- ==4058== by 0x10B93C: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:55)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ec80 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 4
- ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
- ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ecd0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 4
- ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
- ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7ee60 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
- ==4058== by 0x10A4FE: main (test_main.cc:45)
- ==4058==
- ==4058== Invalid read of size 4
- ==4058== at 0x10B8CE: a08::ForwardList<int>::Node::Node(int const&, a08::ForwardList<int>::Node*) (forwardlist.hpp:33)
- ==4058== by 0x10B970: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- PASSED Copying the list yields the same elements
- PASSED Copying yields no more than those elements
- ==4058== Invalid read of size 8
- ==4058== at 0x10B599: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7eff8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7eff8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7efa8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7ef58 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7ef08 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7eeb0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B925: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:55)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7ef50 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7efa0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B5C1: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Address 0x4a7eff0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B44D: main (test_main.cc:61)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B95B: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B94E: a08::ForwardList<int>::Node::clone() const (forwardlist.hpp:59)
- ==4058== by 0x10B844: a08::ForwardList<int>::ForwardList(a08::ForwardList<int> const&) (forwardlist.hpp:137)
- ==4058== by 0x10AFFE: main (test_main.cc:61)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B599: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:146)
- ==4058== by 0x10B459: main (test_main.cc:10)
- ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B459: main (test_main.cc:10)
- ==4058== Address 0x4a7edc8 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- ==4058== Invalid read of size 8
- ==4058== at 0x10B895: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B459: main (test_main.cc:10)
- ==4058== Address 0x4a7ee68 is 8 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
- ==4058== by 0x10A4FE: main (test_main.cc:45)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B5B4: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B459: main (test_main.cc:10)
- ==4058== Address 0x4a7ee60 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B8A5: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B761: a08::ForwardList<int>::insert_after(a08::ForwardList<int>::Iterator, int) (forwardlist.hpp:222)
- ==4058== by 0x10A4FE: main (test_main.cc:45)
- ==4058==
- ==4058== Invalid free() / delete / delete[] / realloc()
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B5C1: a08::ForwardList<int>::~ForwardList() (forwardlist.hpp:147)
- ==4058== by 0x10B459: main (test_main.cc:10)
- ==4058== Address 0x4a7edc0 is 0 bytes inside a block of size 16 free'd
- ==4058== at 0x48A525B: operator delete(void*, unsigned long) (vg_replace_malloc.c:814)
- ==4058== by 0x10B8B2: a08::ForwardList<int>::Node::~Node() (forwardlist.hpp:36)
- ==4058== by 0x10B7E5: a08::ForwardList<int>::pop_front() (forwardlist.hpp:190)
- ==4058== by 0x10AE25: main (test_main.cc:56)
- ==4058== Block was alloc'd at
- ==4058== at 0x48A2E67: operator new(unsigned long) (vg_replace_malloc.c:417)
- ==4058== by 0x10B610: a08::ForwardList<int>::push_front(int const&) (forwardlist.hpp:178)
- ==4058== by 0x109B4A: main (test_main.cc:17)
- ==4058==
- PASSED ALL 15 tests.
- ==4058==
- ==4058== HEAP SUMMARY:
- ==4058== in use at exit: 72,704 bytes in 1 blocks
- ==4058== total heap usage: 14 allocs, 49 frees, 72,912 bytes allocated
- ==4058==
- ==4058== LEAK SUMMARY:
- ==4058== definitely lost: 0 bytes in 0 blocks
- ==4058== indirectly lost: 0 bytes in 0 blocks
- ==4058== possibly lost: 0 bytes in 0 blocks
- ==4058== still reachable: 72,704 bytes in 1 blocks
- ==4058== suppressed: 0 bytes in 0 blocks
- ==4058== Reachable blocks (those to which a pointer was found) are not shown.
- ==4058== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==4058==
- ==4058== For lists of detected and suppressed errors, rerun with: -s
- ==4058== ERROR SUMMARY: 101 errors from 27 contexts (suppressed: 0 from 0)
- # FAIL exitstatus=1 (557 ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement