public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 @ 2022-11-01 5:28 asolokha at gmx dot com 2022-11-02 15:20 ` [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type dmalcolm at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: asolokha at gmx dot com @ 2022-11-01 5:28 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486 Bug ID: 107486 Summary: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gcc 13.0.0 20221030 snapshot (g:f36bba013361d8d4f9c7237c3307630de0cc0416) ICEs when compiling the following testcase, reduced from test/CodeGen/2008-07-31-asm-labels.c from the clang 14 test suite, w/ -fanalyzer: void pipe(int) asm("_thisIsNotAPipe"); void f1(void) { pipe(1); } % gcc-13 -fanalyzer -c sdgrfguh.c during IPA pass: analyzer sdgrfguh.c: In function 'f1': sdgrfguh.c:4:3: internal compiler error: in deref_rvalue, at analyzer/region-model.cc:3317 4 | pipe(1); | ^~~~~~~ 0x7d4fd0 ana::region_model::deref_rvalue(ana::svalue const*, tree_node*, ana::region_model_context*) const /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/region-model.cc:3317 0x13151ea update_model /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/region-model-impl-calls.cc:608 0x12d9d4d ana::exploded_graph::process_node(ana::exploded_node*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:4133 0x12da7aa ana::exploded_graph::process_worklist() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:3422 0x12dce9c ana::impl_run_checkers(ana::logger*) /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:6070 0x12ddeee ana::run_checkers() /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/engine.cc:6144 0x12cc848 execute /var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/analyzer/analyzer-pass.cc:86 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type 2022-11-01 5:28 [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 asolokha at gmx dot com @ 2022-11-02 15:20 ` dmalcolm at gcc dot gnu.org 2022-11-03 14:22 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: dmalcolm at gcc dot gnu.org @ 2022-11-02 15:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486 David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[13 Regression] ICE in |[13 Regression] ICE when |deref_rvalue, at |pipe's argument is not a |analyzer/region-model.cc:33 |pointer type |17 | Last reconfirmed| |2022-11-02 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Thanks for filing this bug. I'm testing a fix. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type 2022-11-01 5:28 [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 asolokha at gmx dot com 2022-11-02 15:20 ` [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type dmalcolm at gcc dot gnu.org @ 2022-11-03 14:22 ` cvs-commit at gcc dot gnu.org 2022-11-03 14:58 ` dmalcolm at gcc dot gnu.org 2022-11-28 22:08 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2022-11-03 14:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486 --- Comment #2 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:5acc10a9ea66411e1712fabc94f9f29892b0d607 commit r13-3626-g5acc10a9ea66411e1712fabc94f9f29892b0d607 Author: David Malcolm <dmalcolm@redhat.com> Date: Thu Nov 3 10:21:00 2022 -0400 analyzer: fix ICE when pipe's arg isn't a pointer [PR107486] gcc/analyzer/ChangeLog: PR analyzer/107486 * analyzer.cc (is_pipe_call_p): New. * analyzer.h (is_pipe_call_p): New decl. * region-model.cc (region_model::on_call_pre): Use it. (region_model::on_call_post): Likewise. gcc/testsuite/ChangeLog: PR analyzer/107486 * gcc.dg/analyzer/pipe-pr107486.c: New test. * gcc.dg/analyzer/pipe-void-return.c: New test. Signed-off-by: David Malcolm <dmalcolm@redhat.com> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type 2022-11-01 5:28 [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 asolokha at gmx dot com 2022-11-02 15:20 ` [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type dmalcolm at gcc dot gnu.org 2022-11-03 14:22 ` cvs-commit at gcc dot gnu.org @ 2022-11-03 14:58 ` dmalcolm at gcc dot gnu.org 2022-11-28 22:08 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: dmalcolm at gcc dot gnu.org @ 2022-11-03 14:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486 David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Should be fixed by the above commit. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type 2022-11-01 5:28 [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 asolokha at gmx dot com ` (2 preceding siblings ...) 2022-11-03 14:58 ` dmalcolm at gcc dot gnu.org @ 2022-11-28 22:08 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-11-28 22:08 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107486 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-28 22:08 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-01 5:28 [Bug analyzer/107486] New: [13 Regression] ICE in deref_rvalue, at analyzer/region-model.cc:3317 asolokha at gmx dot com 2022-11-02 15:20 ` [Bug analyzer/107486] [13 Regression] ICE when pipe's argument is not a pointer type dmalcolm at gcc dot gnu.org 2022-11-03 14:22 ` cvs-commit at gcc dot gnu.org 2022-11-03 14:58 ` dmalcolm at gcc dot gnu.org 2022-11-28 22:08 ` pinskia 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).