* Re: Fortran problems
1999-11-15 5:00 Fortran problems Katrina Sealey
@ 1999-11-15 5:00 ` Tony Hammitt
1999-11-15 5:00 ` Andreas Schweitzer
1 sibling, 0 replies; 4+ messages in thread
From: Tony Hammitt @ 1999-11-15 5:00 UTC (permalink / raw)
Katrina Sealey wrote:
>
> I have this message posted elsewhere and have had one reply that
> suggested that you here in the alpha group might be able to help as you
> often talk of f77/g77 problems etc. I know I am running linux on a PC
> but this doesn't seem to be a factor of running linux on a PC.
>
> 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.
>
> An ldd of the executable gives " this is not dynamically linked". We
> have also installed several other f77 packages for linux and they don't
> work either. Having said all that we have 1 machine that can compile and
>
> run ALL the programs but we have no idea why. Also a program compiled on
> a machine that doesn't run the executeable will execute on the machine
> that works. Can anyone help? we need the other machines to run them too.
>
> Cheers,
> Katrina
Well, since you have one machine that seems to work, you have a lot
to go on. What I'd do is run 'rpm -q -a | sort' on all of the boxes
and look for differences. If the boxes are all the same, consider
force reinstalling the egcs and library packages where the code doesn't
work. Something may have gotten corrupted.
Anyone else have any clues?
Good luck,
Tony Hammitt
tony@hammitt.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fortran problems
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
1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schweitzer @ 1999-11-15 5:00 UTC (permalink / raw)
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 ;-)
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.
Cheers
Andreas
--
Andreas Schweitzer
http://dilbert.physast.uga.edu/~andy/
This post is brought to you by VIM, slrn and Linux.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Fortran problems
@ 1999-11-15 5:00 Katrina Sealey
1999-11-15 5:00 ` Tony Hammitt
1999-11-15 5:00 ` Andreas Schweitzer
0 siblings, 2 replies; 4+ messages in thread
From: Katrina Sealey @ 1999-11-15 5:00 UTC (permalink / raw)
I have this message posted elsewhere and have had one reply that
suggested that you here in the alpha group might be able to help as you
often talk of f77/g77 problems etc. I know I am running linux on a PC
but this doesn't seem to be a factor of running linux on a PC.
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.
An ldd of the executable gives " this is not dynamically linked". We
have also installed several other f77 packages for linux and they don't
work either. Having said all that we have 1 machine that can compile and
run ALL the programs but we have no idea why. Also a program compiled on
a machine that doesn't run the executeable will execute on the machine
that works. Can anyone help? we need the other machines to run them too.
Cheers,
Katrina
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fortran problems
1999-11-15 5:00 ` Andreas Schweitzer
@ 1999-11-16 5:00 ` Martin Sinot
0 siblings, 0 replies; 4+ messages in thread
From: Martin Sinot @ 1999-11-16 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-11-16 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox