Https://en.wikipedia.org/wiki/General_protection_fault
In memory errors, the faulting program accesses memory, which it should not access. Examples include:
- Attempting to write to a read-only portion of memory
- Attempting to execute bytes in memory which is not designated as instructions
- Attempting to read as data bytes in memory which is designated as instructions
- Other miscellaneous conflicts between the designation of a part of memory and its use
However, many modern operating systems implement their memory access-control schemes via paging instead of segmentation, s o It is often, the case, invalid memory references in operating systems such as Windows be reported via page faults in Stead of general protection faults. Operating systems typically provide an abstraction layer (such as exception handling or signals) that hides whatever inter NAL processor mechanism is used to raise a memory access error from a program, for the purposes of providing a standard I Nterface for handling many different types of processor-generated error conditions.
A General Protection Fault (GPF) in the Intel x86 and AMD x86-64 types of computer microprocessor Archit Ectures, and other unrelated architectures, was a fault (a type of interrupt) that can encompass several cases in which pro Tection mechanisms within the processor architecture is violated by any of the programs that is running, either the Kern El or a user program. The mechanism is first described in section 9.8.13 in the Intel 80386 Programmer ' s Reference manual from 1986. A General Protection Fault are implemented as an interrupt (vector number of decimal) in both the x86 and the AMD64 Archi Tectures.
Access violation at address general Protection fault