------- Comment #92 from jv244 at cam dot ac dot uk  2007-04-24 14:31 -------
(In reply to comment #91)

> /QS/regtest-gpw-1/NO2_lsd.inp.out
> I'll see if I can reduce the number of optimization options.

the above testcase also fails at a plain '-O2' so I suspect it won't happen
only on opteron. Valgrind reports:

==5839==
==5839== Invalid read of size 4
==5839==    at 0x433696: __ai_overlap_new_MOD_overlap (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9BB779:
__qs_core_hamiltonian_MOD_build_core_hamiltonian_matrix (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9E8834: __qs_energy_MOD_qs_energies (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9FFE33: __qs_force_MOD_qs_forces (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x606294: __force_env_methods_MOD_force_env_calc_energy_force
(in /scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x4B8788: __cp2k_runs_MOD_cp2k_run (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x4B97BB: __cp2k_runs_MOD_run_input (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0xD3658A: MAIN__ (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0xE6291B: main (fmain.c:22)
==5839==  Address 0x1C04DD48 is not stack'd, malloc'd or (recently) free'd
==5839==
==5839== Process terminating with default action of signal 11 (SIGSEGV)
==5839==  Access not within mapped region at address 0x1C04DD48
==5839==    at 0x433696: __ai_overlap_new_MOD_overlap (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9BB779:
__qs_core_hamiltonian_MOD_build_core_hamiltonian_matrix (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9E8834: __qs_energy_MOD_qs_energies (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x9FFE33: __qs_force_MOD_qs_forces (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x606294: __force_env_methods_MOD_force_env_calc_energy_force
(in /scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x4B8788: __cp2k_runs_MOD_cp2k_run (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0x4B97BB: __cp2k_runs_MOD_run_input (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k.sopt)
==5839==    by 0xD3658A: MAIN__ (in
/scratch/vondele/clean/cp2k/exe/Linux-x86-64-gfortran/cp2k

but I'm not sure that this is really indicative of the location that gets
miscompiled.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975

Reply via email to