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 overf

Re: c-stack and Irix - gnulib

2008-09-23 Thread Eric Blake
Eric Blake byu.net> writes: > Here's the minimal patch needed to CVS libsigsegv to expose the bug, as > well as work around it for Irix 5.3. I still need to port something like > this for c-stack in the non-libsigsegv case. Now that libsigsegv is cleaned up, here's what I'm applying to gnulib.

Re: c-stack and Irix - libsigsegv

2008-09-23 Thread Eric Blake
Bruno Haible 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 - 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
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 poin

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 =

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 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 ro

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-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 non-compl

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
On Fri, Aug 15, 2008 at 10:15:52PM -0600, Eric Blake wrote: > According to Tom G. Christensen on 8/14/2008 9:03 AM: > > On Wed, Aug 13, 2008 at 08:14:43PM -0600, Eric Blake wrote: > >> According to Tom G. Christensen on 8/13/2008 2:45 PM: > >> it looks like c-stack will work with libsigsegv, once w