[PATCH] ARM and Thumb Segmented Stacks

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Feb 26 17:26:44 PST 2014


On 26 February 2014 19:17, Alex Crichton <alex at crichton.co> wrote:
> We can in theory use guard pages, but our ideal goal is to trigger
> task unwinding for us (essentially a C++ exception) instead of killing
> the entire process. This involves not leaking arguments and not
> triggering a fault at an arbitrary point in a function, so it's sadly
> a little more involved (or so we think).
>
> We have some ideas about how to implement a scheme for stack safety
> using guard pages, but it involves some questionable changes to LLVM
> and some questionable signal handling, none of which would probably
> work on windows, so we haven't quite decided to pursue it just yet.

Ah, ok. I was just going to say that you could install a segmentation
fault handler :-)

Cheers,
Rafael



More information about the llvm-commits mailing list