Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
valgrind output on Mountain Lion
=46255==
==46255== HEAP SUMMARY:
==46255== in use at exit: 63,867 bytes in 354 blocks
==46255== total heap usage: 1,459 allocs, 1,105 frees, 162,223 bytes allocated
==46255==
==46255== 16 bytes in 1 blocks are definitely lost in loss record 7 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F1413: recursive_mutex_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F0025: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC1006D: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FFC3: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FEB9: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01F9D: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==46255== by 0x7FFF5FC05B03: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01396: dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==46255==
==46255== 24 bytes in 1 blocks are possibly lost in loss record 13 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F371D: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F38A6: _NXHashRehashToCapacity (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F37F8: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F351C: NXCreateHashTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F33CD: NXCreateHashTable (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F3268: NXCreateMapTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F27D2: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255==
==46255== 24 bytes in 1 blocks are possibly lost in loss record 14 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F371D: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033BD: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x502650: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255==
==46255== 24 bytes in 1 blocks are possibly lost in loss record 15 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F371D: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033A4: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== 48 bytes in 2 blocks are possibly lost in loss record 32 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F371D: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F38A6: _NXHashRehashToCapacity (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F37F8: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033A4: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255==
==46255== 64 bytes in 1 blocks are definitely lost in loss record 37 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F1461: recursive_mutex_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F0025: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC1006D: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FFC3: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FEB9: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01F9D: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==46255== by 0x7FFF5FC05B03: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01396: dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==46255==
==46255== 72 bytes in 1 blocks are possibly lost in loss record 38 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F379A: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033BD: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x502650: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255==
==46255== 72 (24 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 39 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F7752: _objc_fetch_pthread_data (in /usr/lib/libobjc.A.dylib)
==46255== by 0x500CCD: _fetchInitializingClassList(signed char) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F7201: _class_initialize (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F71B7: _class_initialize (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F71B7: _class_initialize (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F71B7: _class_initialize (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F7172: prepareForMethodLookup (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F6F6E: lookUpMethod (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F537B: objc_msgSend (in /usr/lib/libobjc.A.dylib)
==46255== by 0x45CE87: _libxpc_initializer (in /usr/lib/system/libxpc.dylib)
==46255== by 0x134B2C: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255==
==46255== 120 (40 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 45 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F1811: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC1006D: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FFC3: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255==
==46255== 184 bytes in 4 blocks are possibly lost in loss record 56 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F379A: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F38A6: _NXHashRehashToCapacity (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F37F8: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033BD: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x502650: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255==
==46255== 208 bytes in 4 blocks are possibly lost in loss record 57 of 84
==46255== at 0xC9FA: malloc_zone_calloc (vg_replace_malloc.c:599)
==46255== by 0x4F379A: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F38A6: _NXHashRehashToCapacity (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F37F8: NXHashInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5033A4: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255==
==46255== 264 bytes in 1 blocks are definitely lost in loss record 61 of 84
==46255== at 0xC713: malloc (vg_replace_malloc.c:274)
==46255== by 0x201C35: getPerThreadBufferFor_dlerror(unsigned int) (in /usr/lib/system/libdyld.dylib)
==46255== by 0x7FFF5FC0A694: dlopen (in /usr/lib/dyld)
==46255== by 0x201DD7: dlopen (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F1863: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== 528 bytes in 1 blocks are possibly lost in loss record 64 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F3343: NXCreateMapTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x506E6E: unattachedCategories() (in /usr/lib/libobjc.A.dylib)
==46255== by 0x503274: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x502650: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x50263C: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x50263C: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x50263C: realizeClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2F4C: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255==
==46255== 629 bytes in 39 blocks are possibly lost in loss record 68 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F4037: _strdup_internal (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F3FE9: NXMapKeyCopyingInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2E4D: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== 1,040 bytes in 1 blocks are possibly lost in loss record 72 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F3343: NXCreateMapTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x501B3C: futureNamedClasses() (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F28AB: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== 1,040 bytes in 1 blocks are possibly lost in loss record 73 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F3343: NXCreateMapTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x507E44: remappedClasses(signed char) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x5019D7: remapClass(class_t*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2A51: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255==
==46255== 1,040 bytes in 1 blocks are possibly lost in loss record 74 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4FCD01: _NXMapRehash(_NXMapTable*) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F3B30: NXMapInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F3FF7: NXMapKeyCopyingInsert (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F2E4D: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255==
==46255== 1,040 bytes in 1 blocks are definitely lost in loss record 76 of 84
==46255== at 0xC713: malloc (vg_replace_malloc.c:274)
==46255== by 0x29812E: atexit_register (in /usr/lib/system/libsystem_c.dylib)
==46255== by 0x298264: __cxa_atexit (in /usr/lib/system/libsystem_c.dylib)
==46255== by 0x100006A51: global constructors keyed to std::tr1::(anonymous namespace)::ignore (in ./tests)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC1006D: ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0FEB9: ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01FBF: dyld::initializeMainExecutable() (in /usr/lib/dyld)
==46255== by 0x7FFF5FC05B03: dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC01396: dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0105D: _dyld_start (in /usr/lib/dyld)
==46255==
==46255== 1,064 (24 direct, 1,040 indirect) bytes in 1 blocks are definitely lost in loss record 77 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F3221: NXCreateMapTableFromZone (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F27D2: _read_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A80: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== 8,192 bytes in 8 blocks are definitely lost in loss record 83 of 84
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276)
==46255== by 0x4F265E: objc::DenseMap<objc_object*, unsigned long, true, objc::DenseMapInfo<objc_object*>, objc::DenseMapInfo<unsigned long> >::init(unsigned int) (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F260A: arr_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1A74: map_images_nolock (in /usr/lib/libobjc.A.dylib)
==46255== by 0x4F1583: map_images (in /usr/lib/libobjc.A.dylib)
==46255== by 0x7FFF5FC04936: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC0467C: dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld)
==46255== by 0x201ED9: dyld_register_image_state_change_handler (in /usr/lib/system/libdyld.dylib)
==46255== by 0x4F004C: _objc_init (in /usr/lib/libobjc.A.dylib)
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib)
==46255== by 0x7FFF5FC13377: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255== by 0x7FFF5FC13761: ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==46255==
==46255== LEAK SUMMARY:
==46255== definitely lost: 9,664 bytes in 15 blocks
==46255== indirectly lost: 1,168 bytes in 5 blocks
==46255== possibly lost: 4,861 bytes in 57 blocks
==46255== still reachable: 48,174 bytes in 277 blocks
==46255== suppressed: 0 bytes in 0 blocks
==46255== Reachable blocks (those to which a pointer was found) are not shown.
==46255== To see them, rerun with: --leak-check=full --show-reachable=yes
==46255==
==46255== For counts of detected and suppressed errors, rerun with: -v
==46255== ERROR SUMMARY: 20 errors from 20 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment