osx - What do the different exception codes in OS X / iOS Crash reports mean? -
in apple crash reports, there 2 lines providing exception type
, exception codes
crash report. know these codes mean?
there self-explaining ones ones, kern_invalid_address
:
for example, 1 null pointer dereference:
exception type: exc_bad_access (sigsegv) exception codes: kern_invalid_address @ 0x0000000000000000
if made error pointer arithmetic, you'll end similar:
exception type: exc_bad_access (sigsegv) exception codes: kern_invalid_address @ 0x00007fff50399000
but there lots of these exception codes! example, here's 1 encountered , have no clue means (the address points big memory-mapped file):
exception type: exc_bad_access (sigbus) exception codes: 0x000000000000000a, 0x0000000137676004
all found crash reports this technote, no detailed reference how interpret exception codes.
a list of exception codes can found in xnu source. 0x000000000000000a kern_mem0ry_error:
#define kern_memory_error 10 /* during page fault, memory object indicated * data not returned. failure * may temporary; future attempts access * same data may succeed, defined memory * object. */