Skip to content

Instantly share code, notes, and snippets.

@bmcorser
Created June 28, 2016 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmcorser/09a5b52a22bc127400b237bcaca0c0ba to your computer and use it in GitHub Desktop.
Save bmcorser/09a5b52a22bc127400b237bcaca0c0ba to your computer and use it in GitHub Desktop.
==6865== Memcheck, a memory error detector [115528/1005960]
==6865== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==6865== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==6865== Command: ./pdtest_rtaudio
==6865==
==6865== Conditional jump or move depends on uninitialised value(s)
==6865== at 0x40DE29: RtApiAlsa::getDeviceInfo(unsigned int) (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x40FC57: RtApiAlsa::saveDeviceInfo() (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x41227F: RtApiAlsa::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) (in /home/ben/work/games/src/libpd/samples/cp
p/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x408885: RtAudio::openStream(RtAudio::StreamParameters*, RtAudio::StreamParameters*, unsigned long, unsigned int, unsigned int*, int (*)(void*, void*, unsigned int, double, unsigned int, void*), void*, RtAudio::
StreamOptions*, void (*)(RtAudioError::Type, std::string const&)) (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x40558E: init() (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x4045BA: main (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865==
==6865== Conditional jump or move depends on uninitialised value(s)
==6865== at 0x40DEDF: RtApiAlsa::getDeviceInfo(unsigned int) (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x40FC57: RtApiAlsa::saveDeviceInfo() (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x41227F: RtApiAlsa::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) (in /home/ben/work/games/src/libpd/samples/cp
p/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x408885: RtAudio::openStream(RtAudio::StreamParameters*, RtAudio::StreamParameters*, unsigned long, unsigned int, unsigned int*, int (*)(void*, void*, unsigned int, double, unsigned int, void*), void*, RtAudio::
StreamOptions*, void (*)(RtAudioError::Type, std::string const&)) (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x40558E: init() (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865== by 0x4045BA: main (in /home/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/pdtest_rtaudio)
==6865==
CPP: float cursor: 95
CPP: float cursor: 118
CPP: float cursor: 93
CPP: float cursor: 117
CPP: float cursor: 80
CPP: float cursor: 72
CPP: float cursor: 62
CPP: float cursor: 39
<snip>
RtApiAlsa::callbackEvent: audio write error, File descriptor in bad state.
CPP: float cursor: 48
CPP: float cursor: 107
RtApiAlsa::callbackEvent: audio write error, File descriptor in bad state.
CPP: float cursor: 32
CPP: float cursor: 18
CPP: float cursor: 96
CPP: float cursor: 98
CPP: float cursor: 105
CPP: float cursor: 27
CPP: float cursor: 29
^C==6865==
==6865== HEAP SUMMARY:
==6865== in use at exit: 4,427,012 bytes in 95,203 blocks
==6865== total heap usage: 20,343,476 allocs, 20,248,273 frees, 517,341,321,726 bytes allocated
==6865==
==6865== LEAK SUMMARY:
==6865== definitely lost: 512 bytes in 16 blocks
==6865== indirectly lost: 0 bytes in 0 blocks
==6865== possibly lost: 44,713 bytes in 1,322 blocks
==6865== still reachable: 4,381,787 bytes in 93,865 blocks
==6865== suppressed: 0 bytes in 0 blocks
==6865== Rerun with --leak-check=full to see details of leaked memory
==6865==
==6865== For counts of detected and suppressed errors, rerun with: -v
==6865== Use --track-origins=yes to see where uninitialised values come from
==6865== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
[1] 6865 killed valgrind ./pdtest_rtaudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment