This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g77 core dump on outputing namelist (egcs-971105), Redhat Linux 4.2Alpha
- To: egcs-bugs at cygnus dot com
- Subject: g77 core dump on outputing namelist (egcs-971105), Redhat Linux 4.2Alpha
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Sat, 22 Nov 97 14:49:24 +0100
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <199711140515.AAA14574@alphapc1.hep.anl.gov>
Hi,
We (the GNU Fortran bug list) got the following bug report;
unfortunately, without an Alpha at hand we cannot do much about it
(it probably is an error in libf2c.a like the one diagnosed by
Richard Henderson before):
> When the following code is compiled with the egcs version
> of g77 (971105) snapshot, under Alpha Linux (RedHat 4.2
> Linux 2.0.30 kernel), it crashes with a Segmentation
> fault(core dumped), apparently associated with the
> namelist write. The gnu fortran frontend is
> 0.5.22-19970929. The compilation uses GNU F77 and GNU C
> version egcs-2.90.16 971105 (gcc2-970802 experimental).
> The installed gcc on this machine is 2.7.2.1-2, the
> installed libc is glibc 0.961212-5. ld is version 2.7
> (with BFD 2.7.0.2). ldd version 1.99. Toon Moene
> suggested I send this to you.
namelist/junk/a,b,c
a=1.234
b=5.678
c=-123.456
write(10,junk)
stop
end
The right output (which I get on my m68k-next-nextstep3 system,
using g77-0.5.21 + gcc-2.7.2.3) is:
&JUNK
A = 1.233999968,
B = 5.677999973,
C = -123.456001282/
in file `fort.10'
TIA,
Toon.