public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874
@ 2022-08-16 4:46 asolokha at gmx dot com
2022-08-16 6:53 ` [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1 marxin at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: asolokha at gmx dot com @ 2022-08-16 4:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
Bug ID: 106634
Summary: [13 Regression] ICE in get_region_for_local, at
analyzer/region.cc:874
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 20220814 snapshot (g:fe4dc4f553d8639b0ce3465e5e6dcf61c1ae9752) ICEs
when compiling gcc/testsuite/gcc.dg/torture/pr92088-1.c w/ -fanalyzer:
% gcc-13.0.0 -fanalyzer -c gcc/testsuite/gcc.dg/torture/pr92088-1.c
during IPA pass: analyzer
gcc/testsuite/gcc.dg/torture/pr92088-1.c: In function 'g':
gcc/testsuite/gcc.dg/torture/pr92088-1.c:7:11: internal compiler error: in
get_region_for_local, at analyzer/region.cc:874
7 | return p[9];
| ~^~~
0x7c7dd8 ana::frame_region::get_region_for_local(ana::region_model_manager*,
tree_node*, ana::region_model_context const*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region.cc:874
0x12d23f2 ana::region_model::get_lvalue(ana::path_var,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:2618
0x12cebc7 ana::region_model::get_rvalue_1(ana::path_var,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:2677
0x12cf04c ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:2752
0x12ce26e ana::region_model::check_region_bounds(ana::region const*,
ana::access_direction, ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:1651
0x12ce73b ana::region_model::check_region_access(ana::region const*,
ana::access_direction, ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:3236
0x12ce73b ana::region_model::check_region_for_read(ana::region const*,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:3266
0x12ce73b ana::region_model::get_store_value(ana::region const*,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:2850
0x12cf04c ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:2752
0x12d61c7 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/region-model.cc:1089
0x12aaf48 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_p20220814/work/gcc-13-20220814/gcc/analyzer/engine.cc:1430
0x12addef ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/engine.cc:3868
0x12aee1a ana::exploded_graph::process_worklist()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/engine.cc:3271
0x12b14bc ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/engine.cc:5912
0x12b250e ana::run_checkers()
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/engine.cc:5986
0x12a14b8 execute
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220814/work/gcc-13-20220814/gcc/analyzer/analyzer-pass.cc:87
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
@ 2022-08-16 6:53 ` marxin at gcc dot gnu.org
2022-08-16 8:00 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-08-16 6:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13 Regression] ICE in |[13 Regression] ICE in
|get_region_for_local, at |get_region_for_local, at
|analyzer/region.cc:874 |analyzer/region.cc:874
| |since
| |r13-2029-g7e3b45befdbbf1a1
Ever confirmed|0 |1
Last reconfirmed| |2022-08-16
CC| |marxin at gcc dot gnu.org,
| |tlange at gcc dot gnu.org
Status|UNCONFIRMED |NEW
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-2029-g7e3b45befdbbf1a1.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
2022-08-16 6:53 ` [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1 marxin at gcc dot gnu.org
@ 2022-08-16 8:00 ` rguenth at gcc dot gnu.org
2022-08-16 15:17 ` dmalcolm at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-08-16 8:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Priority|P3 |P4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
2022-08-16 6:53 ` [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1 marxin at gcc dot gnu.org
2022-08-16 8:00 ` rguenth at gcc dot gnu.org
@ 2022-08-16 15:17 ` dmalcolm at gcc dot gnu.org
2023-04-26 6:56 ` [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-08-16 15:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=106441
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
It's failing this assertion in frame_region::get_region_for_local:
gcc_assert (DECL_CONTEXT (expr) == m_fun->decl);
Probably relates to PR 106441, in that the analyzer doesn't yet have any
knowledge of GCC's nested functions extension to C.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
` (2 preceding siblings ...)
2022-08-16 15:17 ` dmalcolm at gcc dot gnu.org
@ 2023-04-26 6:56 ` rguenth at gcc dot gnu.org
2023-07-27 9:23 ` rguenth at gcc dot gnu.org
2024-04-22 16:50 ` dmalcolm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-26 6:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|13.0 |13.2
--- Comment #3 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] 7+ messages in thread
* [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
` (3 preceding siblings ...)
2023-04-26 6:56 ` [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension " rguenth at gcc dot gnu.org
@ 2023-07-27 9:23 ` rguenth at gcc dot gnu.org
2024-04-22 16:50 ` dmalcolm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-27 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
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] 7+ messages in thread
* [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension since r13-2029-g7e3b45befdbbf1a1
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
` (4 preceding siblings ...)
2023-07-27 9:23 ` rguenth at gcc dot gnu.org
@ 2024-04-22 16:50 ` dmalcolm at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2024-04-22 16:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106634
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iamanonymous.cs at gmail dot com
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
*** Bug 114778 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-04-22 16:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 4:46 [Bug analyzer/106634] New: [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 asolokha at gmx dot com
2022-08-16 6:53 ` [Bug analyzer/106634] [13 Regression] ICE in get_region_for_local, at analyzer/region.cc:874 since r13-2029-g7e3b45befdbbf1a1 marxin at gcc dot gnu.org
2022-08-16 8:00 ` rguenth at gcc dot gnu.org
2022-08-16 15:17 ` dmalcolm at gcc dot gnu.org
2023-04-26 6:56 ` [Bug analyzer/106634] [13/14 Regression] ICE in get_region_for_local with nested function extension " rguenth at gcc dot gnu.org
2023-07-27 9:23 ` rguenth at gcc dot gnu.org
2024-04-22 16:50 ` 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).