Skip to content

Instantly share code, notes, and snippets.

@Dotz0cat
Created June 22, 2020 23:24
Show Gist options
  • Save Dotz0cat/7e87cbc0924834de296909ef4c16d9c7 to your computer and use it in GitHub Desktop.
Save Dotz0cat/7e87cbc0924834de296909ef4c16d9c7 to your computer and use it in GitHub Desktop.
valgrind --leak-check=full ./rajio http://localhost:8080/stream
==2236== Memcheck, a memory error detector
==2236== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2236== Using Valgrind-3.16.0.GIT and LibVEX; rerun with -h for copyright info
==2236== Command: ./rajio http://localhost:8080/stream
==2236==
==2236== Conditional jump or move depends on uninitialised value(s)
==2236== at 0x497B415: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x497C333: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x497CFEF: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x4929D18: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x492A1BD: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x492DD7F: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x4A110CA: ??? (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x4A72182: avformat_open_input (in /usr/lib/libavformat.so.58.29.100)
==2236== by 0x10A785: play_with_libav (main.c:163)
==2236== by 0x61F8001: (below main) (in /usr/lib/libc-2.31.so)
==2236==
underflow
==2236== Invalid free() / delete / delete[] / realloc()
==2236== at 0x483A9AB: free (vg_replace_malloc.c:538)
==2236== by 0x10ABB4: play_with_libav (main.c:341)
==2236== by 0x61F8001: (below main) (in /usr/lib/libc-2.31.so)
==2236== Address 0xc870040 is not stack'd, malloc'd or (recently) free'd
==2236==
==2236==
==2236== HEAP SUMMARY:
==2236== in use at exit: 162,051 bytes in 781 blocks
==2236== total heap usage: 15,109 allocs, 14,329 frees, 2,469,286 bytes allocated
==2236==
==2236== 4 bytes in 1 blocks are definitely lost in loss record 3 of 110
==2236== at 0x483BB65: calloc (vg_replace_malloc.c:760)
==2236== by 0x488119F: pa_xmalloc0 (in /usr/lib/libpulse.so.0.21.1)
==2236== by 0x48AC301: pa_context_new_with_proplist (in /usr/lib/libpulse.so.0.21.1)
==2236== by 0x10A5DD: play_with_libav (main.c:98)
==2236== by 0x61F8001: (below main) (in /usr/lib/libc-2.31.so)
==2236==
==2236== 9,216 bytes in 1 blocks are definitely lost in loss record 107 of 110
==2236== at 0x483977F: malloc (vg_replace_malloc.c:307)
==2236== by 0x10A59E: play_with_libav (main.c:80)
==2236== by 0x61F8001: (below main) (in /usr/lib/libc-2.31.so)
==2236==
==2236== LEAK SUMMARY:
==2236== definitely lost: 9,220 bytes in 2 blocks
==2236== indirectly lost: 0 bytes in 0 blocks
==2236== possibly lost: 0 bytes in 0 blocks
==2236== still reachable: 152,831 bytes in 779 blocks
==2236== suppressed: 0 bytes in 0 blocks
==2236== Reachable blocks (those to which a pointer was found) are not shown.
==2236== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2236==
==2236== Use --track-origins=yes to see where uninitialised values come from
==2236== For lists of detected and suppressed errors, rerun with: -s
==2236== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment