[Bug middle-end/126901] New: [17 Regression] internal compiler error: Segmentation fault

"hjl.tools at gmail dot com via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126901

            Bug ID: 126901
           Summary: [17 Regression] internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 65346
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65346&action=edit
A testcase

[hjl@gnu-zen4-1 gcc]$ ./xgcc -B./ -S -O2 -march=x86-64 ~/bugs/gcc/cvise-1/bad.c
during GIMPLE pass: thread
/export/home/hjl/bugs/gcc/cvise-1/bad.c: In function ‘collate_output___o_2’:
/export/home/hjl/bugs/gcc/cvise-1/bad.c:20:1: internal compiler error:
Segmentation fault
   20 | collate_output___o_2 (void)
      | ^~~~~~~~~~~~~~~~~~~~
0x4a1766e internal_error(char const*, ...)
        /export/gnu/import/git/sources/gcc/gcc/diagnostic-global-context.cc:787
0x286c91d crash_signal
        /export/gnu/import/git/sources/gcc/gcc/toplev.cc:325
0x2ae57ef path_range_query::ssa_range_in_phi(vrange&, gphi*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:262
0x2ae5b0a path_range_query::range_defined_in_block(vrange&, tree_node*,
basic_block_def*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:303
0x2ae529c path_range_query::internal_range_of_expr(vrange&, tree_node*,
gimple*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:160
0x2ae53f7 path_range_query::range_of_expr(vrange&, tree_node*, gimple*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:180
0x233e2e9 fur_stmt::get_operand(vrange&, tree_node*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-fold.cc:145
0x23408c1 fold_using_range::range_of_range_op(vrange&,
gimple_range_op_handler&, fur_source&)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-fold.cc:817
0x233fec1 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&,
tree_node*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-fold.cc:706
0x233e8b6 fold_range(vrange&, gimple*, range_query*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-fold.cc:321
0x2ae7241 path_range_query::range_of_stmt(vrange&, gimple*, tree_node*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:685
0x2ae5b58 path_range_query::range_defined_in_block(vrange&, tree_node*,
basic_block_def*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:309
0x2ae529c path_range_query::internal_range_of_expr(vrange&, tree_node*,
gimple*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:160
0x2ae53f7 path_range_query::range_of_expr(vrange&, tree_node*, gimple*)
        /export/gnu/import/git/sources/gcc/gcc/gimple-range-path.cc:180
0x4827bf1 gimple_match_range_of_expr
        /export/gnu/import/git/sources/gcc/gcc/gimple-match-head.cc:532
0x487fc5a gimple_simplify_PLUS_EXPR(gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*)
       
/export/build/gnu/tools-build/gcc-debug/build-x86_64-linux/gcc/gimple-match-1.cc:19695
0x3591f4a gimple_simplify(gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*)
       
/export/build/gnu/tools-build/gcc-debug/build-x86_64-linux/gcc/gimple-match-7.cc:25870
0x36f6191 gimple_resimplify2
        /export/gnu/import/git/sources/gcc/gcc/gimple-match-exports.cc:1029
0x36f38da gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*))
        /export/gnu/import/git/sources/gcc/gcc/gimple-match-exports.cc:113
0x31c5525 gimple_simplify_POINTER_PLUS_EXPR(gimple_match_op*, gimple**,
tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*)
       
/export/build/gnu/tools-build/gcc-debug/build-x86_64-linux/gcc/gimple-match-3.cc:12679
./cc1 -quiet -iprefix
/export/build/gnu/tools-build/gcc-debug/build-x86_64-linux/gcc/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
-isystem ./include -isystem ./include-fixed
/export/home/hjl/bugs/gcc/cvise-1/bad.c -quiet -dumpbase bad.c -dumpbase-ext .c
-march=x86-64 -mtls-dialect=gnu2 -O2 -o bad.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[hjl@gnu-zen4-1 gcc]$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.