[Ecls-list] Need help with SIGFPE

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sun Oct 11 15:53:54 UTC 2009


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.

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

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

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list