Bug 2259937 - gcc-14 aarch64 ICEs in F40 mass rebuild
Summary: gcc-14 aarch64 ICEs in F40 mass rebuild
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: aarch64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-23 21:33 UTC by Yaakov Selkowitz
Modified: 2024-01-26 14:28 UTC (History)
11 users (show)

Fixed In Version: gcc-14.0.1-0.3.fc40
Clone Of:
Environment:
Last Closed: 2024-01-26 07:52:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
preprocessed source ccp (610.47 KB, text/x-csrc)
2024-01-24 01:38 UTC, Marek Polacek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 113485 0 P1 NEW [14 regression] ICE with -fno-guess-branch-probability on aarch64 starting with r14-7187-g74e3e839ab2d36 2024-01-24 03:19:16 UTC
GNU Compiler Collection 113572 0 P1 NEW [14 Regression] aarch64: internal compiler error in aarch64_sve::vector_cst_all_same 2024-01-24 03:15:29 UTC
GNU Compiler Collection 113573 0 P3 RESOLVED aarch64: internal compiler error in mark_label_nuses 2024-01-24 03:18:59 UTC

Description Yaakov Selkowitz 2024-01-23 21:33:44 UTC
Several ICEs have been seen on aarch64 with gcc-14 during the F40 mass rebuild.  These examples are from the ELN (RHEL 10) package set, and there might be more across Fedora.


dpdk: https://kojipkgs.fedoraproject.org//work/tasks/7693/111987693/build.log

during GIMPLE pass: ccp
../drivers/net/hns3/hns3_rxtx_vec_sve.c: In function ‘hns3_recv_burst_vec_sve’:
../drivers/net/hns3/hns3_rxtx_vec_sve.c:505:1: internal compiler error: Segmentation fault
  505 | }
      | ^



libjpeg-turbo: https://koji.fedoraproject.org/koji/taskinfo?taskID=112078865

during RTL pass: split1
In file included from /builddir/build/BUILD/libjpeg-turbo-2.1.4/simd/arm/jccolor-neon.c:57:
/builddir/build/BUILD/libjpeg-turbo-2.1.4/simd/arm/aarch64/jccolext-neon.c: In function ‘jsimd_rgb_ycc_convert_neon’:
/builddir/build/BUILD/libjpeg-turbo-2.1.4/simd/arm/aarch64/jccolext-neon.c:316:1: internal compiler error: Segmentation fault
  316 | }
      | ^



libwebp: https://koji.fedoraproject.org/koji/taskinfo?taskID=112083581

during RTL pass: split1
/builddir/build/BUILD/libwebp-1.3.2/src/dsp/yuv_neon.c: In function ‘ConvertARGBToY_NEON’:
/builddir/build/BUILD/libwebp-1.3.2/src/dsp/yuv_neon.c:85:1: internal compiler error: Segmentation fault
   85 | }
      | ^

Comment 1 Marek Polacek 2024-01-24 01:38:18 UTC
Created attachment 2009999 [details]
preprocessed source ccp

.i file for the GIMPLE ccp problem

$ ./cc1 -quiet -Iinclude /tmp/ccKksbGo.out -O2 -march=armv8.2-a+sve -w
during GIMPLE pass: ccp
../drivers/net/hns3/hns3_rxtx_vec_sve.c: In function ‘hns3_recv_burst_vec_sve’:
../drivers/net/hns3/hns3_rxtx_vec_sve.c:505:1: internal compiler error: Segmentation fault
0x10534af crash_signal
	/home/mpolacek/src/gcc/gcc/toplev.cc:317
0x7f6eb421799f ???
	/usr/src/debug/glibc-2.38-14.fc39.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xc58d3a location_wrapper_p(tree_node const*)
	/home/mpolacek/src/gcc/gcc/tree.h:4379
0xc58d3a tree_strip_any_location_wrapper(tree_node*)
	/home/mpolacek/src/gcc/gcc/tree.h:4391
0xc58d3a operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:3122
0xc5be00 operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:4183
0xc5be00 operand_compare::verify_hash_value(tree_node const*, tree_node const*, unsigned int, bool*)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:4163
0xc5be00 operand_compare::verify_hash_value(tree_node const*, tree_node const*, unsigned int, bool*)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:4155
0xc5c807 operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:3119
0xc5c807 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
	/home/mpolacek/src/gcc/gcc/fold-const.cc:4194
0x1505f77 aarch64_sve::vector_cst_all_same(tree_node*, unsigned int)
	/home/mpolacek/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3477
0x150b92f aarch64_sve::gimple_folder::redirect_pred_x()
	/home/mpolacek/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3591
0x150b9ab aarch64_sve::gimple_folder::fold()
	/home/mpolacek/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3672
0x150ba81 aarch64_sve::gimple_fold_builtin(unsigned int, gimple_stmt_iterator*, gcall*)
	/home/mpolacek/src/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:4743
0x141baf2 aarch64_gimple_fold_builtin
	/home/mpolacek/src/gcc/gcc/config/aarch64/aarch64.cc:15499
0xce1490 gimple_fold_call
	/home/mpolacek/src/gcc/gcc/gimple-fold.cc:5669
0xce350b fold_stmt_1
	/home/mpolacek/src/gcc/gcc/gimple-fold.cc:6431
0x12393be substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
	/home/mpolacek/src/gcc/gcc/tree-ssa-propagate.cc:859
0x1dcddee dom_walker::walk(basic_block_def*)
	/home/mpolacek/src/gcc/gcc/domwalk.cc:311
0x1238495 substitute_and_fold_engine::substitute_and_fold(basic_block_def*)
	/home/mpolacek/src/gcc/gcc/tree-ssa-propagate.cc:999

Comment 2 Marek Polacek 2024-01-24 02:16:18 UTC
I've opened https://gcc.gnu.org/PR113572 for the first one.

Comment 3 Marek Polacek 2024-01-24 03:15:16 UTC
And https://gcc.gnu.org/PR113573 for the 2nd.

Comment 4 Jakub Jelinek 2024-01-26 07:52:10 UTC
These should be fixed in rawhide already.

Comment 5 Yaakov Selkowitz 2024-01-26 14:28:28 UTC
Confirmed; all three packages mentioned above successfully build on all arches with gcc-14.0.1-0.3.


Note You need to log in before you can comment on or make changes to this bug.