Opened 13 years ago

Closed 13 years ago

#76 closed task (fixed)

Support guard page exceptions

Reported by: dmik Owned by:
Priority: major Milestone: 0.8.4
Component: odin Version: 0.8.x
Severity: medium Keywords:
Cc:

Description

Currently, Odin doesn't deliver EXCEPTION_GUARD_PAGE_VIOLATION exceptions when accessing memory pages marked by VirtualProtect() as PAGE_GUARD to the application. This needs to be fixed. In particular, it is used in OpenJDK to implement the stack yellow and red zones (to have the better control on "out of stack" situations).

Change History (3)

comment:1 by dmik, 13 years ago

See OpenJDK ticket 160 that contains a lot of information about the problem.

Basically, we should do two things:

  1. Make sure EXCEPTION_GUARD_PAGE_VIOLATION is initiated in the Odin/Win32 application when a PAGE_GUARD page is accessed.
  2. Make sure that in case if the PAGE_GUARD page is part of the thread's stack, EXCEPTION_STACK_OVERFLOW is initiated instead (as this is what Windows does).

comment:2 by dmik, 13 years ago

Milestone: next0.8.4

comment:3 by dmik, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in r21980.

Note: See TracTickets for help on using tickets.