On Mon, 7 July 2003 21:33:45 +1000, Paul Mackerras wrote:
>
> It just occurred to me that the simplest and best fix for the specific
> problem you mention is for you to set the SA_ONESHOT flag when you
> install the SIGSEGV handler. That way, if you get another
> segmentation violation while you are already in the SIGSEGV handler,
> it will just dump core straight away.
That makes sense. One would still have to re-enable the signal
handler inside the signal handler, but if htat is the last code before
function return, we should be safe.
Great idea, thanks!
Jörn
-- A defeated army first battles and then seeks victory. -- Sun Tzu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:29 EST