==67184== Memcheck, a memory error detector ==67184== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==67184== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==67184== Command: ./test.exe ==67184== Hello ==67184== ==67184== HEAP SUMMARY: ==67184== in use at exit: 32 bytes in 1 blocks ==67184== total heap usage: 3 allocs, 2 frees, 73,760 bytes allocated ==67184== ==67184== LEAK SUMMARY: ==67184== definitely lost: 32 bytes in 1 blocks ==67184== indirectly lost: 0 bytes in 0 blocks ==67184== possibly lost: 0 bytes in 0 blocks ==67184== still reachable: 0 bytes in 0 blocks ==67184== suppressed: 0 bytes in 0 blocks ==67184== Rerun with --leak-check=full to see details of leaked memory ==67184== ==67184== For lists of detected and suppressed errors, rerun with: -s ==67184== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==67281== 32 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==67281== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==67281== by 0x10A4DA: main (test.cpp:15)
==93102== Use of uninitialised value of size 8 ==93102== at 0x1091B9: main (test.cpp:6) ==93102== ==93102== Invalid read of size 4 ==93102== at 0x1091B9: main (test.cpp:6) ==93102== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==93102== ==93102== ==93102== Process terminating with default action of signal 11 (SIGSEGV) ==93102== Access not within mapped region at address 0x0 ==93102== at 0x1091B9: main (test.cpp:6) ==93102== If you believe this happened as a result of a stack ==93102== overflow in your program's main thread (unlikely but ==93102== possible), you can try to increase the size of the ==93102== main thread stack using the --main-stacksize= flag. ==93102== The main thread stack size used in this run was 8388608.