This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A simple program with a large array segfaults
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gkumar007 at gmail dot com (Gowri Kumar CH)
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 Jan 2007 07:18:50 -0500 (EST)
- Subject: Re: A simple program with a large array segfaults
>
> Greetings,
> I'm running gcc on the latest Ubuntu(Edgy) and I get segfault with the
> following program:
>
> <snip>
> </snip>
You just overflowed your stack. Increase the stack size for the program
by using limit/ulimit or use dynamic allocated memory.
This question is more appropriate for gcc-help@ rather than gcc@.
Thanks,
Andrew Pinski