Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcsmb.UUCP Path: utzoo!linus!decvax!decwrl!greipa!pesnta!hplabs!sdcrdcf!sdcsmb!pmontgom From: pmontgom@sdcsmb.UUCP (Peter Montgomery) Newsgroups: net.bugs.4bsd Subject: Large sh input dumps core Message-ID: <112@sdcsmb.UUCP> Date: Wed, 23-Oct-85 22:14:01 EST Article-I.D.: sdcsmb.112 Posted: Wed Oct 23 22:14:01 1985 Date-Received: Sun, 27-Oct-85 06:31:54 EST Reply-To: pmontgom@sdcsmb.UUCP (Peter Montgomery) Organization: System Development Corp. R+D, Santa Monica Lines: 28 /*** * This program generates a sequence of lines reading * "value=0" through "value=20000". Run the generated * output through "sh" using the ". filename" command. * On a VAX 11/750, its memory space (shown by "ps ux") gradually * increases to about 850K before getting "Illegal Instruction" * and a core dump. Analysis of the core dump via "strings core" * shows "sh" aborted near "value=11841". * On a SUN 170 Workstation, also running 4.2bsd, sh used * 1150K before aborting near "value=18683". * * Problem submitted by Peter Montgomery of System Development * Corporation in October, 1985. ***/ main() { int line; for (line=0; line<=20000; line++) printf("value=%d\n", line); } -- Peter Montgomery {aero,allegra,bmcg,burdvax,hplabs, ihnp4,psivax,randvax,sdcsvax,trwrb}!sdcrdcf!sdcsmb!pmontgom Don't blame me for the crowded freeways - I don't drive.