Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!think!ames!amdahl!cerebus!unisoft!lll-lcc!scowles From: scowles@lll-lcc.aRpA (Sid Cowles) Newsgroups: comp.unix.xenix Subject: load module errors induced by array sizes in c Message-ID: <995@lll-lcc.aRpA> Date: Wed, 22-Jul-87 13:15:48 EDT Article-I.D.: lll-lcc.995 Posted: Wed Jul 22 13:15:48 1987 Date-Received: Sat, 25-Jul-87 03:20:17 EDT Reply-To: esd!scowles@lll-lcc.UUCP (Sid Cowles) Distribution: world Organization: Lab Comp Ctr, Lawrence Laboratory, Livermore Ca Lines: 18 Keywords: sco xenix 2.1.0, cc, arrays Summary: improper array sizes cause seg violations i am running sco xenix 2.1.0 on an at-clone. referring to the code below, why does gigo1 run without errors and gigo2 produces 'Stack overflow Segmentation violation -- Core dumped'? i used 'cc -o file file.c' where 'file' is gigo1 or gigo2 to compile these. =========================================================== gigo1.c: main() { char f[31][127]; printf("hello\n"); } gigo2.c: main() { char f[32][128]; printf("hello\n"); } thanks, sid ================================================================ s cowles uucp: {seismo,ihnp4,gatech}!lll-lcc!esd!scowles arpa: esd!scowles@lll-lcc.arpa bitnet: esd!scowles%lll-lcc.arpa@wiscvm.bitnet