Turning a SIGSEGV into a regular function call under Linux, allowing throw

Don Clugston dac at nospam.com
Wed Mar 14 13:45:49 PDT 2012


On 14/03/12 21:31, Steven Schveighoffer wrote:
> On Wed, 14 Mar 2012 16:08:29 -0400, Don Clugston <dac at nospam.com> wrote:
>
>> Now, your user space handler will cause another segfault when it does
>> the mov [ESP], 0. I think that gives you an infinite loop.
>
> SEGFAULT inside a SEGV signal handler aborts the program (no way to turn
> this off IIRC).
>
> -Steve

But you're not inside the signal handler when it happens. You returned.



More information about the Digitalmars-d mailing list