🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by chase Tue, 14 Nov 1989 22:42
Remarks on BROKEN_LARGE_ALLOCA
#315
Author: chase
Date: Tue, 14 Nov 1989 22:42
21 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads