From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,a191e211a3e9da1d,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-06-29 09:09:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!sjc-read.news.verio.net.POSTED!not-for-mail From: "Patrick Paul" Newsgroups: comp.os.linux.alpha Subject: 13 line c program segfaults on alpha/linux, but not intel. why? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <2M1%6.147007$Bz6.91285@sjc-read.news.verio.net> Date: Fri, 29 Jun 2001 16:10:38 GMT NNTP-Posting-Host: 64.80.227.125 X-Complaints-To: abuse@verio.net X-Trace: sjc-read.news.verio.net 993831038 64.80.227.125 (Fri, 29 Jun 2001 16:10:38 GMT) NNTP-Posting-Date: Fri, 29 Jun 2001 16:10:38 GMT Organization: Verio Xref: archiver1.google.com comp.os.linux.alpha:3205 a little help from those programmer types out there. i compared /proc/sys/kernel entries between intel and alpha machines, and that wasn't the problem. what happens is that i compile this proggy #include #define SIZE 1047977 main () { double vector_x [SIZE]; int x; for ( x = 0; x < SIZE; x++ ) vector_x [x] = (double) x; printf ("\n x [%d] = %.4f\n\n", SIZE - 1, vector_x [SIZE - 1] ); } which compiles fine but when i run it on alpha, it coredumps and segfaults. on intel, it works fine. any ideas? tia -- Patrick Paul Microway.com patrick@no_microway_spam.com