Subject: Re: cc/sparc miscompile / lack of warnings?
To: Al Slater <aslater@larissa.bri.hp.com>
From: Frank van der Linden <frank@wins.uva.nl>
List: port-sparc
Date: 04/21/1998 10:19:34
On Tue, Apr 21, 1998 at 08:54:59AM +0100, Al Slater wrote:
> Hi,
> 
> the following:
> 
> int main(argc, argv)
> int argc;
> char *argv[];
> {
>   unsigned char c[524288];
>   if (argc != 3)
>     exit(1);
>   return(0);
> }
> 
> keels over with a segmentation fault [1].

The default stacksize limit on NetBSD/sparc is 512k, so this is
expected behavior. Unlimit the stacksize in the shell before
you try this  and it should run fine.

- Frank