I am getting weird memory problems. One of them I am catching setting a breakpoint in malloc_printf.
#0 0x90c33926 in malloc_printf ()
#1 0x90c2e41a in szone_error ()
#2 0x90b5c006 in small_free_list_add_ptr ()
#3 0x90b5b64a in small_malloc_from_free_list ()
#4 0x90b5aa40 in szone_calloc ()
#5 0x90b5a7f5 in malloc_zone_calloc ()
#6 0x93fa3606 in _internal_class_createInstanceFromZone ()
#7 0x93bac05b in NSAllocateObject ()
#8 0x93bb2f90 in -[NSConcreteData initWithBytes:length:copy:freeWhenDone:bytesAreVM:] ()
#9 0x93bf9468 in -[NSData(NSData) initWithBytes:length:] ()
#10 0x0009b2b2 in -[StorageBlockHandler(StorageAreaManagerHelper) writeBlock:length:] (self=0x1855d0, _cmd=0x9bd8f, buffer=0x822c00, length=1848) at /Users/dlsa/code/Boobs/trunk/sarinterface/src/StorageBlockHandlerHelper.m:66
#11 0x0009acd1 in -[StorageBlockHandler writeData:length:] (self=0x1855d0, _cmd=0x94063670, buffer=0x822c00, bytes=1848) at /Users/dlsa/code/Boobs/trunk/sarinterface/src/StorageBlockHandler.m:142
#12 0x000988ce in -[SARInterfaceSUDProvider write:into:] (self=0x12f16220, _cmd=0x1ecba, data="" addressRange={location = 9977, length = 23}) at /Users/dlsa/code/Boobs/trunk/sarinterface/src/SARInterfaceSUDProvider.m:294
#13 0x0000228f in +[StoragePoolCoordinatorReadWriteTestSetups setUpReadWithinSAaddress:writeBytes:lenght:atIndex:] (self=0x70e0, _cmd=0x5314, basePath=0x122930, bytes=0x562f "the big brown fox jumpe", bytesLenght=23, writeIndex=9977) at /Users/dlsa/code/Boobs/trunk/StoragePoolCoordinator/testsrc/StoragePoolCoordinatorReadWriteTestSetups.m:105
#14 0x0000234a in +[StoragePoolCoordinatorReadWriteTestSetups setUpPartialRead:writeBytes:lenght:atIndex:] (self=0x70e0, _cmd=0x5348, basePath=0x122930, bytes=0x562f "the big brown fox jumpe", bytesLenght=23, writeIndex=9977) at /Users/dlsa/code/Boobs/trunk/StoragePoolCoordinator/testsrc/StoragePoolCoordinatorReadWriteTestSetups.m:116
#15 0x0000314d in -[StoragePoolCoordinatorReadWriteTests test11PartialRead] (self=0x12f18ae0, _cmd=0x5d0f) at /Users/dlsa/code/Boobs/trunk/StoragePoolCoordinator/testsrc/StoragePoolCoordinatorReadWriteTests.m:83
#16 0x914f3a3d in __invoking___ ()
#17 0x914f3428 in -[NSInvocation invoke] ()
#18 0x201048b3 in -[SenTestCase invokeTest] ()
#19 0x20104a3d in -[SenTestCase performTest:] ()
#20 0x20104232 in -[SenTest run] ()
#21 0x20107765 in -[SenTestSuite performTest:] ()
#22 0x20104232 in -[SenTest run] ()
#23 0x20107765 in -[SenTestSuite performTest:] ()
#24 0x20104232 in -[SenTest run] ()
#25 0x20107765 in -[SenTestSuite performTest:] ()
#26 0x20104232 in -[SenTest run] ()
#27 0x201064ec in +[SenTestProbe runTests:] ()
#28 0x20106638 in +[SenTestProbe initialize] ()
#29 0x93fa48b8 in _class_initialize ()
#30 0x93fa3239 in _class_lookupMethodAndLoadCache ()
#31 0x93fb36d6 in objc_msgSend ()
#32 0x93fa50d3 in load_images ()
#33 0x8fe02e38 in __dyld__ZN4dyld12notifySingleE17dyld_image_statesPK11mach_headerPKcl ()
#34 0x8fe0e7cf in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()
#35 0x8fe0e775 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()
#36 0x8fe0e8c9 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
#37 0x8fe04102 in __dyld__ZN4dyld24initializeMainExecutableEv ()
#38 0x8fe07bcf in __dyld__ZN4dyld5_mainEPK11mach_headermiPPKcS5_S5_ ()
#39 0x8fe01872 in __dyld__ZN13dyldbootstrap5startEPK11mach_headeriPPKcl ()
#40 0x8fe01037 in __dyld__dyld_start ()
the byte buffer from which I am trying to initialize the NSData is about 4MB long and was allocated through malloc in stack frame.