The embodiment of the invention discloses a memory
error processing method and device, a terminal and a storage medium, and belongs to the field of memorys.The memory
error processing method comprises the steps that when a memory breaks down, whether a read-write action occurs when a CPU executes a context or not is judged, when the context is executed for the CPU, an interrupt context is obtained, and whether the memory breaks down or not is in a writing stage or not is judged through the interrupt context; in the writing stage, obtaining a
page table item, and judging whether file mapping is performed or not according to the
page table item; when file mapping is carried out, determining a physical
page frame corresponding to a memory fault, determining all
page table entries related to the physical
page frame through
reverse mapping, carrying out atomic deletion on the physical
page frame entries in the page table entries, and deleting a physical memory page corresponding to the virtual address from a file
page cache; distributing an idle physical memory page, adding a file
page cache, and initializing a read operation; and associating the
virtual memory with an idle physical memory page of the file
page cache through a page table item.