Bug ID: 91441
           Summary: ICE in asan_shadow_offset at asan.c:342 on riscv64
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot
          Reporter: marxin at gcc dot
  Target Milestone: ---

The target does not support ASAN yet. And so that we see the following ICE:

$ valgrind --leak-check=yes --trace-children=yes
--param asan-stack=1 -fsanitize=kernel-address
==17799== Jump to the invalid address stated on the next line
==17799==    at 0x0: ???
==17799==    by 0xB6F198: asan_shadow_offset (asan.c:342)
==17799==    by 0xB6F198: asan_emit_stack_protection(rtx_def*, rtx_def*,
unsigned int, long*, tree_node**, int) (asan.c:1533)
==17799==    by 0x7C74B6: expand_used_vars() (cfgexpand.c:2291)
==17799==    by 0x7CB1E2: (anonymous
namespace)::pass_expand::execute(function*) (cfgexpand.c:6405)
==17799==    by 0xA9F149: execute_one_pass(opt_pass*) (passes.c:2474)
==17799==    by 0xA9F82F: execute_pass_list_1(opt_pass*) (passes.c:2560)
==17799==    by 0xA9F868: execute_pass_list(function*, opt_pass*)
==17799==    by 0x7F8AA3: cgraph_node::expand() (cgraphunit.c:2194)
==17799==    by 0x7F9AA3: output_in_order (cgraphunit.c:2438)
==17799==    by 0x7F9AA3: symbol_table::compile() [clone .part.0]
==17799==    by 0x7FBA6C: compile (cgraphunit.c:2595)
==17799==    by 0x7FBA6C: symbol_table::finalize_compilation_unit()
==17799==    by 0xB56D24: compile_file() (toplev.c:481)
==17799==    by 0x5CB1BA: do_compile (toplev.c:2190)
==17799==    by 0x5CB1BA: toplev::main(int, char**) (toplev.c:2325)
==17799==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Reply via email to