[Bug sanitizer/81322] New: -fsanitize=address ICE in prepare_function_start, at function.c

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 5 08:59:00 GMT 2017


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

            Bug ID: 81322
           Summary: -fsanitize=address ICE in prepare_function_start, at
                    function.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

/* from times-two.c.before-df.c */
/* in trunk 249883 */
/* must be compiled with option -fsanitize=address */
/* ICE in prepare_function_start, at function.c */
int __RTL (startwith ("rtl-dfinit")) times_two (int i)
{
(function "times_two"
  (insn-chain
    (block 2
      (edge-from entry (flags "FALLTHRU"))
      (cnote 4 [bb 2] NOTE_INSN_BASIC_BLOCK)
      (edge-to exit (flags "FALLTHRU"))
    ) ;; block 2
  ) ;; insn-chain
) ;; function "times_two"
}
/* In function ‘_GLOBAL__sub_I_00099_0_times_two’:
 internal compiler error: in prepare_function_start, at function.c:4974
 }
 ^
0x5dd409 prepare_function_start
        ../../gcc-249883/gcc/function.c:4974
0x9bdded init_function_start(tree_node*)
        ../../gcc-249883/gcc/function.c:5050
0x89661b cgraph_node::expand()
        ../../gcc-249883/gcc/cgraphunit.c:2036
0x896c47 cgraph_node::add_new_function(tree_node*, bool)
        ../../gcc-249883/gcc/cgraphunit.c:586
0xaa06dd cgraph_build_static_cdtor_1
        ../../gcc-249883/gcc/ipa.c:936
0xc7a3b6 asan_finish_file()
        ../../gcc-249883/gcc/asan.c:2727
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
*/


More information about the Gcc-bugs mailing list