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

--- Comment #16 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 
---
Just another valgrind trace below. The bug is very sensitive, I have now a
non-lto case and it is a relatively small file that causes a crash. However,
just moving the file to a different directory is enough to make the error
disappear. 

/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_methods.F:545:0:

   SUBROUTINE  ddapc_eval_AmI(GAmI, c0,  gfunc, w, particle_set, gcut,&


Error: incompatible types in PHI argument 0
integer(kind=8)

unsigned long

/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_methods.F:545:0: Error:
location references block not in block tree
S.96_21 = PHI <0(149), S.96_3(151)>
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_methods.F:545:0: Error:
invalid PHI argument
_352
==31829== Invalid read of size 2
==31829==    at 0x8E16A8: useless_type_conversion_p(tree_node*, tree_node*)
(gimple-expr.c:67)
==31829==    by 0xB95BE9: verify_gimple_phi (tree-cfg.c:4658)
==31829==    by 0xB95BE9: verify_gimple_in_cfg(function*, bool)
(tree-cfg.c:4952)
==31829==    by 0xA82F7C: execute_function_todo(function*, void*)
(passes.c:1945)
==31829==    by 0xA839F3: execute_todo(unsigned int) (passes.c:2000)
==31829==    by 0xA8612B: execute_one_pass(opt_pass*) (passes.c:2329)
==31829==    by 0xA866BF: execute_pass_list_1(opt_pass*) (passes.c:2389)
==31829==    by 0xA866D1: execute_pass_list_1(opt_pass*) (passes.c:2390)
==31829==    by 0xA866D1: execute_pass_list_1(opt_pass*) (passes.c:2390)
==31829==    by 0xA86714: execute_pass_list(function*, opt_pass*)
(passes.c:2400)
==31829==    by 0x78C013: cgraph_node::expand() (cgraphunit.c:1965)
==31829==    by 0x78D902: expand_all_functions (cgraphunit.c:2101)
==31829==    by 0x78D902: symbol_table::compile() (cgraphunit.c:2450)
==31829==    by 0x78F86D: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2540)
==31829==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==31829== 
/data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_methods.F:545:0: internal
compiler error: Segmentation fault

Reply via email to