AW: [Mono-list] Segmentation fault / StackOverflowExcept

Paolo Molaro
Wed, 16 Jul 2003 15:11:12 +0200

On 07/15/03 Varga Zoltan wrote:
>    What about write protecting the last few frames of the
> stack, and
> catching the protection fault ? Can that work ?

The operating system does that already for us: the issue is using
sigaltstack and detecting when the segmentation fault is actually a
stack overflow (it can be done with some heuristics). Interested people
could look at the relative implementation in libsigsegv (on
sourceforge), but the code needs to be rewritten as LGPL.


-----------------------------------------------------------------                                     debian/rules                             Monkeys do it better