public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040
@ 2021-01-11 17:23 ortmann at posteo dot de
2021-01-11 17:26 ` [Bug analyzer/98628] " ortmann at posteo dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ortmann at posteo dot de @ 2021-01-11 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
Bug ID: 98628
Summary: internal compiler error: in get_or_create_cluster, at
analyzer/store.cc:2040
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: ortmann at posteo dot de
Target Milestone: ---
Version: gcc (GCC) 11.0.0 20210110 (experimental)
System type: GNU/Linux kernel 5.10.5 glibc 2.32
Options given when GCC was configured/built:
--prefix=/home/michael/opt/gcc-11-20210110 --enable-languages=c
--disable-multilib --with-system-zlib
Trigger:
git clone https://github.com/eggheads/eggdrop.git
cd eggdrop/
git checkout 94d2a4fabfd47deb8d3ae59bea769eb3e792ef07
CC="/home/michael/opt/gcc-11-20210110/bin/gcc -fanalyzer" ./configure
make config
make
Note: eggdrop requires tcl to be installed also.
Compiler output:
[...]
/home/michael/opt/gcc-11-20210110/bin/gcc -fanalyzer -g -O2 -pipe -Wall -I..
-I.. -DHAVE_CONFIG_H -I/usr/include -g3 -DDEBUG -DDEBUG_ASSERT -DDEBUG_MEM
-DDEBUG_DNS -c misc.c
during IPA pass: analyzer
misc.c:958:25: internal compiler error: in get_or_create_cluster, at
analyzer/store.cc:2040
958 | *writeidx++ = ' ';
| ~~~~~~~~~~~~^~~~~
0x76f191 ana::store::get_or_create_cluster(ana::region const*)
../../gcc/analyzer/store.cc:2040
0x11b92f9 ana::binding_cluster::make_unknown_relative_to(ana::binding_cluster
const*, ana::store*, ana::store_manager*)
../../gcc/analyzer/store.cc:1326
0x11bac4e ana::binding_cluster::can_merge_p(ana::binding_cluster const*,
ana::binding_cluster const*, ana::binding_cluster*, ana::store*,
ana::store_manager*, ana::model_merger*)
../../gcc/analyzer/store.cc:1208
0x11bb746 ana::store::can_merge_p(ana::store const*, ana::store const*,
ana::store*, ana::store_manager*, ana::model_merger*)
../../gcc/analyzer/store.cc:2111
0x1189e4c ana::region_model::can_merge_with_p(ana::region_model const&,
ana::program_point const&, ana::region_model*) const
../../gcc/analyzer/region-model.cc:2954
0x117fa0a ana::program_state::can_merge_with_p(ana::program_state const&,
ana::program_point const&, ana::program_state*) const
../../gcc/analyzer/program-state.cc:1083
0x116f36d
ana::exploded_graph::maybe_process_run_of_before_supernode_enodes(ana::exploded_node*)
../../gcc/analyzer/engine.cc:2735
0x1170657 ana::exploded_graph::process_worklist()
../../gcc/analyzer/engine.cc:2443
0x11724bb ana::impl_run_checkers(ana::logger*)
../../gcc/analyzer/engine.cc:4739
0x11732ce ana::run_checkers()
../../gcc/analyzer/engine.cc:4810
0x1165c58 execute
../../gcc/analyzer/analyzer-pass.cc:87
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[1]: *** [Makefile:83: misc.o] Error 1
make[1]: Leaving directory '/tmp/eggdrop/src'
make: *** [Makefile:251: debug] Error 2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/98628] internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
@ 2021-01-11 17:26 ` ortmann at posteo dot de
2021-01-11 18:30 ` [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a marxin at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ortmann at posteo dot de @ 2021-01-11 17:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
--- Comment #1 from Michael Ortmann <ortmann at posteo dot de> ---
Created attachment 49939
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49939&action=edit
The preprocessed file (*.i*) that triggers the bug
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
2021-01-11 17:26 ` [Bug analyzer/98628] " ortmann at posteo dot de
@ 2021-01-11 18:30 ` marxin at gcc dot gnu.org
2021-01-11 19:50 ` dmalcolm at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11 18:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-01-11
CC| |marxin at gcc dot gnu.org
Summary|internal compiler error: in |[11 Regression] ICE in
|get_or_create_cluster, at |get_or_create_cluster, at
|analyzer/store.cc:2040 |analyzer/store.cc:2040
| |since
| |r11-6513-gbe6c485b24f2b47a
Ever confirmed|0 |1
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat misc.i
struct chanset_t help_subst_chan;
struct chanset_t *help_subst_chan_0_0;
struct chanset_t {
struct chanset_t *next;
char dname[];
} help_subst() {
char *writeidx;
for (;; help_subst_chan = *help_subst_chan_0_0) {
my_strcpy(help_subst_chan.next->dname);
if (help_subst_chan_0_0) {
writeidx++;
*writeidx++ = ' ';
}
}
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
2021-01-11 17:26 ` [Bug analyzer/98628] " ortmann at posteo dot de
2021-01-11 18:30 ` [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a marxin at gcc dot gnu.org
@ 2021-01-11 19:50 ` dmalcolm at gcc dot gnu.org
2021-01-12 1:29 ` cvs-commit at gcc dot gnu.org
2021-01-12 2:12 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-01-11 19:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks; I can reproduce it and am debugging it now.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
` (2 preceding siblings ...)
2021-01-11 19:50 ` dmalcolm at gcc dot gnu.org
@ 2021-01-12 1:29 ` cvs-commit at gcc dot gnu.org
2021-01-12 2:12 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-12 1:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
--- Comment #4 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:ab88f3607233376c3145c320e92e71943a495bb5
commit r11-6603-gab88f3607233376c3145c320e92e71943a495bb5
Author: David Malcolm <dmalcolm@redhat.com>
Date: Mon Jan 11 20:23:41 2021 -0500
analyzer: fix ICE merging dereferencing unknown ptrs [PR98628]
gcc/analyzer/ChangeLog:
PR analyzer/98628
* store.cc (binding_cluster::make_unknown_relative_to): Don't mark
dereferenced unknown pointers as having escaped.
gcc/testsuite/ChangeLog:
PR analyzer/98628
* gcc.dg/analyzer/pr98628.c: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
` (3 preceding siblings ...)
2021-01-12 1:29 ` cvs-commit at gcc dot gnu.org
@ 2021-01-12 2:12 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-01-12 2:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98628
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by the above commit.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-12 2:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 17:23 [Bug analyzer/98628] New: internal compiler error: in get_or_create_cluster, at analyzer/store.cc:2040 ortmann at posteo dot de
2021-01-11 17:26 ` [Bug analyzer/98628] " ortmann at posteo dot de
2021-01-11 18:30 ` [Bug analyzer/98628] [11 Regression] ICE in get_or_create_cluster, at analyzer/store.cc:2040 since r11-6513-gbe6c485b24f2b47a marxin at gcc dot gnu.org
2021-01-11 19:50 ` dmalcolm at gcc dot gnu.org
2021-01-12 1:29 ` cvs-commit at gcc dot gnu.org
2021-01-12 2:12 ` 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).