[
https://issues.apache.org/jira/browse/GEODE-9405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17377581#comment-17377581
]
Blake Bender commented on GEODE-9405:
-------------------------------------
Note: build warnings in the test code are not the issue with RHEL-8 builds.
This is the PR for the actual RHEL-8 crash fix:
[https://github.com/apache/geode-native/pull/830]
As near as we can tell, we took a compiler/toolchain update on RHEL-8 about a
month ago, and it changed the order in which some static initializers are run.
In the case of this `std::regex` variable, its ctor is run before an underlying
dependency is initialized, and it segfaults. Fix was to move the static var
from global scope to method scope, so it gets initialized at first use, much
later.
> Build fails on rhel-8 release
> -----------------------------
>
> Key: GEODE-9405
> URL: https://issues.apache.org/jira/browse/GEODE-9405
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Michael Martell
> Assignee: Michael Martell
> Priority: Major
> Labels: pull-request-available
>
> Looks like a recent gcc compiler change on rhel-8 is causing build failures
> in the CI.
> Looks to be related to unsafe use of strncpy in a few of our legacy C++ tests.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)