This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32520] C/C++ programs segfault at runtime if arrays larger than 8MB are declared.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2007 07:28:28 -0000
- Subject: [Bug c/32520] C/C++ programs segfault at runtime if arrays larger than 8MB are declared.
- References: <bug-32520-14759@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pluto at agmk dot net 2007-06-27 07:28 -------
the 8MB array overflows stack and gcc has nothing to do here
because stack size is controlled by operating system.
use ulimit -s [stack size in kB] to workaround this problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32520