[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#297112: g77 compiles program that segfaults before executing the Fortran code



Package: g77
Version: 2:2.95.4-14
Severity: normal

After making what I thought were minor changes to a working F77 program,
which g77 had been compiling correctly, I find the current version dies
with a segfault before executing any of the Fortran stuff.  The program
was compiled with the  -fbounds-check  option, which produced no output
(though it has in the past when I had indexing errors).

I tried compiling with -g -ggdb and ran the debugger:

	(gdb) bt
	#0  0x0805cf46 in f_setarg ()
	#1  0x0805cab6 in main ()
	#2  0x4005314f in __libc_start_main () from /lib/libc.so.6

Looks as if the problem is in the g77 startup library somewhere.  I
checked the libc md5sum against a machine on which the *identical*
source code compiles and runs fine with g77; the only difference is that
the machine that works is an AMD Athlon, and the one that segfaults is a
Pentium III.  Both boxes run Debian stable.

Please reply to  aty@mintaka.sdsu.edu  rather than this machine.

		-- A. T. Young




-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux hilbert 2.2.20 #1 Thu Feb 26 18:12:28 UTC 2004 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages g77 depends on:
ii  cpp                    2:2.95.4-14       The GNU C preprocessor.
ii  g77-2.95               1:2.95.4-11woody1 The GNU Fortran 77 compiler.
ii  gcc-2.95               1:2.95.4-11woody1 The GNU C compiler.




Reply to: