bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-stack and Irix - libsigsegv


From: Bruno Haible
Subject: Re: c-stack and Irix - libsigsegv
Date: Mon, 22 Sep 2008 00:01:23 +0200
User-agent: KMail/1.5.4

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 to a complete object type.
> 
>       ss.ss_sp = extra_stack + extra_stack_size - sizeof (void *);
>                  ^

Oops, my mistake. What's the result with this additional modification?

--- src/handler-unix.c  21 Sep 2008 13:41:28 -0000      1.9
+++ src/handler-unix.c  21 Sep 2008 21:55:17 -0000
@@ -487,7 +487,7 @@
   {
     stack_t ss;
 #if SIGALTSTACK_SS_REVERSED
-    ss.ss_sp = extra_stack + extra_stack_size - sizeof (void *);
+    ss.ss_sp = (char *) extra_stack + extra_stack_size - sizeof (void *);
     ss.ss_size = extra_stack_size - sizeof (void *);
 #else
     ss.ss_sp = extra_stack;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]