Reputation: 30815
OK, when a program tries to access a page which is not there in the physical memory, we say a page fault has occurred. But say, program tries to write to a page which is read-only and is there in the physical memory. What is that fault called?
Upvotes: 1
Views: 1974
Reputation: 12928
According to Intel terminology, it's memory access violation
, aka #AV
exception.
(I know, there is [linux] tag, but also there is [x86] tag.)
Upvotes: 4
Reputation: 4325
segmentation fault
But in the circumstance of COW(copy on write), it is just an exception which is to be handled by the kernel.
see http://en.wikipedia.org/wiki/Copy-on-write for details.
Upvotes: 3
Reputation: 104080
It depends upon the architecture, but SIGSEGV
or SIGBUS
are common signals sent when a process violates the permissions on its memory mappings.
Upvotes: 2
Reputation: 30197
It's called segmentation fault, in linux SIGSEGV, or signal 11.
Upvotes: 0
Reputation: 181420
In some architectures, it will be a SEGMENTATION FAULT.
Upvotes: 0