[Ecls-list] Need help with SIGFPE

Gabriel Dos Reis gdr at integrable-solutions.net
Sun Oct 11 16:04:10 UTC 2009


On Sun, Oct 11, 2009 at 10:53 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> On Sun, Oct 11, 2009 at 3:24 PM, Gabriel Dos Reis
> <gdr at integrable-solutions.net> wrote:
>> Use sigsetjmp/siglongjmp if you want the system to save the signal
>> context and restore it later.  sigsetjmp takes an additional
>> parameter that controls that behaviour.  They are POSIX-2001
>> functions, so you may want to Autoconf-test them...
>
> The problem is that we did not need to save/restore the signal mask,
> for this was restored by the signal handler itself.
>
> However the appropriate code was only executed when ECL was built with
> threads, not in the default version. That is what was confusing me.

Aha!

>
> I have fixed this and uploaded a version that restores the signal mask
> also in the single-threaded version of ECL.

OK.

>
> When I find time, maybe I switch towards using sigsetjmp when available.
>

OK.

-- Gaby




More information about the ecl-devel mailing list