Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "Martin Sinot" <martin@spase.nl>
Subject: Re: Fortran problems
Date: 1999/11/16	[thread overview]
Message-ID: <80reip$dna$1@news.telekabel.nl> (raw)
In-Reply-To: slrn830ecl.b0k.andy@akers.physast.uga.edu


Andreas Schweitzer <andy@physast.uga.edu> wrote in message
news:slrn830ecl.b0k.andy@akers.physast.uga.edu...
> On Mon, 15 Nov 1999 00:54:52 GMT, Katrina Sealey <kms@aaoepp.aao.gov.au>
wrote:
> >
> >We have installed Red Hat 6.0 and 6.1 numerous times on numerous
> >machines and 3/4 of the fortran programs (that compile nicely and run on
> >
> >a sun) we have compile but then dump with a segmentation fault when run.
>
> That may sound really dumb, but do the machines that won't run have
> enough memory ?
> When Linux does not have enough memory it stops with segmentation fault -
not
> very instructive ;-)
When SunOS or Solaris don't have enough memory, they too stop with a
segmentation fault. The exception is caused by referencing an unallocated
address. And the cause of this can be an OS not being able to allocate more
memory, thus causing null pointer dereferences, but it can also be a
misbehaving program trying to dereference an invalid pointer. Which can by
accident point to a valid location on a different architecture.

> At least I ran into this problem and it took me a while to figure
> out what was wrong.
> Do a size <executable> to find out how much it needs.

That will only tell how much static memory the program needs. It does not
account for dynamically allocated memory.

Martin Sinot
martin@spase.nl





      reply	other threads:[~1999-11-16  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-15  5:00 Fortran problems Katrina Sealey
1999-11-15  5:00 ` Tony Hammitt
1999-11-15  5:00 ` Andreas Schweitzer
1999-11-16  5:00   ` Martin Sinot [this message]
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