https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120059
Bug ID: 120059 Summary: [16 regression] ICE when building mesa in vartrack Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- ``` Program received signal SIGSEGV, Segmentation fault. avoid_constant_pool_reference (x=x@entry=0x0) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:201 201 poly_int64 offset = 0; #0 avoid_constant_pool_reference (x=x@entry=0x0) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:201 #1 0x00005555565ddac2 in simplify_context::simplify_unary_operation (this=0x7fffffffc250, code=NOT, mode=E_QImode, op=0x0, op_mode=E_QImode) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:887 #2 simplify_context::simplify_gen_unary (this=this@entry=0x7fffffffc250, code=code@entry=NOT, mode=mode@entry=E_QImode, op=0x0, op_mode=op_mode@entry=E_QImode) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:360 #3 0x00005555565e1dc1 in simplify_gen_unary (code=NOT, mode=E_QImode, op=<optimized out>, op_mode=E_QImode) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/rtl.h:3540 #4 simplify_with_subreg_not (binop=binop@entry=AND, mode=mode@entry=E_QImode, op0=op0@entry=0x7ffff30a4cc0, op1=op1@entry=0x7ffff7209500) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:3066 #5 0x00005555565cacf0 in simplify_context::simplify_binary_operation_1 (this=0x7fffffffc510, code=AND, mode=E_QImode, op0=0x7ffff30a4cc0, op1=0x7ffff7209500, trueop0=<optimized out>, trueop1=0x7ffff7209500) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:4334 #6 0x00005555565d2f47 in simplify_context::simplify_binary_operation (this=0x7fffffffc510, code=AND, mode=E_QImode, op0=0x7ffff30a4cc0, op1=0x7ffff7209500) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:2767 #7 0x00005555565d6681 in simplify_binary_operation (code=<optimized out>, mode=E_QImode, op0=<optimized out>, op1=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/rtl.h:3510 #8 simplify_rtx (x=x@entry=0x7ffff30a4ca8) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/simplify-rtx.cc:8500 #9 0x000055555604e983 in cselib_expand_value_rtx_1 (orig=0x7ffff33e5630, evd=0x7fffffffc650, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2166 #10 0x000055555604e2cb in cselib_expand_value_rtx_1 (orig=0x7ffff33e5648, evd=0x7fffffffc650, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2063 #11 0x000055555604f883 in cselib_expand_value_rtx_cb (orig=orig@entry=0x7ffff33e5648, regs_active=regs_active@entry=0x5555595a80a8, max_depth=max_depth@entry=2147483647, cb=cb@entry=0x555556a33fe0 <vt_expand_loc_callback(rtx, bitmap, int, void*)>, data=data@entry=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:1873 #12 0x0000555556a33b97 in vt_expand_var_loc_chain (var=var@entry=0x55555a2ed190, regs=regs@entry=0x5555595a80a8, data=data@entry=0x7fffffffce20, pendrecp=pendrecp@entry=0x7fffffffc737) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8411 #13 0x0000555556a34482 in vt_expand_loc_callback (x=0x555559a85948, regs=0x5555595a80a8, max_depth=<optimized out>, data=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8574 #14 0x000055555604e766 in cselib_expand_value_rtx_1 (orig=0x555559a85948, evd=0x7fffffffc8b0, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2025 #15 0x000055555604e2cb in cselib_expand_value_rtx_1 (orig=0x7ffff33e56a8, evd=0x7fffffffc8b0, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2063 #16 0x000055555604f883 in cselib_expand_value_rtx_cb (orig=orig@entry=0x7ffff33e56a8, regs_active=regs_active@entry=0x5555595a80a8, max_depth=max_depth@entry=2147483647, cb=cb@entry=0x555556a33fe0 <vt_expand_loc_callback(rtx, bitmap, int, void*)>, data=data@entry=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:1873 #17 0x0000555556a33b97 in vt_expand_var_loc_chain (var=var@entry=0x55555a2f1990, regs=regs@entry=0x5555595a80a8, data=data@entry=0x7fffffffce20, pendrecp=pendrecp@entry=0x7fffffffc997) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8411 #18 0x0000555556a34482 in vt_expand_loc_callback (x=0x555559a85960, regs=0x5555595a80a8, max_depth=<optimized out>, data=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8574 #19 0x000055555604e766 in cselib_expand_value_rtx_1 (orig=0x555559a85960, evd=0x7fffffffcb10, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2025 #20 0x000055555604e2cb in cselib_expand_value_rtx_1 (orig=0x7ffff33ccb30, evd=0x7fffffffcb10, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2063 #21 0x000055555604f883 in cselib_expand_value_rtx_cb (orig=orig@entry=0x7ffff33ccb30, regs_active=regs_active@entry=0x5555595a80a8, max_depth=max_depth@entry=2147483647, cb=cb@entry=0x555556a33fe0 <vt_expand_loc_callback(rtx, bitmap, int, void*)>, data=data@entry=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:1873 #22 0x0000555556a33b97 in vt_expand_var_loc_chain (var=var@entry=0x55555a2ebae0, regs=regs@entry=0x5555595a80a8, data=data@entry=0x7fffffffce20, pendrecp=pendrecp@entry=0x7fffffffcbf7) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8411 #23 0x0000555556a34482 in vt_expand_loc_callback (x=0x555559a85978, regs=0x5555595a80a8, max_depth=<optimized out>, data=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8574 #24 0x000055555604e766 in cselib_expand_value_rtx_1 (orig=0x555559a85978, evd=0x7fffffffcce0, max_depth=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:2025 #25 0x000055555604f883 in cselib_expand_value_rtx_cb (orig=orig@entry=0x555559a85978, regs_active=regs_active@entry=0x5555595a80a8, max_depth=max_depth@entry=2147483647, cb=cb@entry=0x555556a33fe0 <vt_expand_loc_callback(rtx, bitmap, int, void*)>, data=data@entry=0x7fffffffce20) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cselib.cc:1873 #26 0x0000555556a33b97 in vt_expand_var_loc_chain (var=var@entry=0x55555a2e7190, regs=0x5555595a80a8, data=data@entry=0x7fffffffce20, pendrecp=pendrecp@entry=0x0) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8411 #27 0x0000555556a34ea4 in vt_expand_1pvar (var=<optimized out>, vars=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8687 #28 emit_note_insn_var_location (varp=varp@entry=0x555559e30300, data=data@entry=0x7fffffffd020) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:8741 #29 0x0000555556a3c129 in hash_table<variable_hasher, false, xcallocator>::traverse_noresize<emit_note_data*, &(emit_note_insn_var_location(variable**, emit_note_data*))> (this=<optimized out>, argument=0x7fffffffd020) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:9101 #30 hash_table<variable_hasher, false, xcallocator>::traverse<emit_note_data*, &(emit_note_insn_var_location(variable**, emit_note_data*))> (this=<optimized out>, argument=0x7fffffffd020) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/hash-table.h:1194 #31 emit_notes_for_changes (insn=insn@entry=0x7ffff343aec0, where=where@entry=EMIT_NOTE_BEFORE_INSN, vars=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:9101 #32 0x0000555556a418bf in emit_notes_in_bb (bb=0x7ffff492c300, set=0x7fffffffd190) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:9548 #33 vt_emit_notes () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:9594 #34 0x0000555556a43727 in variable_tracking_main_1 () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:10565 #35 0x0000555556a43830 in variable_tracking_main () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:10579 #36 (anonymous namespace)::pass_variable_tracking::execute (this=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/var-tracking.cc:10616 #37 0x00005555564a3f49 in execute_one_pass (pass=pass@entry=0x55555948ce90) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2659 #38 0x00005555564a4850 in execute_pass_list_1 (pass=0x55555948ce90) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2768 #39 0x00005555564a4862 in execute_pass_list_1 (pass=0x55555948cd70) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2769 #40 0x00005555564a4862 in execute_pass_list_1 (pass=0x55555948ad70) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2769 #41 0x00005555564a488d in execute_pass_list (fn=0x7ffff4b5b680, pass=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2779 #42 0x0000555556039e50 in cgraph_node::expand (this=0x7ffff4b56bb0) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/context.h:48 #43 cgraph_node::expand (this=0x7ffff4b56bb0) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:1812 #44 0x000055555603bcd9 in expand_all_functions () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:2042 #45 symbol_table::compile (this=0x7ffff7206000) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:2418 #46 0x000055555603e432 in symbol_table::compile (this=0x7ffff7206000) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:2329 #47 symbol_table::finalize_compilation_unit (this=0x7ffff7206000) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:2607 #48 0x00005555566112fb in compile_file () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:478 #49 0x0000555555e09278 in do_compile () at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:2211 #50 toplev::main (this=0x7fffffffd776, argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/toplev.cc:2374 ``` --- ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage.notmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python --enable-libphobos --enable-languages=c,c++,d,fortran,ada,cobol --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 16.0.9999 p, commit 93f36c1b921e531fd4cdc6aee7af55e1d6eb9d39' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-offload-defaulted --enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp --enable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --with-build-config=bootstrap-cet Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250501 (experimental) 79aa2a283a8d3327ff4d6dca77e81d5b1ac3a01e (Gentoo Hardened 16.0.9999 p, commit 93f36c1b921e531fd4cdc6aee7af55e1d6eb9d39) ```