https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106066
Bug ID: 106066 Summary: crash dump when "-fdump-analyzer" enabled Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: chipitsine at gmail dot com Target Milestone: --- reproduce steps (using latest gcc13 from git): git clone https://github.com/haproxy/haproxy cd haproxy export CC=/path/to/latest/gcc13 export ADDITIONAL_CFLAGS="-fanalyzer -fdump-analyzer" QUICTLS=yes scripts/build-ssl.sh make -j3 CC=$CC V=1 ERR=1 TARGET=linux-glibc USE_OPENSSL=1 USE_QUIC=1 USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_SYSTEMD=1 ADDLIB="-Wl,-rpath,${HOME}/opt/lib" SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include DEBUG_CFLAGS="-g ${ADDITIONAL_CFLAGS}" stacktrace: during IPA pass: analyzer src/ev_epoll.c: In function ‘_do_poll’: src/ev_epoll.c:239:55: internal compiler error: Segmentation fault 239 | ((e & EPOLLERR) ? FD_EV_ERR_RW : 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 0xf3ec3f crash_signal /home/ilia/gcc/gcc-master/gcc/toplev.cc:322 0x101a64c tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /home/ilia/gcc/gcc-master/gcc/tree.h:3638 0x101a64c dump_mem_ref /home/ilia/gcc/gcc-master/gcc/tree-pretty-print.cc:1700 0x100ff3f dump_generic_node(pretty_printer*, tree_node*, int, dump_flag, bool) /home/ilia/gcc/gcc-master/gcc/tree-pretty-print.cc:2061 0x1011554 dump_generic_node(pretty_printer*, tree_node*, int, dump_flag, bool) /home/ilia/gcc/gcc-master/gcc/tree-pretty-print.cc:2425 0x1014d46 dump_generic_node(pretty_printer*, tree_node*, int, dump_flag, bool) /home/ilia/gcc/gcc-master/gcc/tree-pretty-print.cc:2910 0x12faef9 ana::dump_tree(pretty_printer*, tree_node*) /home/ilia/gcc/gcc-master/gcc/analyzer/region-model.cc:87 0x12faef9 ana::dump_quoted_tree(pretty_printer*, tree_node*) /home/ilia/gcc/gcc-master/gcc/analyzer/region-model.cc:97 0x12ed6f9 ana::sm_state_map::print(ana::region_model const*, bool, bool, pretty_printer*) const /home/ilia/gcc/gcc-master/gcc/analyzer/program-state.cc:242 0x12ef45e ana::program_state::dump_to_pp(ana::extrinsic_state const&, bool, bool, pretty_printer*) const /home/ilia/gcc/gcc-master/gcc/analyzer/program-state.cc:901 0x12f0283 ana::program_state::detect_leaks(ana::program_state const&, ana::program_state const&, ana::svalue const*, ana::extrinsic_state const&, ana::region_model_context*) /home/ilia/gcc/gcc-master/gcc/analyzer/program-state.cc:1366 0x12f0986 ana::program_state::prune_for_point(ana::exploded_graph&, ana::program_point const&, ana::exploded_node*, ana::uncertainty_t*) const /home/ilia/gcc/gcc-master/gcc/analyzer/program-state.cc:1214 0x12de456 ana::exploded_graph::process_node(ana::exploded_node*) /home/ilia/gcc/gcc-master/gcc/analyzer/engine.cc:3822 0x12df0fa ana::exploded_graph::process_worklist() /home/ilia/gcc/gcc-master/gcc/analyzer/engine.cc:3240 0x12e1467 ana::impl_run_checkers(ana::logger*) /home/ilia/gcc/gcc-master/gcc/analyzer/engine.cc:5832 0x12e2295 ana::run_checkers() /home/ilia/gcc/gcc-master/gcc/analyzer/engine.cc:5906 0x12d1c48 execute /home/ilia/gcc/gcc-master/gcc/analyzer/analyzer-pass.cc:87 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.