http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47878
--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-24 14:25:48 UTC --- There are a load of valgrind errors as well: ==11765== Invalid read of size 1 ==11765== at 0x4F003D6: eat_leading_spaces (read.c:499) ==11765== by 0x4F00885: _gfortrani_read_radix (read.c:661) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== Address 0x5c719a0 is 80 bytes inside a block of size 130 free'd ==11765== at 0x4C262D8: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==11765== by 0x4F0DC39: _gfortrani_fbuf_alloc (fbuf.c:125) ==11765== by 0x4F0DDF7: _gfortrani_fbuf_read (fbuf.c:229) ==11765== by 0x4F0DE99: _gfortrani_fbuf_getc_refill (fbuf.c:264) ==11765== by 0x4F0601F: _gfortrani_read_block_form (fbuf.h:78) ==11765== by 0x4F00855: _gfortrani_read_radix (read.c:656) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== ==11765== Invalid read of size 1 ==11765== at 0x4F00936: _gfortrani_read_radix (read.c:674) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== Address 0x5c719a0 is 80 bytes inside a block of size 130 free'd ==11765== at 0x4C262D8: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==11765== by 0x4F0DC39: _gfortrani_fbuf_alloc (fbuf.c:125) ==11765== by 0x4F0DDF7: _gfortrani_fbuf_read (fbuf.c:229) ==11765== by 0x4F0DE99: _gfortrani_fbuf_getc_refill (fbuf.c:264) ==11765== by 0x4F0601F: _gfortrani_read_block_form (fbuf.h:78) ==11765== by 0x4F00855: _gfortrani_read_radix (read.c:656) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== ==11765== Invalid read of size 1 ==11765== at 0x4F0042C: next_char (read.c:519) ==11765== by 0x4F009AD: _gfortrani_read_radix (read.c:695) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== Address 0x5c719a0 is 80 bytes inside a block of size 130 free'd ==11765== at 0x4C262D8: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==11765== by 0x4F0DC39: _gfortrani_fbuf_alloc (fbuf.c:125) ==11765== by 0x4F0DDF7: _gfortrani_fbuf_read (fbuf.c:229) ==11765== by 0x4F0DE99: _gfortrani_fbuf_getc_refill (fbuf.c:264) ==11765== by 0x4F0601F: _gfortrani_read_block_form (fbuf.h:78) ==11765== by 0x4F00855: _gfortrani_read_radix (read.c:656) ==11765== by 0x4F0464D: formatted_transfer (transfer.c:1158) ==11765== by 0x4F025E9: _gfortran_transfer_array (transfer.c:2033) ==11765== by 0x41229C: __imageroutines_MOD_readimage (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41950F: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== ==11765== Conditional jump or move depends on uninitialised value(s) ==11765== at 0x40DE2A: __fft2d_MOD_fft2db (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41172F: __gaborroutines_MOD_gabortrafo (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x419533: __graphroutines_MOD_generategraphs (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41A114: MAIN__ (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== by 0x41B47D: main (in /home/abuild/rguenther/spec2000/cpu2000/benchspec/CFP2000/187.facerec/run/00000002/facerec_base.none) ==11765== ar1: generated graph at 63 47, similarity = 0.80035 at1: generated graph at 48 53, similarity = 0.77174 At line 61 of file imageRoutines.f90 (unit = 21, file = 'bevin1.asc') Fortran runtime error: Bad value during integer read it looks like you are keeping pointers to buffers you re-allocate (and thus get relocated).