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

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

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

$ valgrind --leak-check=yes --trace-children=yes
~/BIG/bin/riscv64/dev/shm/buildbot/install/gcc/bin/riscv64-linux-gnu-gcc
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/nsdmi-template17.C
--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*)
(passes.c:2571)
==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]
(cgraphunit.c:2685)
==17799==    by 0x7FBA6C: compile (cgraphunit.c:2595)
==17799==    by 0x7FBA6C: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2868)
==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