At Mon, 20 Oct 2003 23:07:40 +1000,Ken Foskey wrote:
> If anyone is on a very fresh version of K2.6 with extra patches can you
> please run this code and see if it crashes.  It fails on all K2.6 up to
> Test6 release.  I would be interested to hear of any success.
> 
> Here is what I get:
> Getting from NULL
> Setting Jump
> Running
> Signal 11 caught
> After jump
> Setting to NULL
> Setting Jump
> Running
> Segmentation fault
> 
> There should be no segfault and another signal caught.

A C program is "undefined" after returning from a SIGSEGV handler.  In
particular that means its allowed to die in weird ways.

(If this was intended for real use, you definately want to rethink
your approach. "Testing" addresses for segfaults is always going to
get you into trouble)

-- 
 - Gus

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to