public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) @ 2021-08-12 9:16 asolokha at gmx dot com 2021-08-12 11:24 ` [Bug analyzer/101875] " marxin at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: asolokha at gmx dot com @ 2021-08-12 9:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 Bug ID: 101875 Summary: [12 Regression] ICE: Segmentation fault (in c_tree_printer) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc-12.0.0-alpha20210808 snapshot (g:5f564fd013327977a4d04aa520237d17f641f01a) ICEs when compiling the following testcase w/ -fanalyzer: char * fopen (const char *restrict, const char *restrict); void err (void); void k2 (void) { char *setfiles[1]; int i; setfiles[i] = fopen("", ""); if (!setfiles[i]) err (); } % gcc-12.0.0 -fanalyzer -c bmx5okgd.c during IPA pass: analyzer bmx5okgd.c:14:6: internal compiler error: Segmentation fault 14 | if (!setfiles[i]) | ^ 0xe510cf crash_signal /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/toplev.c:328 0x867960 c_tree_printer /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/c/c-objc-common.c:305 0x867960 c_tree_printer /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/c/c-objc-common.c:258 0x1adbf8d pp_format(pretty_printer*, text_info*) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/pretty-print.c:1475 0x120e53b ana::evdesc::event_desc::formatted_print(char const*, ...) const /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/pending-diagnostic.cc:64 0x124b658 describe_state_change /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/sm-file.cc:128 0x124b658 describe_state_change /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/sm-file.cc:119 0x124b658 describe_state_change /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/sm-file.cc:213 0x1a689b6 ana::state_change_event::get_desc(bool) const /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/checker-path.cc:259 0x1a685c2 ana::checker_event::prepare_for_emission(ana::checker_path*, ana::pending_diagnostic*, diagnostic_event_id_t) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/checker-path.cc:149 0x1a7b895 ana::checker_path::prepare_for_emission(ana::pending_diagnostic*) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/checker-path.h:571 0x1a7b895 ana::diagnostic_manager::emit_saved_diagnostic(ana::exploded_graph const&, ana::saved_diagnostic const&) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/diagnostic-manager.cc:1225 0x1a7f1b7 ana::dedupe_winners::emit_best(ana::diagnostic_manager*, ana::exploded_graph const&) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/diagnostic-manager.cc:1128 0x1a7be31 ana::diagnostic_manager::emit_saved_diagnostics(ana::exploded_graph const&) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/diagnostic-manager.cc:1179 0x120528d ana::impl_run_checkers(ana::logger*) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/engine.cc:4988 0x120605c ana::run_checkers() /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/engine.cc:5045 0x11f7058 execute /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210808/work/gcc-12-20210808/gcc/analyzer/analyzer-pass.cc:87 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101875] [12 Regression] ICE: Segmentation fault (in c_tree_printer) 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com @ 2021-08-12 11:24 ` marxin at gcc dot gnu.org 2021-08-16 8:53 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-08-12 11:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-12 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |marxin at gcc dot gnu.org --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, started with r12-2337-g33255ad3ac14e395. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101875] [12 Regression] ICE: Segmentation fault (in c_tree_printer) 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com 2021-08-12 11:24 ` [Bug analyzer/101875] " marxin at gcc dot gnu.org @ 2021-08-16 8:53 ` rguenth at gcc dot gnu.org 2021-08-18 22:57 ` dmalcolm at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-08-16 8:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101875] [12 Regression] ICE: Segmentation fault (in c_tree_printer) 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com 2021-08-12 11:24 ` [Bug analyzer/101875] " marxin at gcc dot gnu.org 2021-08-16 8:53 ` rguenth at gcc dot gnu.org @ 2021-08-18 22:57 ` dmalcolm at gcc dot gnu.org 2021-08-23 18:12 ` cvs-commit at gcc dot gnu.org 2021-08-23 18:25 ` dmalcolm at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: dmalcolm at gcc dot gnu.org @ 2021-08-18 22:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Thanks for filing this. I'm testing a fix. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101875] [12 Regression] ICE: Segmentation fault (in c_tree_printer) 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com ` (2 preceding siblings ...) 2021-08-18 22:57 ` dmalcolm at gcc dot gnu.org @ 2021-08-23 18:12 ` cvs-commit at gcc dot gnu.org 2021-08-23 18:25 ` dmalcolm at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-08-23 18:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>: https://gcc.gnu.org/g:3d654ca3f421ff9646470d312097602037176352 commit r12-3096-g3d654ca3f421ff9646470d312097602037176352 Author: David Malcolm <dmalcolm@redhat.com> Date: Mon Aug 23 14:11:58 2021 -0400 analyzer: fix ICE with NULL change.m_expr [PR101875] gcc/analyzer/ChangeLog: PR analyzer/101875 * sm-file.cc (file_diagnostic::describe_state_change): Handle change.m_expr being NULL. gcc/testsuite/ChangeLog: PR analyzer/101875 * gcc.dg/analyzer/pr101875.c: New test. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101875] [12 Regression] ICE: Segmentation fault (in c_tree_printer) 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com ` (3 preceding siblings ...) 2021-08-23 18:12 ` cvs-commit at gcc dot gnu.org @ 2021-08-23 18:25 ` dmalcolm at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: dmalcolm at gcc dot gnu.org @ 2021-08-23 18:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101875 David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Should be fixed by above commit. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-08-23 18:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-08-12 9:16 [Bug analyzer/101875] New: [12 Regression] ICE: Segmentation fault (in c_tree_printer) asolokha at gmx dot com 2021-08-12 11:24 ` [Bug analyzer/101875] " marxin at gcc dot gnu.org 2021-08-16 8:53 ` rguenth at gcc dot gnu.org 2021-08-18 22:57 ` dmalcolm at gcc dot gnu.org 2021-08-23 18:12 ` cvs-commit at gcc dot gnu.org 2021-08-23 18:25 ` dmalcolm 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).