With obvious similarity with Bug #3971... Even after upgrading all the egcs-1.1.2-17 packages with contained Jeff Law's patches... gprof will core dump on ANY g77 compiled FORTRAN. Try: cat " END" > tmp.f g77 -pg tmp.f gprof Segmentation fault (core dumped) After reading Bug #3971 I'm assuming it's an egcs problem, but it could be in gprof itself (binutils).
One needs to compile gprof (binutils) with egcs 1.1.2-17. Or in other words, it doesn't matter (for this bug) what your program is compiled with, just what gprof was compiled with. As far as I know, we haven't made a fixed binutils package yet.
Agreed, once I re-built the binutils package using the new egcs; gprof started worked fine. So probably mark this as a duplicate of Bug #3971 and close it. But, you really should release a new binary of binutils.
Please try binutils-2.9.1.0.23-2 which should be in the next Rawhide release.
Correction, the fixed binutils package is binutils-2.9.1.0.23-5.