[
https://issues.apache.org/jira/browse/TRAFODION-1868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15516561#comment-15516561
]
ASF GitHub Bot commented on TRAFODION-1868:
-------------------------------------------
Github user selvaganesang commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/666#discussion_r80251606
--- Diff: core/sql/bin/ex_sscp_main.cpp ---
@@ -248,12 +248,13 @@ void runServer(Int32 argc, char **argv)
{
cout << tmbuf << " RMS Shared segment exists, attaching to it,
shmid="<< shmid << ", key=" << (key_t)getStatsSegmentId() << "\n";
}
- if ((statsGlobalsAddr = shmat(shmid, getRmsSharedMemoryAddr(), 0))
+ if ((statsGlobalsAddr = shmat(shmid, getRmsSharedMemoryAddr(), SHM_REMAP
| SHM_RND))
--- End diff --
This shared segment can't be remapped because RMS shared segment have
pointers stored within its space. All the processes attaching to the shared
segment should attach at the same address. If the process is unable to do it,
then the process can't participate in updating the shared segment. This can
lead to corruption in the shared segment
> Compatibility with gcc 4.8
> --------------------------
>
> Key: TRAFODION-1868
> URL: https://issues.apache.org/jira/browse/TRAFODION-1868
> Project: Apache Trafodion
> Issue Type: Bug
> Reporter: Steve Varnau
> Assignee: Arvind Narain
> Priority: Minor
>
> Current code will not compile with gcc 4.8. That is the default version on
> RH/CentOS 7. This is needed to move to a development environment on CentOS 7.
> There is a 4.4 version of gcc available on 7. The RPM package is
> compat-gcc-44, I have not tried building on 7.x with older compiler, but will
> likely work.
> This is not urgent at this time, but we should move toward enabling a newer
> dev environment. But this needs to be coordinated with with versions of OS
> are supported for runtime use of trafodion.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)