public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132
@ 2022-12-19 6:30 asolokha at gmx dot com
2022-12-19 8:30 ` [Bug analyzer/108171] " rguenth at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: asolokha at gmx dot com @ 2022-12-19 6:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Bug ID: 108171
Summary: [13 Regression] ICE in binding_key::make, at
analyzer/store.cc:132
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: ---
Created attachment 54123
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54123&action=edit
Testcase
gcc 13.0.0 20221211 snapshot (g:fd69977febf399d1992bbf8d66ae9170e0a4dc9f) ICEs
when compiling test/f90_correct/src/wa02.f90 from the flang test suite w/
-fanalyzer:
% gfortran-13 -fanalyzer -c flang/test/f90_correct/src/wa02.f90
during IPA pass: analyzer
flang/test/f90_correct/src/wa02.f90:17:23:
17 | s = (/ ( i, i=1,n ) /)
| ^
internal compiler error: in make, at analyzer/store.cc:132
0x7c016f ana::binding_key::make(ana::store_manager*, ana::region const*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:132
0x1397f04 ana::binding_cluster::get_binding(ana::store_manager*, ana::region
const*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1554
0x1398167 ana::binding_cluster::get_binding_recursive(ana::store_manager*,
ana::region const*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1591
0x139a1b5 ana::binding_cluster::get_any_binding(ana::store_manager*,
ana::region const*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/store.cc:1614
0x133ea16 ana::region_model::get_store_value(ana::region const*,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:2337
0x1340ddc ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:2227
0x1344b77 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/region-model.cc:1101
0x1316bd4 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:1452
0x1319cb5 ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:4044
0x131ac6a ana::exploded_graph::process_worklist()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:3447
0x131d3e4 ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:6098
0x131e3e6 ana::run_checkers()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/engine.cc:6186
0x130cda8 execute
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221218/work/gcc-13-20221218/gcc/analyzer/analyzer-pass.cc:87
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
@ 2022-12-19 8:30 ` rguenth at gcc dot gnu.org
2022-12-19 14:25 ` [Bug analyzer/108171] [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70 marxin at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-19 8:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Priority|P3 |P4
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
2022-12-19 8:30 ` [Bug analyzer/108171] " rguenth at gcc dot gnu.org
@ 2022-12-19 14:25 ` marxin at gcc dot gnu.org
2023-04-26 6:57 ` [Bug analyzer/108171] [13/14 " rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-19 14:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13 Regression] ICE in |[13 Regression] ICE in
|binding_key::make, at |binding_key::make, at
|analyzer/store.cc:132 |analyzer/store.cc:132 since
| |r13-4529-gdfe2ef7f2b6cac70
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2022-12-19
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-4529-gdfe2ef7f2b6cac70.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
2022-12-19 8:30 ` [Bug analyzer/108171] " rguenth at gcc dot gnu.org
2022-12-19 14:25 ` [Bug analyzer/108171] [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70 marxin at gcc dot gnu.org
@ 2023-04-26 6:57 ` rguenth at gcc dot gnu.org
2023-04-30 20:41 ` arsen at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-26 6:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|13.0 |13.2
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 13.1 is being released, retargeting bugs to GCC 13.2.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (2 preceding siblings ...)
2023-04-26 6:57 ` [Bug analyzer/108171] [13/14 " rguenth at gcc dot gnu.org
@ 2023-04-30 20:41 ` arsen at gcc dot gnu.org
2023-07-27 9:24 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: arsen at gcc dot gnu.org @ 2023-04-30 20:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Arsen Arsenović <arsen at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arsen at gcc dot gnu.org
--- Comment #3 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
I believe the following test case is of the same issue:
struct nl_context {
void *cmd_private
};
struct sfeatures_context {
int a;
int req_mask[0]
};
set_sf_req_mask_idx;
fill_sfeatures_bitmap(struct nl_context *nlctx) {
while (nlctx) {
fill_legacy_flag();
struct nl_context __trans_tmp_1 = *nlctx;
struct sfeatures_context *sfctx = __trans_tmp_1.cmd_private;
sfctx->req_mask[set_sf_req_mask_idx] |= 1;
}
}
nl_sfeatures() {
struct nl_context nlctx;
struct sfeatures_context *sfctx;
nlctx.cmd_private = &sfctx;
sfctx = 0;
fill_sfeatures_bitmap(&nlctx);
}
note that making req_mask a C99 FAM by dropping the zero makes the ICE go away
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (3 preceding siblings ...)
2023-04-30 20:41 ` arsen at gcc dot gnu.org
@ 2023-07-27 9:24 ` rguenth at gcc dot gnu.org
2023-08-03 14:26 ` dmalcolm at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-27 9:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|13.2 |13.3
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 13.2 is being released, retargeting bugs to GCC 13.3.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (4 preceding siblings ...)
2023-07-27 9:24 ` rguenth at gcc dot gnu.org
@ 2023-08-03 14:26 ` dmalcolm at gcc dot gnu.org
2023-08-03 14:47 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-08-03 14:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Possibly a dupe of PR analyzer/110882
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (5 preceding siblings ...)
2023-08-03 14:26 ` dmalcolm at gcc dot gnu.org
@ 2023-08-03 14:47 ` cvs-commit at gcc dot gnu.org
2023-08-03 14:53 ` dmalcolm at gcc dot gnu.org
2024-05-09 17:11 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-03 14:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
--- Comment #6 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:f80efa49b7a1639b0d6e9bcea8cf38850d037a02
commit r14-2957-gf80efa49b7a1639b0d6e9bcea8cf38850d037a02
Author: David Malcolm <dmalcolm@redhat.com>
Date: Thu Aug 3 10:47:22 2023 -0400
testsuite, analyzer: add test case [PR108171]
The ICE in PR analyzer/108171 appears to be a dup of the recently fixed
PR analyzer/110882 and is likewise fixed by it; adding this test case.
gcc/testsuite/ChangeLog:
PR analyzer/108171
* gcc.dg/analyzer/pr108171.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (6 preceding siblings ...)
2023-08-03 14:47 ` cvs-commit at gcc dot gnu.org
@ 2023-08-03 14:53 ` dmalcolm at gcc dot gnu.org
2024-05-09 17:11 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-08-03 14:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|ASSIGNED |RESOLVED
--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this; marking it as a duplicate.
*** This bug has been marked as a duplicate of bug 110882 ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug analyzer/108171] [13/14 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
` (7 preceding siblings ...)
2023-08-03 14:53 ` dmalcolm at gcc dot gnu.org
@ 2024-05-09 17:11 ` cvs-commit at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-09 17:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108171
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by David Malcolm
<dmalcolm@gcc.gnu.org>:
https://gcc.gnu.org/g:44968a0e00f656e9bb3e504bb2fa1a8282002015
commit r13-8748-g44968a0e00f656e9bb3e504bb2fa1a8282002015
Author: David Malcolm <dmalcolm@redhat.com>
Date: Thu May 9 13:09:28 2024 -0400
testsuite, analyzer: add test case [PR108171]
The ICE in PR analyzer/108171 appears to be a dup of the recently fixed
PR analyzer/110882 and is likewise fixed by it; adding this test case.
gcc/testsuite/ChangeLog:
PR analyzer/108171
* gcc.dg/analyzer/pr108171.c: New test.
(cherry picked from commit r14-2957-gf80efa49b7a163)
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-05-09 17:11 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 6:30 [Bug analyzer/108171] New: [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 asolokha at gmx dot com
2022-12-19 8:30 ` [Bug analyzer/108171] " rguenth at gcc dot gnu.org
2022-12-19 14:25 ` [Bug analyzer/108171] [13 Regression] ICE in binding_key::make, at analyzer/store.cc:132 since r13-4529-gdfe2ef7f2b6cac70 marxin at gcc dot gnu.org
2023-04-26 6:57 ` [Bug analyzer/108171] [13/14 " rguenth at gcc dot gnu.org
2023-04-30 20:41 ` arsen at gcc dot gnu.org
2023-07-27 9:24 ` rguenth at gcc dot gnu.org
2023-08-03 14:26 ` dmalcolm at gcc dot gnu.org
2023-08-03 14:47 ` cvs-commit at gcc dot gnu.org
2023-08-03 14:53 ` dmalcolm at gcc dot gnu.org
2024-05-09 17:11 ` cvs-commit 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).