FS#78385 - [gcc] 13.1.1-1 internal compiler error: Segmentation fault

Attached to Project: Arch Linux
Opened by tocic (tocic) - Thursday, 04 May 2023, 08:01 GMT
Last edited by freswa (frederik) - Sunday, 16 July 2023, 10:45 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To freswa (frederik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm trying to build https://aur.archlinux.org/packages/snitch. With `gcc 12.2.1-2` everything is fine, but `gcc 13.1.1-1` produces

```
/tmp/makepkg/snitch/src/snitch-1.1.1/include/snitch/snitch_vector.hpp:215:37: internal compiler error: Segmentation fault
215 | std::array<ElemType, MaxLength> data_buffer = {};
| ^~~~~~~~~~~
```

and suggests to post a bug report here.

This task depends upon

Closed by  freswa (frederik)
Sunday, 16 July 2023, 10:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  gcc-13.1.1-2
Comment by tocic (tocic) - Thursday, 04 May 2023, 08:06 GMT
Seems like the log hasn't been attached because it occupies 2.4 MiB. Should I truncate it or something?
Comment by Toolybird (Toolybird) - Thursday, 04 May 2023, 08:36 GMT
Yes, can repro. Thanks for reporting...but ultimately it needs reporting upstream to GCC devs [1]. Could you please report it there? (and be sure to include the preprocessed source).

[1] https://gcc.gnu.org/bugs/
Comment by Toolybird (Toolybird) - Thursday, 04 May 2023, 09:01 GMT
And just in case, attached is the gzipped prepocessed source.
Comment by tocic (tocic) - Thursday, 04 May 2023, 09:21 GMT Comment by Toolybird (Toolybird) - Thursday, 04 May 2023, 21:36 GMT
Turns out it was already reported upstream (unsurprisingly). Now fixed on the gcc-13 branch [1]

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0a2c771910e888c9a26db319122230144789b9bf
Comment by Massimiliano Torromeo (mtorromeo) - Friday, 14 July 2023, 19:19 GMT
I cannot build grpc anymore due to this ICE. Here's the upstream grpc bug report: https://github.com/grpc/grpc/issues/33634

Any chance the commit with the fix could be backported?
Comment by freswa (frederik) - Friday, 14 July 2023, 20:48 GMT
wip

Loading...