This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17696] [cygwin] builtin alloca SIGSEGV with size too large
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2004 16:52:35 -0000
- Subject: [Bug middle-end/17696] [cygwin] builtin alloca SIGSEGV with size too large
- References: <20040927163109.17696.gcc@axel-naumann.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-27 16:52 -------
The man page of alloca says:
RETURN VALUE
The alloca function returns a pointer to the beginning of
the allocated space. If the allocation causes stack over
flow, program behaviour is undefined.
I guess you have to live with the fact that allocating large chunks of
memory on the stack isn't such a great idea.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17696