Opened 6 years ago

Closed 6 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:


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 Changed 6 years ago by dmik

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 Changed 6 years ago by dmik

  • Milestone changed from next to 0.8.4

comment:3 Changed 6 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r21980.

Note: See TracTickets for help on using tickets.