Bug 1406937

Summary: gtest-1.7.0-5.fc23 FTBFS
Product: [Fedora] Fedora Reporter: Merlin Mathesius <mmathesi>
Component: gtestAssignee: Terje Røsten <terje.rosten>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: helio, psabata, sgallagh, tagoh, terje.rosten, tstclair
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gtest-1.7.0-7.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 16:00:58 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:
Bug Depends On:    
Bug Blocks: 1400162    
Deadline: 2017-01-04   
Attachments:
Description Flags
proposed patch to correct FTBFS issue none

Description Merlin Mathesius 2016-12-21 21:51:57 UTC
gtest-1.7.0-5.fc23 fails to build from source.

This affects Base Runtime, Rawhide, and F25.

The reason for this is a failing test, gtest_catch_exceptions_test. This is a manifestation of the problem that the gtest_catch_exceptions_ex_test_ executable has a segmentation fault rather than an exception that should be caught by the gtest framework.

This failure has been reported upstream: https://github.com/google/googletest/issues/845. Unfortunately, there is no fix reported there.

It can be noted that the build and all tests succeed if C++ compiler optimization is disabled when compiling the package. This suggests a bug in the compiler. However, it also suggests disabling optimization is a workaround to fix the FTBFS problem.

Comment 1 Merlin Mathesius 2016-12-21 21:54:31 UTC
Created attachment 1234540 [details]
proposed patch to correct FTBFS issue

Comment 2 Merlin Mathesius 2016-12-21 21:55:34 UTC
Please apply the patch or respond with a reason it should not be applied within two weeks. After that time, a provenpackager will go ahead and apply it.

Comment 3 Merlin Mathesius 2016-12-22 20:04:47 UTC
The issue with C++ optimization causing exception handling to fail has been reported: https://bugzilla.redhat.com/show_bug.cgi?id=1408291