From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,a191e211a3e9da1d X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-06-29 11:01:01 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: tez@pierrot.co.uk (Terrance Richard Boyes) Newsgroups: comp.os.linux.alpha Subject: Re: 13 line c program segfaults on alpha/linux, but not intel. why? Date: Fri, 29 Jun 2001 18:59:54 +0100 (BST) Organization: Pierrot Computers Ltd Message-ID: <20010629.175954.9E9801DE.LNaa@pierrot.co.uk> References: <2M1%6.147007$Bz6.91285@sjc-read.news.verio.net> X-Trace: mail2news.demon.co.uk 993837614 mail2news:4252 mail2news mail2news.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!anchor-post-33.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk X-Lan-Trace: news.pierrot.lan 20010629.175954 news:LNaa IDENT tez@pierrot.demon.co.uk User-Agent: tin/1.4.3-20000502 ("Marian") (AMIGA) X-NaMLServ: $VER: v0.9b Xref: archiver1.google.com comp.os.linux.alpha:3209 Patrick Paul wrote: > 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 I had a play with the SIZE and the limiting value (on my normal setup) seems to be 1047863. Which suggests it's running out of stack (8MB). Either up the stack, or allocate memory for vector_x separately. [snip] *Tez* who would like to point out that the sig was completely random :) -- Team AMIGA There's a bug somewhere in your code.