Method for debugging static memory corruption
AssigneeInternational Business Machines Corporation
InventorsJia He, Zhong Li
Life of this patent
Estimating the term…
Abstract
An indication is received. The indication is of an address in a first page in virtual memory used by an application with a static memory corruption. A loadable kernel module will monitor the address. Access to the first page in virtual memory is changed from read/write access to read only access. A second page in virtual memory is created with read/write access. Whether a page fault occurs on the first page in virtual memory during the execution of the application with the static memory corruption is determined.
Claims20
A method for debugging a static memory corruption, the method comprising the steps of:
- receiving, by one or more computer processors, an indication of an address in a first page in virtual memory used by an application with a static memory corruption, wherein the address in the first page in virtual memory will be monitored by a loadable kernel module;
- changing, by one or more computer processors, an access to the first page in virtual memory from read/write access to read only access;
- creating, by one or more computer processors, a second page in virtual memory with read/write access;
- and
- determining, by one or more computer processors, whether a page fault occurs on the first page in virtual memory during an execution of the application with the static memory corruption.
A computer program product for debugging a static memory corruption, the computer program product comprising:
- one or more computer readable storage media;
- and
- program instructions stored on the one or more computer readable storage media, the program instructions comprising:
- program instructions to receive an indication of an address in a first page in virtual memory used by an application with a static memory corruption, wherein the address in the first page in virtual memory will be monitored by a loadable kernel module;
- program instructions to change an access to the first page in virtual memory from read/write access to read only access;
- program instructions to create a second page in virtual memory with read/write access;
- and
- program instructions to determine whether a page fault occurs on the first page in virtual memory during an execution of the application with the static memory corruption.
A computer system for debugging a static memory corruption, the computer system comprising:
- one or more computer processors;
- one or more computer readable storage media;
- and
- program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising:
- program instructions to receive an indication of an address in a first page in virtual memory used by an application with a static memory corruption, wherein the address in the first page in virtual memory will be monitored by a loadable kernel module;
- program instructions to change an access to the first page in virtual memory from read/write access to read only access;
- program instructions to create a second page in virtual memory with read/write access;
- and
- program instructions to determine whether a page fault occurs on the first page in virtual memory during an execution of the application with the static memory corruption.
Dependencies are inferred from the claim text.