From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,dad94dbe0b39c038 X-Google-Attributes: gid111c93,public From: "Martin Sinot" Subject: Re: Fortran problems Date: 1999/11/16 Message-ID: <80reip$dna$1@news.telekabel.nl>#1/1 X-Deja-AN: 549226801 References: <382F59DB.5191A83D@aaoepp.aao.gov.au> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: news.telekabel.nl 942751129 14058 212.142.20.102 (16 Nov 1999 11:18:49 GMT) Organization: SPaSE BV X-MSMail-Priority: Normal NNTP-Posting-Date: 16 Nov 1999 11:18:49 GMT Newsgroups: comp.os.linux.alpha Andreas Schweitzer wrote in message news:slrn830ecl.b0k.andy@akers.physast.uga.edu... > On Mon, 15 Nov 1999 00:54:52 GMT, Katrina Sealey 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 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