[Bug middle-end/106133] ICE: SIGSEGV in diagnostic_output_format_init_json_file() with -fdiagnostics-format=json-file -E

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 10 13:31:47 GMT 2023


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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Btw. it crashes also for:

gcc empty.c -fdiagnostics-format=sarif-file --save-temps -c
0xf02ebf crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.cc:314
0x7ffff78b78df ???
       
/usr/src/debug/glibc-2.36/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7ffff79e1cfd __strlen_avx2
        ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
0x1fdbb61 xstrdup
        /home/marxin/Programming/gcc/libiberty/xstrdup.c:33
0x1f4be5b diagnostic_output_format_init_sarif_file(diagnostic_context*, char
const*)
        /home/marxin/Programming/gcc/gcc/diagnostic-format-sarif.cc:1585
0x1f2b395 common_handle_option(gcc_options*, gcc_options*, cl_decoded_option
const*, unsigned int, int, unsigned int, cl_option_handlers const*,
diagnostic_context*, void (*)())
        /home/marxin/Programming/gcc/gcc/opts.cc:2866
0x1f2ff08 handle_option
        /home/marxin/Programming/gcc/gcc/opts-common.cc:1248
0x1f3003e read_cmdline_option(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, cl_option_handlers const*, diagnostic_context*)
        /home/marxin/Programming/gcc/gcc/opts-common.cc:1578
0xe148e4 read_cmdline_options
        /home/marxin/Programming/gcc/gcc/opts-global.cc:239
0xe148e4 decode_options(gcc_options*, gcc_options*, cl_decoded_option*,
unsigned int, unsigned int, diagnostic_context*, void (*)())
        /home/marxin/Programming/gcc/gcc/opts-global.cc:321
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
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