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


Hi andrew,
You just overflowed your stack.  Increase the stack size for the program
by using limit/ulimit or use dynamic allocated memory.
Thanks for the quick reply. By changing the size of the stack the
error goes away.

Is this one of the things which we come to know by experience?
Or
Is there a way to find it out from the core/code generated?
This was a simple program with just a few lines. I'm wondering how
difficult it would be find this sort of errors in a large program.

Regards,
Gowri Kumar
ps : Due apologies, if it's off topic here on this mailing list.


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