C.2 Stack Overflows
When a stack overflows, the system performs an
with an appropriate exit tag, ie.
These exits can be caught by wrapping a goal that is likely
to overflow the stacks into an appropriate
- for overflows of the global/trail stack
that holds all the program's data structures.
- for overflows of the local/control stack
that holds information related to the control flow.
In the debugger, you can locate the overflow by jumping to a LEAVE port
See chapter 19 for more details on memory usage.
..., block(big_goal(X), global_trail_overflow, react_to_overflow), ...