Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/regress/lib/libc/siginfo/sigfpe



christos%zoulas.com@localhost said:
> It siglongjmps out of the signal handler which is illegal

sure?

> http://opengroup.org/onlinepubs/007908799/xsh/siglongjmp.html

This only says that _nested_ signal handlers cause
undefined results.

> Do we advance to the next instruction so returning from a signal handler
> can proceed?

This should certainly happen for asynchonous signals.
For synchronous ones, it doesn't make much sense.

There is a changelog entry for except.c which says:
-as Klaus confirmed, we cannot rely on the SIGFPE handler to return to
 the next instruction, so jongjmp() back

I'd believe that, just because I can't think of any
useful way to continue after a hard FP error (or
integer division by zero, or ILLINST ftm).

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index