public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/106551] New: [13 Regression] dup2 causes -fanalyser ICE in valid_to_unchecked_state, at analyzer/sm-fd.cc:751
@ 2022-08-08  6:39 slyfox at gcc dot gnu.org
  2022-08-08  6:52 ` [Bug analyzer/106551] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: slyfox at gcc dot gnu.org @ 2022-08-08  6:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106551
           Summary: [13 Regression] dup2 causes -fanalyser ICE in
                    valid_to_unchecked_state, at analyzer/sm-fd.cc:751
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

This week's gcc started ICEing on libpipeline-1.5.4 upstream package.

Minimal reproducer turned up by cvise:

    $ cat a.c.c
    extern int m;
    int dup2(int, int);
    void error(void);
    void max_active_pipelines_pdes(void) {
      if (dup2(m, 1))
        error();
    }

$ gcc -g -O2 -Wall  -c a.c.c -fanalyzer
during IPA pass: analyzer
a.c.c: In function 'max_active_pipelines_pdes':
a.c.c:5:7: internal compiler error: in valid_to_unchecked_state, at
analyzer/sm-fd.cc:751
    5 |   if (dup2(m, 1))
      |       ^~~~~~~~~~
0x1ef7d74 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
        ???:0
0x1ef89c6 internal_error(char const*, ...)
        ???:0
0x9023d4 fancy_abort(char const*, int, char const*)
        ???:0
0x85baa7 ana::(anonymous
namespace)::fd_state_machine::check_for_dup(ana::sm_context*, ana::supernode
const*, gimple const*, gcall const*, tree_node*, ana::(anonymous
namespace)::dup) const [clone .cold]
        ???:0
0x135181c ana::(anonymous
namespace)::fd_state_machine::on_stmt(ana::sm_context*, ana::supernode const*,
gimple const*) const
        ???:0
0x12fcd74 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
        ???:0
0x12ff7ab ana::exploded_graph::process_node(ana::exploded_node*)
        ???:0
0x130064a ana::exploded_graph::process_worklist()
        ???:0
0x1302999 ana::impl_run_checkers(ana::logger*)
        ???:0
0x130394e ana::run_checkers()
        ???:0
0x12f37e8 (anonymous namespace)::pass_analyzer::execute(function*)
        ???:0

$ gcc -v |& unnix
Using built-in specs.
COLLECT_GCC=/<<NIX>>/gcc-13.0.0/bin/gcc
COLLECT_LTO_WRAPPER=/<<NIX>>/gcc-13.0.0/libexec/gcc/x86_64-unknown-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20220807 (experimental) (GCC)

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

end of thread, other threads:[~2022-08-15 16:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08  6:39 [Bug analyzer/106551] New: [13 Regression] dup2 causes -fanalyser ICE in valid_to_unchecked_state, at analyzer/sm-fd.cc:751 slyfox at gcc dot gnu.org
2022-08-08  6:52 ` [Bug analyzer/106551] " rguenth at gcc dot gnu.org
2022-08-08 14:02 ` dmalcolm at gcc dot gnu.org
2022-08-09  7:48 ` [Bug analyzer/106551] [13 Regression] dup2 causes -fanalyzer " mir at gcc dot gnu.org
2022-08-11 16:21 ` cvs-commit at gcc dot gnu.org
2022-08-14 20:27 ` tlange at gcc dot gnu.org
2022-08-15  8:37 ` mir at gcc dot gnu.org
2022-08-15 16:52 ` cvs-commit at gcc dot gnu.org
2022-08-15 16:55 ` mir 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).