public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/105365] New: [12 Regression] ICE: in cmp_cst, at analyzer/svalue.cc:309 with -fanalyzer
@ 2022-04-24 18:50 zsojka at seznam dot cz
  2022-04-25  6:58 ` [Bug analyzer/105365] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2022-04-24 18:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105365
           Summary: [12 Regression] ICE: in cmp_cst, at
                    analyzer/svalue.cc:309 with -fanalyzer
           Product: gcc
           Version: 12.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 52858
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52858&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -fanalyzer testcase.c 
during IPA pass: analyzer
testcase.c: In function 'foo':
testcase.c:13:9: internal compiler error: in cmp_cst, at analyzer/svalue.cc:309
   13 |   bar(f + k);
      |       ~~^~~
0x8341f0 cmp_cst
        /repo/gcc-trunk/gcc/analyzer/svalue.cc:309
0x17bd00d cmp_cst
        /repo/gcc-trunk/gcc/analyzer/svalue.cc:326
0x17bd3fa ana::svalue::cmp_ptr(ana::svalue const*, ana::svalue const*)
        /repo/gcc-trunk/gcc/analyzer/svalue.cc:435
0x256c220 cmp1<sort_ctx>
        /repo/gcc-trunk/gcc/sort.cc:153
0x256c274 netsort<sort_ctx>
        /repo/gcc-trunk/gcc/sort.cc:170
0x256c274 mergesort<sort_ctx>
        /repo/gcc-trunk/gcc/sort.cc:207
0x256c7ff gcc_qsort(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        /repo/gcc-trunk/gcc/sort.cc:266
0x175632f vec<ana::svalue const*, va_heap, vl_embed>::qsort(int (*)(void
const*, void const*))
        /repo/gcc-trunk/gcc/vec.h:1147
0x175632f vec<ana::svalue const*, va_heap, vl_ptr>::qsort(int (*)(void const*,
void const*))
        /repo/gcc-trunk/gcc/vec.h:2121
0x175632f ana::program_state::detect_leaks(ana::program_state const&,
ana::program_state const&, ana::svalue const*, ana::extrinsic_state const&,
ana::region_model_context*)
        /repo/gcc-trunk/gcc/analyzer/program-state.cc:1420
0x17566c9 ana::program_state::prune_for_point(ana::exploded_graph&,
ana::program_point const&, ana::exploded_node*, ana::uncertainty_t*) const
        /repo/gcc-trunk/gcc/analyzer/program-state.cc:1214
0x1744361 ana::exploded_graph::process_node(ana::exploded_node*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3780
0x174520a ana::exploded_graph::process_worklist()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3198
0x174754b ana::impl_run_checkers(ana::logger*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:5777
0x1748443 ana::run_checkers()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:5851
0x1738138 execute
        /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:87
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-28 21:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 18:50 [Bug analyzer/105365] New: [12 Regression] ICE: in cmp_cst, at analyzer/svalue.cc:309 with -fanalyzer zsojka at seznam dot cz
2022-04-25  6:58 ` [Bug analyzer/105365] " rguenth at gcc dot gnu.org
2022-04-25 13:13 ` [Bug analyzer/105365] [12 Regression] ICE: in cmp_cst, at analyzer/svalue.cc:309 with -fanalyzer since r12-2337-g33255ad3ac14e395 marxin at gcc dot gnu.org
2022-04-25 15:52 ` dmalcolm at gcc dot gnu.org
2022-04-25 23:37 ` cvs-commit at gcc dot gnu.org
2022-04-25 23:38 ` dmalcolm at gcc dot gnu.org
2022-04-28 21:43 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).