https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124400
Bug ID: 124400
Summary: [16 regression]
gcc.dg/plugin/cpython-plugin-test-PyList_Append.c etc.
FAIL
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: plugins
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: sparc-sun-solaris2.11
Between 20260303 (40ee8d4e9f95a2217c1e0d72477522f98807f118) and 20260304
(4ef3d71a08aa167a5b73bc073cdfb1a6784e5de7),
several tests started to FAIL on 32-bit Solaris/SPARC:
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 17)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 28)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 36)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 39)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 41)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for warnings, line 42)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so at line 18 (test for warnings, line 17)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so at line 43 (test for warnings, line 42)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (internal compiler error: Segmentation
Fault)
+FAIL: gcc.dg/plugin/cpython-plugin-test-PyList_Append.c
-fplugin=./analyzer_cpython_plugin.so (test for excess errors)
and similarly gcc.dg/plugin/cpython-plugin-test-PyList_New.c and
gcc.dg/plugin/cpython-plugin-test-PyLong_FromLong.c.
during IPA pass: analyzer
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/cpython-plugin-test-PyList_Append.c:78:1:
internal compiler error: Segmentation Fault
0x2235e63 internal_error(char const*, ...)
/vol/gcc/src/hg/master/local/gcc/diagnostic-global-context.cc:787
0x114c7cf crash_signal
/vol/gcc/src/hg/master/local/gcc/toplev.cc:325
0xa0da90 hash_table_mod1(unsigned int, unsigned int)
/vol/gcc/src/hg/master/local/gcc/hash-table.h:344
0xa0da90 hash_table<hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::hash_entry, false, xcallocator>::find_with_hash(tree_node* const&, unsigned
int)
/vol/gcc/src/hg/master/local/gcc/hash-table.h:985
0xfb5a2ccb hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::get(tree_node* const&)
/vol/gcc/src/hg/master/local/gcc/testsuite/../../gcc/hash-map.h:191
0xfb5a2ccb get_stashed_type_by_name
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc:1136
0xfb5a2d8b init_py_structs
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc:1161
0xfb5a2d8b
ana::cpython_analyzer_events_subscriber::on_message(gcc::topics::analyzer_events::on_ana_init
const&)
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc:1201
0x16b5803 void
pub_sub::channel<gcc::topics::analyzer_events::subscriber>::publish<ana::impl_on_ana_init>(ana::impl_on_ana_init
const&) const
/vol/gcc/src/hg/master/local/gcc/pub-sub.h:49
0x16b5803 ana::impl_run_checkers(ana::logger*)
/vol/gcc/src/hg/master/local/gcc/analyzer/engine.cc:5248
0x16b662b ana::run_checkers()
/vol/gcc/src/hg/master/local/gcc/analyzer/engine.cc:5363
0x16a5ceb execute
/vol/gcc/src/hg/master/local/gcc/analyzer/analyzer-pass.cc:81
Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
hash_table<hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::hash_entry, false, xcallocator>::find_with_hash (this=0xfafb5d60,
comparable=@0xffbfb314: 0xfae377d8, hash=4284247803)
at /vol/gcc/src/hg/master/local/gcc/hash-table.h:985
985 hashval_t index = hash_table_mod1 (hash, m_size_prime_index);
(gdb) display/i $pc
1: x/i $pc
=> 0xa0da90
<_ZN10hash_tableIN8hash_mapIP9tree_nodeS2_21simple_hashmap_traitsI19default_hash_traitsIS2_ES2_EE10hash_entryELb0E11xcallocatorE14find_with_hashERKS2_j+48>:
ld [ %i3 + %l0 ], %l2
(gdb) p/x $i3
$1 = 0x57e2c4
(gdb) p/x $l0
$2 = 0x5a5a5a50
That address is unmapped indeed.
I wonder if this might be related to PR testsuite/112520.