This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]