MetallicPriest
MetallicPriest

Reputation: 30815

What is a "write to read-only page" fault called?

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

Answers (6)

Abyx
Abyx

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

onemach
onemach

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

sarnold
sarnold

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

favoretti
favoretti

Reputation: 30197

It's called segmentation fault, in linux SIGSEGV, or signal 11.

Upvotes: 0

Pablo Santa Cruz
Pablo Santa Cruz

Reputation: 181420

In some architectures, it will be a SEGMENTATION FAULT.

Upvotes: 0

Macmade
Macmade

Reputation: 54029

This will usually raise a segmentation fault (SIGSEGV).

Upvotes: 3

Related Questions