> I've been working on a program that needs to flip stacks around, and I'm
> finding that sigaltstack() doesn't seem to cause any actual behavioral change
> to happen, at least not with Linux/i386 2.2.0 and glibc 2.1.
>
> Take this test program:
>
[...]
> stack_t ss, oss;
>
> if (!(stack = malloc(8192)))
> exit(1);
>
> memset(&ss, 0, sizeof(stack_t));
> ss.ss_sp = stack;
> ss.ss_size = 8192;
>
> signal(SIGUSR1, sighandler);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Change it to a sigaction that sets SA_ONSTACK
-Andi
-- This is like TV. I don't like TV.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/