valgrind output

mail@pastecode.io avatar
unknown
plain_text
2 years ago
5.6 kB
2
Indexable
Never
ethanlee@DESKTOP-V6I753F:~/scratch$ valgrind ./a.out
==142== Memcheck, a memory error detector
==142== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==142== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==142== Command: ./a.out
==142==
4
2 8
1 7
4 5
5 2
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x109A44: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1096EF: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x10949E: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109705: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x10949E: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1096EF: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x10949E: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1094DB: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109705: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x10949E: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1094DB: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1096EF: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x109532: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109705: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x109532: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109771: Node::solve(int) (in /home/ethanlee/scratch/a.out)
==142==    by 0x10978D: Node::solve(int) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1099F9: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1096EF: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x109554: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1094DB: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109705: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x109554: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1094DB: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
==142== Conditional jump or move depends on uninitialised value(s)
==142==    at 0x10AE92: int const& std::max<int>(int const&, int const&) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1096EF: Node::update() (in /home/ethanlee/scratch/a.out)
==142==    by 0x109532: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x1094DB: Node::insert(Node*) (in /home/ethanlee/scratch/a.out)
==142==    by 0x109A6D: main (in /home/ethanlee/scratch/a.out)
==142==
0 0 1 2
==142==
==142== HEAP SUMMARY:
==142==     in use at exit: 200 bytes in 5 blocks
==142==   total heap usage: 12 allocs, 7 frees, 75,052 bytes allocated
==142==
==142== LEAK SUMMARY:
==142==    definitely lost: 40 bytes in 1 blocks
==142==    indirectly lost: 120 bytes in 3 blocks
==142==      possibly lost: 0 bytes in 0 blocks
==142==    still reachable: 40 bytes in 1 blocks
==142==         suppressed: 0 bytes in 0 blocks
==142== Rerun with --leak-check=full to see details of leaked memory
==142==
==142== Use --track-origins=yes to see where uninitialised values come from
==142== For lists of detected and suppressed errors, rerun with: -s
==142== ERROR SUMMARY: 18 errors from 11 contexts (suppressed: 0 from 0)