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

            Bug ID: 106703
           Summary: during IPA pass: analyzer ICE: error reporting
                    routines re-entered. with -fanalyzer
                    -fsanitize-address-use-after-scope
                    -fsanitize=kernel-address
                    -fdiagnostics-format=sarif-stderr --param=asan-stack=1
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

Created attachment 53485
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53485&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -fanalyzer -fsanitize-address-use-after-scope
-fsanitize=kernel-address -fdiagnostics-format=sarif-stderr
--param=asan-stack=1 testcase.c 

during IPA pass: analyzer

internal compiler error: error reporting routines re-entered.
0xd28147 json::string::string(char const*)
        /repo/gcc-trunk/gcc/json.cc:191
0xd28147 json::string::string(char const*)
        /repo/gcc-trunk/gcc/json.cc:189
0x2614c7b sarif_builder::make_artifact_location_object(char const*)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:647
0x26167a9 sarif_builder::make_artifact_location_object(unsigned int)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:630
0x26167a9 sarif_builder::maybe_make_physical_location_object(unsigned int)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:604
0x26168df sarif_builder::make_location_object(rich_location const&,
logical_location const*)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:557
0x2617c23 sarif_builder::make_result_object(diagnostic_context*,
diagnostic_info*, diagnostic_t)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:397
0x26180bd sarif_builder::end_diagnostic(diagnostic_context*, diagnostic_info*,
diagnostic_t)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:248
0x26180bd sarif_builder::end_diagnostic(diagnostic_context*, diagnostic_info*,
diagnostic_t)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:233
0x26180bd sarif_end_diagnostic
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:1479
0x260e245 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1557
0x260e987 diagnostic_impl
        /repo/gcc-trunk/gcc/diagnostic.cc:1712
0x260f657 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic.cc:2112
0xd2720d fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:2211
0xd28147 json::string::string(char const*)
        /repo/gcc-trunk/gcc/json.cc:191
0xd28147 json::string::string(char const*)
        /repo/gcc-trunk/gcc/json.cc:189
0x2614c7b sarif_builder::make_artifact_location_object(char const*)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:647
0x26167a9 sarif_builder::make_artifact_location_object(unsigned int)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:630
0x26167a9 sarif_builder::maybe_make_physical_location_object(unsigned int)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:604
0x2616ab7 sarif_builder::make_location_object(diagnostic_event const&)
        /repo/gcc-trunk/gcc/diagnostic-format-sarif.cc:576
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.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-2130-20220821001633-gd6a39c25c05-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-2130-20220821001633-gd6a39c25c05-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220821 (experimental) (GCC)

Reply via email to