🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1881

dynamic arrays with insufficient space cause core dump

#1881
From: Richard Stallman
Date: Sat, 08 Oct 1988 06:36
11 lines
1041 bytes
This problem is not limited to dynamic arrays or to GNU C.  The same
bad error message can result from allocating a fixed-size array, in
any C compiler.

You can make your program work by using the command `unlimit stack' first.

As for the general problem, I agree the current situation is not a
desirable one, but I don't see a solution in the compiler.  In the GNU
system I think I can see how to arrange for better error reporting for
stack overflow, which would distinguish it from stray references.
But this requires the compiler and library to cooperate.
Technical Details
Message-ID: <8810080636.AA00915@sugar-bombs.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!WHEATIES.AI.MIT.EDU!rms
References: <8810080619.AA04216@bayes.arc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!WHEATIES.AI.MIT.EDU!rms
From: rms@WHEATIES.AI.MIT.EDU (Richard Stallman)
Newsgroups: gnu.gcc.bug
Subject: dynamic arrays with insufficient space cause core dump
Message-ID: <8810080636.AA00915@sugar-bombs.ai.mit.edu>
Date: 8 Oct 88 06:36:41 GMT
References: <8810080619.AA04216@bayes.arc.nasa.gov>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 11