Skip to content

Instantly share code, notes, and snippets.

@bmcorser
Created June 28, 2016 10:55
Show Gist options
  • Save bmcorser/b45ed04c5f97efb77a6135c22211f699 to your computer and use it in GitHub Desktop.
Save bmcorser/b45ed04c5f97efb77a6135c22211f699 to your computer and use it in GitHub Desktop.
valgrind ./pdtest_rtaudio
==38211== Memcheck, a memory error detector
==38211== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==38211== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==38211== Command: ./pdtest_rtaudio
==38211==
--38211-- run: /usr/bin/dsymutil "./pdtest_rtaudio"
--38211-- run: /usr/bin/dsymutil "/Users/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/libs/libpdcpp.dylib"
--38211-- WARNING: Serious error when reading debug info
--38211-- When reading debug info from /Users/ben/work/games/src/libpd/samples/cpp/pdtest_rtaudio/libs/libpdcpp.dylib:
--38211-- Last block truncated in .debug_info; ignoring
==38211== Conditional jump or move depends on uninitialised value(s)
==38211== at 0x7FFF5FC24C07: bcmp (in /usr/lib/dyld)
==38211== by 0x7FFF5FC11AF4: ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, unsigned char const*, unsigned long, long long, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC16D6A: ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC10C5E: ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC085BF: dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC082DF: dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC08044: dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC07799: dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC088F9: dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==38211==
==38211== Use of uninitialised value of size 8
==38211== at 0x7FFF5FC24C1F: bcmp (in /usr/lib/dyld)
==38211== by 0x7FFF5FC11AF4: ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, unsigned char const*, unsigned long, long long, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC16D6A: ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC10C5E: ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC085BF: dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC082DF: dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC08044: dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC07799: dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC088F9: dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==38211==
==38211== Use of uninitialised value of size 8
==38211== at 0x7FFF5FC24C24: bcmp (in /usr/lib/dyld)
==38211== by 0x7FFF5FC11AF4: ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, unsigned char const*, unsigned long, long long, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC16D6A: ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC10C5E: ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC085BF: dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC082DF: dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC08044: dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC07799: dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC088F9: dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==38211==
==38211== Conditional jump or move depends on uninitialised value(s)
==38211== at 0x7FFF5FC11AF7: ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, unsigned char const*, unsigned long, long long, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC16D6A: ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char const*, unsigned long, unsigned long long, unsigned long long, stat const&, unsigned int, unsigned int, linkedit_data_command const*, encryption_info_command const*, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC10C5E: ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char const*, unsigned long long, unsigned long long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC038C2: dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC085BF: dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC082DF: dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC08044: dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC07799: dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0347A: dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0315E: dyld::load(char const*, dyld::LoadContext const&) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC088F9: dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*) (in /usr/lib/dyld)
==38211== by 0x7FFF5FC0EA4D: ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, ImageLoader::RPathChain const&) (in /usr/lib/dyld)
==38211==
--38211-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
--38211-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
--38211-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
==38211== Conditional jump or move depends on uninitialised value(s)
==38211== at 0x1013F3A19: pthread_attr_get_qos_class_np (in /usr/lib/system/libsystem_pthread.dylib)
==38211== by 0x1010B07B7: _dispatch_pthread_root_queue_create (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x1007C93D5: HALB_DispatchQueue::InitializeGlobalHighPriorityRootQueue(void*) (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x10109940A: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x101099302: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x1007C94B1: HALB_DispatchQueue::GetGlobalHighPriorityRootQueue() (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x1007A3B09: HALC_ProxyGate::Initialize(void*) (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x10109940A: _dispatch_client_callout (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x101099302: dispatch_once_f (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x1007A3AB5: HALC_ProxyGate::InstallMachPortDeathNotification(unsigned int, void ( block_pointer)()) (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x10079ED94: HALC_ProxySystem::HALC_ProxySystem() (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x10079E991: HALC_ProxyObjectMap::_CreateSystemObject() (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211==
--38211-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 8 times)
--38211-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 16 times)
^C^C==38211==
==38211== Process terminating with default action of signal 2 (SIGINT)
==38211== at 0x10129D6F2: sigprocmask (in /usr/lib/system/libsystem_kernel.dylib)
==38211== by 0x1013E16C5: _simple_sprintf (in /usr/lib/system/libsystem_platform.dylib)
==38211== by 0x1013E15BC: _simple_asl_msg_new (in /usr/lib/system/libsystem_platform.dylib)
==38211== by 0x1013E2380: _simple_asl_log_prog (in /usr/lib/system/libsystem_platform.dylib)
==38211== by 0x1010AFD9B: _dispatch_log (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x10109D56D: _dispatch_kq_update (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x10109CB34: _dispatch_mgr_wakeup (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x10109AAA4: _dispatch_queue_wakeup_with_qos_slow (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x10109AB05: _dispatch_queue_wakeup_with_qos_slow (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x10109C336: _dispatch_resume_slow (in /usr/lib/system/libdispatch.dylib)
==38211== by 0x1007A3C1E: CADispatchQueue::InstallMachPortDeathNotification(unsigned int, void ( block_pointer)()) (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211== by 0x10079EF21: HALC_ProxyObject::HALC_ProxyObject(unsigned int, unsigned int, unsigned int, unsigned int) (in /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio)
==38211==
==38211== HEAP SUMMARY:
==38211== in use at exit: 433,860 bytes in 929 blocks
==38211== total heap usage: 1,658 allocs, 729 frees, 763,459 bytes allocated
==38211==
==38211== LEAK SUMMARY:
==38211== definitely lost: 4,988 bytes in 40 blocks
==38211== indirectly lost: 8,537 bytes in 75 blocks
==38211== possibly lost: 5,184 bytes in 121 blocks
==38211== still reachable: 47,812 bytes in 390 blocks
==38211== suppressed: 367,339 bytes in 303 blocks
==38211== Rerun with --leak-check=full to see details of leaked memory
==38211==
==38211== For counts of detected and suppressed errors, rerun with: -v
==38211== Use --track-origins=yes to see where uninitialised values come from
==38211== ERROR SUMMARY: 9 errors from 5 contexts (suppressed: 0 from 0)
[1] 38211 killed valgrind ./pdtest_rtaudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment