Bug 1309128

Summary: gcc 6.0 segfaults
Product: [Fedora] Fedora Reporter: Oliver Kurth <okurth>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: davejohansen, jakub, jwakely, law, mpolacek, okurth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-10 18:39:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source none

Description Oliver Kurth 2016-02-16 23:03:06 UTC
Created attachment 1127743 [details]
Preprocessed source

Description of problem:

gcc 6.0 segfaults when compiling open-vm-tools


Version-Release number of selected component (if applicable):
gcc version 6.0.0 20160205 (Red Hat 6.0.0-0.10) (GCC) 


How reproducible:
always


Steps to Reproduce:

git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/
cd open-vm-tools/
autoreconf -i
./configure --without-kernel-modules
make

Actual results:
appUtil.c: In function 'AppUtil_SendGuestCaps':
appUtil.c:54:1: internal compiler error: Segmentation fault
 AppUtil_SendGuestCaps(const GuestCapabilities *caps, // IN: array of capabilities
 ^~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccQQfF9H.out file, please attach this to your bugreport.


Expected results:


Additional info:

Comment 1 Marek Polacek 2016-02-17 09:19:01 UTC
I can't reproduce this -- on which arch does this happen?

Comment 2 Jakub Jelinek 2016-02-17 09:42:29 UTC
The dump is from x86_64.  But, I can't reproduce this either, with the same snapshot or even with the cc1 binary from the -0.10.fc24 rpm.

Comment 3 Oliver Kurth 2016-02-18 02:27:03 UTC
Interesting. I did this in a docker container - I thought it wouldn't matter. I cannot reproduce this in a vm either. It's a slightly different version though:
gcc version 6.0.0 20160212 (Red Hat 6.0.0-0.11) (GCC)

Comment 4 Jan Kurik 2016-02-24 15:23:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 5 Marek Polacek 2016-03-10 15:15:35 UTC
Is this still a problem with latest GCC build?

Comment 6 Oliver Kurth 2016-03-10 18:25:48 UTC
It looks like the issue is gone. The build with
gcc version 6.0.0 20160305
does not throw any segfault any more (I am getting other errors, but those are not related). It's in a container updated to the latest rawhide, everything else is the same as in my original report.

Comment 7 Marek Polacek 2016-03-10 18:39:50 UTC
Great, thanks.  I think we can close this one now then.