Article View: gnu.gdb.bug
Article #315Remarks on BROKEN_LARGE_ALLOCA
From: chase
Date: Tue, 14 Nov 1989 22:42
Date: Tue, 14 Nov 1989 22:42
21 lines
1376 bytes
1376 bytes
Comments in "m-sun3os4.h" say:
/* There is a bug which can cause alloca to fail to allocate large
areas of memory one time in every 4096 (we think). Hard to
reproduce so it will be hard to detect when this bug is fixed. */
#define BROKEN_LARGE_ALLOCA
It is certainly the case that ALLOCA is "broken" when a request larger
than the stack limit is made. This is not a problem with the current
version of gdb (3.4), but it was 100% reproducible under an older
version (3.2). The workaround here is easy enough if the user knows
what the problem is, but the only diagnostic provided is "Segmentation
fault" (instead of, say, "please increase your stack limit and run gdb
again", or (better) automatically choosing xmalloc for alloca requests
that cannot be satisfied).
Anyhow, I think the comment does not describe what is really going on,
and indicates an intention to "break" gdb (for my purposes) in the
future.
David
Technical Details
Message-ID:
<48727@ricerca.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!apple!oliveb!orc!orc.olivetti.com!chaseShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!apple!oliveb!orc!orc.olivetti.com!chase From: chase@orc.olivetti.com Newsgroups: gnu.gdb.bug Subject: Remarks on BROKEN_LARGE_ALLOCA Message-ID: <48727@ricerca.UUCP> Date: 14 Nov 89 22:42:10 GMT Sender: news@orc.Olivetti.Com Reply-To: chase@orc.olivetti.com () Distribution: gnu Organization: Olivetti Research Center, Menlo Park, CA Lines: 21