https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94579
Bug ID: 94579 Summary: OVS compiled with gcc10 with -fanalyzer Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: u9012063 at gmail dot com Target Milestone: --- Hi, I'd like to create an account to submit a bug for gcc10 when compiling openvswitch $ uname -a Linux osboxes 5.5.0-rc1+ #112 SMP Fri Feb 21 10:28:49 PST 2020 x86_64 x86_64 x86_64 GNU/L $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/10.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ./configure Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.0.1 20200405 (experimental) (GCC) $ git clone https://github.com/openvswitch/ovs.git $ cd ovs $ ./boot.sh; ./configure; make CFLAGS+=-fanalyzer In file included from lib/flow.h:31, from lib/flow.c:18: lib/packets.h: In function ‘in6_addr_mapped_ipv4’: lib/packets.h:1187:12: internal compiler error: in saved_diagnostic, at analyzer/diagnostic-manager.cc:84 1187 | return ip6; | ^~~ 0x7888f9 ana::saved_diagnostic::saved_diagnostic(ana::state_machine const*, ana::exploded_node const*, ana::supernode const*, gimple const*, ana::stmt_finder*, tree_node*, unsigned int, ana::pending_diagnostic*) ../.././gcc/analyzer/diagnostic-manager.cc:84 0x1757703 ana::diagnostic_manager::add_diagnostic(ana::state_machine const*, ana::exploded_node const*, ana::supernode const*, gimple const*, ana::stmt_finder*, tree_node*, unsigned int, ana::pending_diagnostic*) ../.././gcc/analyzer/diagnostic-manager.cc:175 0x17578f9 ana::diagnostic_manager::add_diagnostic(ana::exploded_node const*, ana::supernode const*, gimple const*, ana::stmt_finder*, ana::pending_diagnostic*) ../.././gcc/analyzer/diagnostic-manager.cc:192 0x10aead4 ana::impl_region_model_context::warn(ana::pending_diagnostic*) ../.././gcc/analyzer/engine.cc:114 0x10d3664 ana::region_model::deref_rvalue(ana::svalue_id, ana::region_model_context*) ../.././gcc/analyzer/region-model.cc:5458 0x10d59de ana::region_model::get_or_create_mem_ref(tree_node*, ana::svalue_id, ana::svalue_id, ana::region_model_context*) ../.././gcc/analyzer/region-model.cc:6971 0x10d62b3 ana::region_model::get_lvalue(ana::path_var, ana::region_model_context*) ../.././gcc/analyzer/region-model.cc:5068 0x10de90d ana::region_model::update_for_return_superedge(ana::return_superedge const&, ana::region_model_context*) ../.././gcc/analyzer/region-model.cc:6171 0x10dea17 ana::region_model::maybe_update_for_edge(ana::superedge const&, gimple const*, ana::region_model_context*) ../.././gcc/analyzer/region-model.cc:6092 0x10c37d2 ana::program_state::on_edge(ana::exploded_graph&, ana::exploded_node const&, ana::superedge const*, ana::state_change*) ../.././gcc/analyzer/program-state.cc:829 0x10af589 ana::exploded_node::on_edge(ana::exploded_graph&, ana::superedge const*, ana::program_point*, ana::program_state*, ana::state_change*) const ../.././gcc/analyzer/engine.cc:1153 0x10b6b5b ana::exploded_graph::process_node(ana::exploded_node*) ../.././gcc/analyzer/engine.cc:2597 0x10b716a ana::exploded_graph::process_worklist() ../.././gcc/analyzer/engine.cc:2348 0x10b787b ana::impl_run_checkers(ana::logger*) ../.././gcc/analyzer/engine.cc:4029 0x10b840c ana::run_checkers() ../.././gcc/analyzer/engine.cc:4097 0x10ad598 execute ../.././gcc/analyzer/analyzer-pass.cc:84 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.