FS#49779 - [gcc-multilib] Internal compiler error: segmentation fault

Attached to Project: Community Packages
Opened by Simon Schuster (noctux) - Monday, 20 June 2016, 14:06 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 10 December 2017, 19:31 GMT
Task Type Bug Report
Category Packages: Multilib
Status Closed
Assigned To Jan Alexander Steffens (heftig)
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:

When compiling the attached file "foobar.c", gcc-multilib dies with:

> keso_main.c: In function ‘StartupHook’:
> keso_main.c:30:1: internal compiler error: Segmentation fault
> }
> ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <https://bugs.archlinux.org/> for instructions.


Additional info:
* package: gcc-multilib 6.1.1-2
* gcc --version: gcc (GCC) 6.1.1 20160602

Steps to reproduce:
* download the attached file (preprocessed source code) "foobar.c"
* compile it with:
gcc -ffixed-ebx -std=gnu99 -m32 -c foobar.c -o foobar.o
* both the -ffixed-ebx and the -m32 are necessary to reproduce the bug
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 10 December 2017, 19:31 GMT
Reason for closing:  No response
Additional comments about closing:  Presumed fixed
Comment by Simon Schuster (noctux) - Monday, 28 November 2016, 21:39 GMT
Just for the records: still happens with the current package: "gcc (GCC) 6.2.1 20160830"
Comment by Simon Schuster (noctux) - Monday, 28 November 2016, 21:58 GMT
I minified the file in question with delta. Attaching the minified version.
Comment by Simon Schuster (noctux) - Monday, 28 November 2016, 22:05 GMT
Using topformflat one arrives with 4 lines of faulty input.

Comment by Simon Schuster (noctux) - Tuesday, 29 November 2016, 08:00 GMT
Built upstream gcc-svn, revision 242936. Issue exists there as well. Escalating.
Comment by Simon Schuster (noctux) - Tuesday, 29 November 2016, 08:26 GMT Comment by Allan McRae (Allan) - Saturday, 14 January 2017, 07:37 GMT
Fix is on gcc trunk - will be fixed in upcoming gcc-7 release.
Comment by Zion Nimchuk (hcorion) - Tuesday, 30 May 2017, 18:55 GMT
This issue should now be fixed right?

Loading...