FS#71263 - [gcc] internal compiler error: Segmentation fault

Attached to Project: Arch Linux
Opened by Heinrich Heinzer (hheinzer) - Tuesday, 15 June 2021, 11:18 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 16 June 2021, 12:43 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I am getting a segmentation fault with gcc 11.1.0.
With gcc 10.2.0-3 (from community repository) I can compile the same code without any issues.


$ gcc polytools.c -o polytools.o
during RTL pass: expand
polytools.c: In function ‘poly_gauss_jacobi_h’:
polytools.c:128:3: internal compiler error: Segmentation fault
128 | poly_jacobi_f_d(1, &z, &P_z, 0, n, alpha, beta);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x1614f98 internal_error(char const*, ...)
???:0
0x65c488 attr_access::array_as_string[abi:cxx11](tree_node*) const
???:0
0x775dc9 expand_call(tree_node*, rtx_def*, int)
???:0
0x89252e expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.


Steps to reproduce:

gcc polytools.c

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 16 June 2021, 12:43 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#71271 
Comment by Heinrich Heinzer (hheinzer) - Tuesday, 15 June 2021, 11:20 GMT
*edit: I changed the c file during the writing of this bug report to add a main function. The command I ran to get the error message is "$ gcc polytools.c" and not "$ gcc polytools.c -o polytools.o".

% gcc polytools.c
during RTL pass: expand
polytools.c: In function ‘poly_gauss_jacobi_h’:
polytools.c:129:3: internal compiler error: Segmentation fault
129 | poly_jacobi_f_d(1, &z, &P_z, 0, n, alpha, beta);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x1614f98 internal_error(char const*, ...)
???:0
0x65c488 attr_access::array_as_string[abi:cxx11](tree_node*) const
???:0
0x775dc9 expand_call(tree_node*, rtx_def*, int)
???:0
0x89252e expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.

Loading...