View Single Post
Old 07-25-2002, 08:47 AM   #9 (permalink)
BoA
Senior Member
Join Date: Nov 2001
Location: Issaquah, WA
Posts: 1,621
Credits: 493
Default Re: Kern protection failure

Quote:
TheAppleDoctor wrote:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000009
This is telling you a who, what and where for a dangling pointer or memory corruption.

The error is the result of the processor executing an instruction that requested a read from a chunk of memory that was protected from user mode access. The value of the at, being such a low address in memory indicates (to me) that "something bad" happened like a memory corruption resulting in the instruction pointer being set to an address in a data segment (typically, data addresses start on the low end and instruction addresses start on the high end of memory.

The other two numbers are merely codes from the processor/os indicating the nature of the error.

There are a million ways to cause this most of which fit into three basic classes.
  • An unverified pointer being used to access memory, or
  • A corruption of memory through a bad pointer resulting in "random data" being used as a pointer reference, or
  • A bad instruction pointer changing the processor to load a bogus instruction.
__________________
Bo...
<span style=\'color:navy\'><span style=\'font-family:courier\'>SELECT * FROM users WHERE clue &gt; 0;</span>
<span style=\'color:green\'>0 Rows Returned.</span></span>
BoA is offline   Reply With Quote