Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!rutgers!netnews.upenn.edu!eecae!cps3xx!rang From: rang@cpsin3.cps.msu.edu (Anton Rang) Newsgroups: gnu.gcc.bug Subject: Re: Bug with large local variables. Message-ID: <2717@cps3xx.UUCP> Date: 25 Apr 89 06:03:48 GMT References: Sender: usenet@cps3xx.UUCP Reply-To: rang@cpswh.cps.msu.edu (Anton Rang) Distribution: gnu Organization: Michigan State University, Computer Science Dept. Lines: 19 In-reply-to: JDEIFIK@isi.edu's message of 25 Apr 89 01:31:04 GMT In article JDEIFIK@isi.edu (Jeff Deifik) writes: When I compile the following program with gcc, and run it it, I get Segmentation fault (core dumped) [ ... ] int a[250000L]; printf("Hello World\n"); [ ... ] What is your stack limit set to? This would allocate 1 MB of stack space; at least on our system, the default stack limit is 512KB. (Use the csh 'limit' command to check it out.) +---------------------------+------------------------+---------------------+ | Anton Rang (grad student) | "VMS Forever!" | rec.music.newage is | | Michigan State University | rang@cpswh.cps.msu.edu | under discussion... | +---------------------------+------------------------+---------------------+