[quote='878469022, Nickkk, /thread/817724?answerId=878469022#878469022, /profile/Nickkk'] Is the unmapped memory exception also the reason why the binary image address for my app is 0x0 - 0xffffffffffffffff? [/quote] Sadly, it’s not that simple. I created a small test app with this code: - (IBAction)testAction:(id)sender { #pragma unused(sender) NSLog(@-[AppDelegate testAction:]); void * p = (void *) 0x123456789ab; typedef void (*FunctionPtr)(void); FunctionPtr f = (FunctionPtr) p; f(); } and it produces a crash report like this: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x00000123456789ab Exception Codes: 0x0000000000000001, 0x00000123456789ab … Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 0x123456789ab ??? 1 xxom 0x10e301bf3 -[AppDelegate testAction:] + 83 2 AppKit 0x7ff81fa612ea -[NSApplication(NSResponder) sendAction:to:from:] + 444 … Thread 0 crashed with X86 Thread State (64-bit): … rip: 0x00000123456789ab rfl: 0x0000000000010202 cr2: 0x0000012
Topic:
Developer Tools & Services
SubTopic:
General
Tags: