🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49872

Re: Random errors building gcc

#49872
From: Richard Earnshaw
Date: Sat, 18 Dec 1993 12:29
37 lines
2413 bytes
In article <2etdvv$5kj@bigwheel.eng.sc.rolm.com>, dougv@bigwheel.eng.sc.rolm.com (D. Douglas Valkenaar) writes:
|> In article <CHot2q.MrL@herald.indirect.com>,
|> Jeffrey D. Wheelhouse <jeffw@indirect.com> wrote:
|> >
|> >1)  For some reason, my machine does not like compilers.  Now and then,
|> >for no apparent reason, a signal 11 will pop up in cc1 or ccom (or whatever
|> >it's called), depending on what stage I'm in.  If I compile again, maybe it 
|> >will do it again, maybe not, it is not regular.  Is my CPU getting too
|> >hot or something?  Or is that an old wives' tale?
|> >
|> 
|> I'm having the same problem on a SPARC 10 running SunOS 4.1.3.  I'll get a:
|> 
|> xgcc: Internal compiler error: program cc1 got fatal signal 11
|> 
|> but then if I run the make again, it will get past that point.  I don't only
|> get this while building the compiler, but even with the 2.5.0 version when
|> compiling other packages.
|> 
|> Very strange.
|> 
|> -- 
|> Douglas Valkenaar       ROLM - A Siemens Company       Santa Clara, CA
|> dougv@robadome.com                                      (408) 492-6119

Just occasionally I have seen this when a machine has run out of memory (and
swap space).  Does it tend to happen when compiling very large functions, or
when the machine is heavily loaded with other processes?

GCC regularly makes calls to alloca which causes allocation off the stack.  If
such a call "fails" then the size of the stack will have been increased beyond
the limits of memory available and an exception can then occur.  

GCC is a deterministic program, so it should always give the same results for
a given set of inputs.

Richard.
Technical Details
Message-ID: <CI8DDK.6C7@cs.utwente.nl>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!EU.net!sun4nl!utciva.civ.utwente.nl!infnews.cs.utwente.nl!rwe
References: <CHot2q.MrL@herald.indirect.com> <2etdvv$5kj@bigwheel.eng.sc.rolm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3f02134360e63e1c
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-18 07:32:28 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!EU.net!sun4nl!utciva.civ.utwente.nl!infnews.cs.utwente.nl!rwe
From: rwe@cs.utwente.nl (Richard Earnshaw)
Subject: Re: Random errors building gcc
Message-ID: <CI8DDK.6C7@cs.utwente.nl>
Sender: usenet@cs.utwente.nl
Nntp-Posting-Host: hangjas.pegasus.esprit.ec.org
Organization: Twente University, Dept. of Computer Science
References: <CHot2q.MrL@herald.indirect.com> <2etdvv$5kj@bigwheel.eng.sc.rolm.com>
Date: Sat, 18 Dec 1993 12:29:43 GMT
Lines: 37