Re: c-stack and Irix - libsigsegv

2008-09-23 Thread Eric Blake
Bruno Haible bruno at clisp.org writes: Here's the minimal patch needed to CVS libsigsegv to expose the bug, as well as work around it for Irix 5.3. Nice work! I'm applying this only slightly modified version. - In the configuration test, keep room to both sides of the ss_sp value.

Re: c-stack and Irix - gnulib

2008-09-23 Thread Eric Blake
ad73682838ae0e66832aad97a8fbc5fb935130c6 Mon Sep 17 00:00:00 2001 From: Eric Blake [EMAIL PROTECTED] Date: Tue, 23 Sep 2008 08:47:26 -0600 Subject: [PATCH] c-stack: work around Irix sigaltstack bug * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check whether sigaltstack uses wrong end of stack_t (copied in part from

Re: c-stack and Irix - libsigsegv

2008-09-23 Thread Bruno Haible
Hi Eric, - In the configuration test, keep room to both sides of the ss_sp value. On IRIX, we don't want the test to crash. We want it to exit(1) reasonably. We need to do this consistently, then. The subsequent configure check (whether longjmp works from a stack overflow

Re: c-stack and Irix - libsigsegv

2008-09-22 Thread Tom G. Christensen
On Mon, Sep 22, 2008 at 12:01:23AM +0200, Bruno Haible wrote: Tom G. Christensen wrote: cc-3316 cc: ERROR File = handler-unix.c, Line = 490 The expression must be a pointer to a complete object type. ss.ss_sp = extra_stack + extra_stack_size - sizeof (void *);

Re: c-stack and Irix - libsigsegv

2008-09-21 Thread Bruno Haible
Hi Eric, Here's the minimal patch needed to CVS libsigsegv to expose the bug, as well as work around it for Irix 5.3. Nice work! I'm applying this only slightly modified version. - In the configuration test, keep room to both sides of the ss_sp value. On IRIX, we don't want the test to

Re: c-stack and Irix - libsigsegv

2008-09-21 Thread Tom G. Christensen
On Sun, Sep 21, 2008 at 04:03:54PM +0200, Bruno Haible wrote: Hi Eric, Here's the minimal patch needed to CVS libsigsegv to expose the bug, as well as work around it for Irix 5.3. Nice work! I'm applying this only slightly modified version. - In the configuration test, keep room to

Re: c-stack and Irix - libsigsegv

2008-09-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tom G. Christensen on 9/21/2008 2:30 PM: cc-3316 cc: ERROR File = handler-unix.c, Line = 490 The expression must be a pointer to a complete object type. ss.ss_sp = extra_stack + extra_stack_size - sizeof (void *);

Re: c-stack and Irix - libsigsegv

2008-09-21 Thread Peter Seebach
In message [EMAIL PROTECTED], Eric Blake writes: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Tom G. Christensen on 9/21/2008 2:30 PM: cc-3316 cc: ERROR File = handler-unix.c, Line = 490 The expression must be a pointer to a complete object type. ss.ss_sp = extra_stack

Re: c-stack and Irix - libsigsegv

2008-09-21 Thread Bruno Haible
Tom G. Christensen wrote: I grabbed this and tried to build it on Irix 5.3, 6.2 6.5(.30m). All 3 platforms report: checking for correct stack_t interpretation... no Even IRIX 6.5?! Thanks for the info. cc-3316 cc: ERROR File = handler-unix.c, Line = 490 The expression must be a pointer

Re: c-stack and Irix - libsigsegv

2008-09-20 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 9/16/2008 4:50 PM: I've finally figured out why c-stack is being finicky on Irix 5.3 [1]. POSIX requires that sigaltstack be given ss_sp pointing to the smallest address in the alternate stack. But Irix is

c-stack and Irix

2008-09-16 Thread Eric Blake
I've finally figured out why c-stack is being finicky on Irix 5.3 [1]. POSIX requires that sigaltstack be given ss_sp pointing to the smallest address in the alternate stack. But Irix is non-compliant, and treats ss_sp as the starting address of the stack (which, since it grows down, makes it

c-stack and Irix [Was Re: sa_sigaction]

2008-08-24 Thread Tom G. Christensen
still working on a patch that makes lib/signal.in.h add the #define for sa_sigaction if HAVE_SIGACTION !HAVE_STRUCT_SIGACTION_SA_SIGACTION. I'll post a snapshot for you to try once I get it completed. Now that you've fixed this I've run the tests from the latest gnulib c-stack module on Irix