[fpc-devel] Signal handlers
jonas.maebe at elis.ugent.be
Wed Jul 18 23:13:52 CEST 2007
On 18 Jul 2007, at 22:17, Micha Nelissen wrote:
> Jonas Maebe wrote:
>> Since there are only 3 parameters, it should be possible to do
>> this even
>> on i386.
> Implemented and committed; but thinking about it, does it really
> ? It's still being executed more or less asynchronous to the
> application: it could be in the middle of heap manager operation or
> throwing exception etc... which exactly was the problem with the
> handler, and isn't really solved.
It indeed only solves the problem that many functions (including some
syscalls, or does this only apply to libc?) cannot be called safely
during the execution of a signal handler.
Crashes due to errors in the run time system itself (or corruption of
the rtl structures by external code) can probably never be handled
properly using exceptions, since exceptions are also part of this
same run time system. Even if you use dwarf exception frame info, you
may still need some RTL support during exception handling.
More information about the fpc-devel