Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!news.sprintlink.net!in2.uu.net!psinntp!psinntp!psinntp!psinntp!voder!nsc!news From: Dennis de Champeaux <ddc@berlioz.nsc.com> Subject: G++ process size < 2097000 ?? Content-Type: text/plain; charset=us-ascii Message-ID: <DE911D.FyJ@nsc.nsc.com> Sender: news@nsc.nsc.com (netnews maintenance) Nntp-Posting-Host: london.nsc.com Content-Transfer-Encoding: 7bit Organization: National Semiconductor Mime-Version: 1.0 Date: Fri, 1 Sep 1995 22:56:01 GMT X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3_U1 sun4c) X-Url: news:comp.unix.bsd.bsdi.misc/877-976#41elsv$nbc@access5.digex.net Lines: 16 I have a 486 with 16Mb memory and about 40Mb swap. The following 3 line G++ program crashes with the single messsage "Segmentation fault". Other experiments showed that buffers are NOT dumped. #include <string.h> #include <iostream.h> main(){ // bool test[2095000]; // OK bool test[2097000]; // Segmentation fault cout << "Hello World \n"; } Please send comments/ explanations to: ddc@netcom.com TX a lot, Dennis de Champeaux