[Bug fortran/90539] [10 Regression] 481.wrf slowdown by 25% on Intel Kaby with -Ofast -march=native starting with r271377

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 27 08:49:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90539

--- Comment #29 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #28)
> https://gcc.gnu.org/ml/fortran/2019-05/msg00173.html reports
> the same symptoms for netcdf-fortran-4.4.5, presumably due
> to the same issue.
> 
> I'll try to fix that one and then see if the SPEC failure disappears
> along with it.
> 
> Martin, one additional question: When you step up from the segfault
> in the executable, is an array constructor passed as an argument
> somewhere up the call chain?  This is what appears to cause the trouble
> int netcdf.

How can I investigate that? Backtrace:

#0  0x00000000008f706c in netcdf::nf90_put_var_1d_eightbytereal (ncid=7,
varid=23, values=..., start=<error reading variable: Location address is not
set.>, count=<error reading variable: Location address is not set.>, 
    stride=<error reading variable: Location address is not set.>, map=...) at
netcdf_expanded.f90:1471
#1  0x0000000000453a94 in pionfput_mod::put_var_1d_double (file=..., varid=23,
ival=...) at pionfput_mod.fppized.f90:1476
#2  0x0000000000453b06 in pionfput_mod::put_var_vdesc_1d_double (file=...,
vardesc=..., ival=...) at pionfput_mod.fppized.f90:2468
#3  0x00000000005be633 in cam_history::h_define (restart=4294949912, t=-17380)
at cam_history.fppized.f90:3822
#4  cam_history::wshist (rgnht_in=<error reading variable: Cannot access memory
at address 0x0>) at cam_history.fppized.f90:4461
#5  0x00000000007811dc in cam_comp::cam_run4 (cam_out=..., cam_in=...,
rstwr=.FALSE., nlend=.FALSE., yr_spec=0, mon_spec=1, day_spec=1, sec_spec=1800)
at cam_comp.fppized.f90:325
#6  0x000000000079d809 in atm_comp_mct::atm_run_mct (eclock=..., cdata_a=...,
x2a_a=..., a2x_a=...) at atm_comp_mct.fppized.f90:513
#7  0x00000000007deb03 in ccsm_comp_mod::ccsm_run () at
ccsm_comp_mod.fppized.f90:2408
#8  0x0000000000403772 in ccsm_driver () at ccsm_driver.fppized.f90:58
#9  main (argc=argc@entry=1, argv=0x7fffffffdffe) at ccsm_driver.fppized.f90:25
#10 0x00007ffff79b6b7b in __libc_start_main (main=0x403740 <main>, argc=1,
argv=0x7fffffffdb98, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffdb88) at ../csu/libc-start.c:308
#11 0x00000000004037ba in _start () at ../sysdeps/x86_64/start.S:120

#2  0x0000000000453b06 in pionfput_mod::put_var_vdesc_1d_double (file=...,
vardesc=..., ival=...) at pionfput_mod.fppized.f90:2468
2468        ierr = put_var_1d_double (File, vardesc%varid, ival)
(gdb) info locals 
ierr = <optimized out>


More information about the Gcc-bugs mailing list