Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: tez@pierrot.co.uk (Terrance Richard Boyes)
Subject: Re: 13 line c program segfaults on alpha/linux, but not intel.  why?
Date: Fri, 29 Jun 2001 18:59:54 +0100 (BST)	[thread overview]
Message-ID: <20010629.175954.9E9801DE.LNaa@pierrot.co.uk> (raw)
In-Reply-To: 2M1%6.147007$Bz6.91285@sjc-read.news.verio.net

Patrick Paul <patrick@no_microway_spam.com> 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 <stdio.h>
> #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 :)

-- 
<URL:http://www.pierrot.co.uk/faq/dtm.faq>                       Team AMIGA
There's a bug somewhere in your code.



  parent reply	other threads:[~2001-06-29 17:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-29 16:10 13 line c program segfaults on alpha/linux, but not intel. why? Patrick Paul
2001-06-29 16:51 ` Robert M. Riches Jr.
2001-06-29 17:21 ` Berkley Shands
2001-06-29 20:59   ` Art Haas
2001-06-29 17:36 ` Serguei Patchkovskii
2001-06-29 17:59 ` Terrance Richard Boyes [this message]
2001-06-29 19:25 ` Patrick Paul
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox