Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MagnificentPako/9cee89db44fa3d5a1835ba626c2f0b4a to your computer and use it in GitHub Desktop.
Save MagnificentPako/9cee89db44fa3d5a1835ba626c2f0b4a to your computer and use it in GitHub Desktop.
==7544== Memcheck, a memory error detector
==7544== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7544== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==7544== Command: ./result/main
==7544==
==7544== Invalid read of size 8
==7544== at 0x416D64: ejcReleaseMemory (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x416CBD: ejcRelease (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x404A2E: fn_1f3c1 (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x900FFFFFFFFFFFF: ???
==7544== by 0x4F86EEF: ???
==7544== by 0x4FBD8DF: ???
==7544== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7544==
==7544==
==7544== Process terminating with default action of signal 11 (SIGSEGV)
==7544== Access not within mapped region at address 0x0
==7544== at 0x416D64: ejcReleaseMemory (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x416CBD: ejcRelease (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x404A2E: fn_1f3c1 (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x900FFFFFFFFFFFF: ???
==7544== by 0x4F86EEF: ???
==7544== by 0x4FBD8DF: ???
==7544== If you believe this happened as a result of a stack
==7544== overflow in your program's main thread (unlikely but
==7544== possible), you can try to increase the size of the
==7544== main thread stack using the --main-stacksize= flag.
==7544== The main thread stack size used in this run was 8388608.
==7544==
==7544== HEAP SUMMARY:
==7544== in use at exit: 620 bytes in 8 blocks
==7544== total heap usage: 49 allocs, 41 frees, 2,461,064 bytes allocated
==7544==
==7544== LEAK SUMMARY:
==7544== definitely lost: 556 bytes in 3 blocks
==7544== indirectly lost: 24 bytes in 3 blocks
==7544== possibly lost: 0 bytes in 0 blocks
==7544== still reachable: 40 bytes in 2 blocks
==7544== suppressed: 0 bytes in 0 blocks
==7544== Rerun with --leak-check=full to see details of leaked memory
==7544==
==7544== For counts of detected and suppressed errors, rerun with: -v
==7544== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment