Bug 1408291
Summary: | c++ optimization breaks exception handling | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Merlin Mathesius <mmathesi> |
Component: | gtest | Assignee: | Terje Røsten <terje.rosten> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | davejohansen, helio, jakub, jwakely, law, mpolacek, psabata, sgallagh, tagoh, terje.rosten, tstclair |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | gtest-1.7.0-8.fc25 gtest-1.7.0-8.fc24 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-09 04:20:59 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: |
Description
Merlin Mathesius
2016-12-22 19:29:56 UTC
This is almost certainly a known bug in gtest, caused by calling member functions through a null pointer. See "Optimizations remove null pointer checks for this" at https://gcc.gnu.org/gcc-6/porting_to.html The stack trace in the github issue confirms it, it shows this=0x0 at the point of failure. This is not a gcc bug. The code has undefined behaviour. Using CXX_FLAGS="-O -fno-delete-null-pointer-checks" confirms it. Changing component to gtest, where the problem is. Patch here: https://github.com/google/googletest/pull/967.patch Beware of bugs in the patch; I have only proved it correct, not tried it ;) gtest-1.7.0-8.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0caadc8ba7 gtest-1.7.0-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-cec378cd2f gtest-1.7.0-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-cec378cd2f gtest-1.7.0-8.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0caadc8ba7 gtest-1.7.0-8.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. gtest-1.7.0-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |