Say a 32-bit value is written to a memory cell that occupies 2 pages. For the sake of argument, suppose that 2 bytes end on the first page and 2 more in the second. The first page is writable, but the second page is not displayed. Executing the command as a whole will lead to a page crash and its termination.
My question is: will the page crash before or after the first 2 bytes of the value are written to memory? In other words, can a code working after a failure (for example, an error handler) be able to observe a partial write?
Suppose the X86 environment, as I suspect that the behavior may be architecture, or perhaps even model-specific.
alexp source share