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

            Bug ID: 116970
           Summary: -ftime-report -fdiagnostics-format=sarif-file causes
                    ICE
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andi-gcc at firstfloor dot org
  Target Milestone: ---

This is with tramp3d, but I suspect it will happen on other files too.

% ./gcc/cc1plus -ftime-report -fdiagnostics-format=sarif-file tramp3d-v4.i
cc1plus: internal compiler error: Segmentation fault
0x27206ee internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:517
0x133401f crash_signal
        ../../gcc/gcc/toplev.cc:321
0x27e7934 htab_hash_string
        ../../gcc/libiberty/hashtab.c:838
0x2715dde string_hash::hash(char const*)
        ../../gcc/gcc/hash-traits.h:239
0x2715dde simple_hashmap_traits<default_hash_traits<nofree_string_hash>,
sarif_artifact*>::hash(char const* const&)
        ../../gcc/gcc/hash-map-traits.h:50
0x2715dde hash_map<nofree_string_hash, sarif_artifact*,
simple_hashmap_traits<default_hash_traits<nofree_string_hash>, sarif_artifact*>
>::get(char const* const&)
        ../../gcc/gcc/hash-map.h:191
0x2715dde ordered_hash_map<nofree_string_hash, sarif_artifact*,
simple_hashmap_traits<default_hash_traits<nofree_string_hash>, sarif_artifact*>
>::get(char const* const&)
        ../../gcc/gcc/ordered-hash-map.h:76
0x2715dde sarif_builder::get_or_create_artifact(char const*,
diagnostic_artifact_role, bool)
        ../../gcc/gcc/diagnostic-format-sarif.cc:2892
0x2716403 sarif_output_format::sarif_output_format(diagnostic_context&,
line_maps const*, char const*, bool)
        ../../gcc/gcc/diagnostic-format-sarif.cc:3154
0x2716403
sarif_file_output_format::sarif_file_output_format(diagnostic_context&,
line_maps const*, char const*, bool, char const*)
        ../../gcc/gcc/diagnostic-format-sarif.cc:3193
0x2716403 std::enable_if<!std::is_array<sarif_file_output_format>::value,
std::unique_ptr<sarif_file_output_format,
std::default_delete<sarif_file_output_format> > >::type
make_unique<sarif_file_output_format, diagnostic_context&, line_maps const*&,
char const*&, bool&, char const*&>(diagnostic_context&, line_maps const*&, char
const*&, bool&, char const*&)
0x2716403 diagnostic_output_format_init_sarif_file(diagnostic_context&,
line_maps const*, char const*, bool, char const*)
        ../../gcc/gcc/diagnostic-format-sarif.cc:3392
0x26f0522 common_handle_option(gcc_options*, gcc_options*, cl_decoded_option
const*, unsigned int, int, unsigned int, cl_option_handlers const*,
diagnostic_context*, void (*)())
        ../../gcc/gcc/opts.cc:2968
0x26f5728 handle_option
        ../../gcc/gcc/opts-common.cc:1316
0x26f585e read_cmdline_option(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, cl_option_handlers const*, diagnostic_context*)
        ../../gcc/gcc/opts-common.cc:1646
0x120f194 read_cmdline_options
        ../../gcc/gcc/opts-global.cc:242
0x120f194 decode_options(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, diagnostic_context*, void (*)())
        ../../gcc/gcc/opts-global.cc:329
  • [Bug other/116970] New: -ftime... andi-gcc at firstfloor dot org via Gcc-bugs

Reply via email to