From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 14C2E3858C56; Fri, 19 Jan 2024 20:57:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14C2E3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705697859; bh=Cll0NJejx270+XQlmJysxvznNBuTnditGndP8U8MjIc=; h=From:To:Subject:Date:From; b=EUBSpfLwRn8HA61+YaQ5igGuzYiWqJqJRqtZXaKlerB6cJ82ypFLLM6Ks36LcoibP O0izl0a2NC8O5ZSvvbgErQNKaxnrddAUN3Xa4AqNpAb8UkipNoogCqM8Fjommf3buS rl+puMammViONwAHOXrOQFG7XmoEHFffFPjAOCY4= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/113509] New: ICE: SIGSEGV in c_tree_printer (c-objc-common.cc:341) with -fanalyzer -fanalyzer-verbose-state-changes Date: Fri, 19 Jan 2024 20:57:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113509 Bug ID: 113509 Summary: ICE: SIGSEGV in c_tree_printer (c-objc-common.cc:341) with -fanalyzer -fanalyzer-verbose-state-changes Product: gcc Version: 14.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 Target: x86_64-pc-linux-gnu Created attachment 57165 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57165&action=3Dedit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -fanalyzer -fanalyzer-verbose-state-changes cryptlib.i -wrapper valgrind,-q =3D=3D26950=3D=3D Invalid read of size 2 =3D=3D26950=3D=3D at 0xE46470: c_tree_printer(pretty_printer*, text_info= *, char const*, int, bool, bool, bool, bool*, char const**) (c-objc-common.cc:341) =3D=3D26950=3D=3D by 0x29E8159: pp_format(pretty_printer*, text_info*, u= rlifier const*) (pretty-print.cc:1704) =3D=3D26950=3D=3D by 0x290686B: make_label_text(bool, char const*, ...) (analyzer.cc:494) =3D=3D26950=3D=3D by 0x291319E: ana::state_change_event::get_desc(bool) = const (checker-event.cc:464) =3D=3D26950=3D=3D by 0x2911478: ana::checker_event::prepare_for_emission(ana::checker_path*, ana::pending_diagnostic*, diagnostic_event_id_t) (checker-event.cc:230) =3D=3D26950=3D=3D by 0x29300F3: prepare_for_emission (checker-path.h:108) =3D=3D26950=3D=3D by 0x29300F3: ana::diagnostic_manager::emit_saved_diagnostic(ana::exploded_graph const&, ana::saved_diagnostic&) (diagnostic-manager.cc:1601) =3D=3D26950=3D=3D by 0x2933FC6: ana::dedupe_winners::emit_best(ana::diagnostic_manager*, ana::exploded_graph const&) (diagnostic-manager.cc:1472) =3D=3D26950=3D=3D by 0x2930733: ana::diagnostic_manager::emit_saved_diagnostics(ana::exploded_graph const&) (diagnostic-manager.cc:1524) =3D=3D26950=3D=3D by 0x1911447: ana::impl_run_checkers(ana::logger*) (engine.cc:6226) =3D=3D26950=3D=3D by 0x1912326: ana::run_checkers() (engine.cc:6300) =3D=3D26950=3D=3D by 0x1900F98: (anonymous namespace)::pass_analyzer::execute(function*) (analyzer-pass.cc:87) =3D=3D26950=3D=3D by 0x13CC0EA: execute_one_pass(opt_pass*) (passes.cc:2= 646) =3D=3D26950=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D26950=3D=3D=20 during IPA pass: analyzer cryptlib.i:4:1: internal compiler error: Segmentation fault 4 | } | ^ 0x150de9f crash_signal /repo/gcc-trunk/gcc/toplev.cc:317 0xe46470 c_tree_printer /repo/gcc-trunk/gcc/c/c-objc-common.cc:341 0x29e8159 pp_format(pretty_printer*, text_info*, urlifier const*) /repo/gcc-trunk/gcc/pretty-print.cc:1704 0x290686b make_label_text(bool, char const*, ...) /repo/gcc-trunk/gcc/analyzer/analyzer.cc:494 0x291319e ana::state_change_event::get_desc(bool) const /repo/gcc-trunk/gcc/analyzer/checker-event.cc:464 0x2911478 ana::checker_event::prepare_for_emission(ana::checker_path*, ana::pending_diagnostic*, diagnostic_event_id_t) /repo/gcc-trunk/gcc/analyzer/checker-event.cc:230 0x29300f3 ana::checker_path::prepare_for_emission(ana::pending_diagnostic*) /repo/gcc-trunk/gcc/analyzer/checker-path.h:108 0x29300f3 ana::diagnostic_manager::emit_saved_diagnostic(ana::exploded_graph const&, ana::saved_diagnostic&) /repo/gcc-trunk/gcc/analyzer/diagnostic-manager.cc:1601 0x2933fc6 ana::dedupe_winners::emit_best(ana::diagnostic_manager*, ana::exploded_graph const&) /repo/gcc-trunk/gcc/analyzer/diagnostic-manager.cc:1472 0x2930733 ana::diagnostic_manager::emit_saved_diagnostics(ana::exploded_gra= ph const&) /repo/gcc-trunk/gcc/analyzer/diagnostic-manager.cc:1524 0x1911447 ana::impl_run_checkers(ana::logger*) /repo/gcc-trunk/gcc/analyzer/engine.cc:6226 0x1912326 ana::run_checkers() /repo/gcc-trunk/gcc/analyzer/engine.cc:6300 0x1900f98 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 for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-8284-20240119180625-= g54519030b05-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-8284-20240119180625-g54519030b= 05-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240119 (experimental) (GCC)=