Patent ID: 7765526
Filing Date: 2010-07-27
Classification: G06F

Abstract:
1. A method, comprising: requesting, by a debugger, an operating system to monitor a memory address, wherein the debugger sets a protection for a page that includes the memory address, and wherein the operating system generates a signal in response to an operation that affects the memory address; receiving, by a runtime application from the operating system, the signal generated by the operating system; determining, by the runtime application, whether to forward the signal received from the operating system to the debugger; forwarding, by the runtime application, the signal received from the operating system to the debugger, in response to determining by the runtime application that the signal could have been caused by a violation of the protection for the page set by the debugger; and processing, by the debugger, the signal, in response to the signal being forwarded by the runtime application to the debugger, wherein the method further comprises: setting, by the debugger, a first type of protection on a page that includes the memory address; setting, by the runtime application, a second type of protection on the page that includes the memory address, wherein the runtime application installs a signal handler to receive segmentation violation signals from the operating system; determining, whether the first type of protection set by the debugger or the second type of protection set by the runtime application is a more restrictive protection; and setting, in an operating system page permission table, the more restrictive protection on the page that includes the memory address.