[ https://issues.apache.org/jira/browse/MESOS-9002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Peach reassigned MESOS-9002: ---------------------------------- Assignee: James Peach Priority: Minor (was: Major) Fix Version/s: 1.7.0 | [r/67614|https://reviews.apache.org/r/67614] | Removed memcpy from os::Fork::instantiate. | > Mem access error in os::Fork::Tree > ---------------------------------- > > Key: MESOS-9002 > URL: https://issues.apache.org/jira/browse/MESOS-9002 > Project: Mesos > Issue Type: Task > Reporter: James Peach > Assignee: James Peach > Priority: Minor > Fix For: 1.7.0 > > > Building Mesos with gcc 8.1 (Fedora 28) > {noformat} > ../../3rdparty/stout/include/stout/os/posix/fork.hpp: In member function > ‘pid_t os::Fork::instantiate(const os::Fork::Tree&) const’: > ../../3rdparty/stout/include/stout/os/posix/fork.hpp:354:61: error: ‘void* > memcpy(void*, const void*, size_t)’ writing to an object of type ‘using > element_type = std::remove_extent<os::Fork::Tree::Memory>::type’ {aka ‘struct > os::Fork::Tree::Memory’} with no trivial copy-assignment > [-Werror=class-memaccess] > memcpy(tree.memory.get(), &process, sizeof(Tree::Memory)); > ^ > ../../3rdparty/stout/include/stout/os/posix/fork.hpp:235:12: note: ‘using > element_type = std::remove_extent<os::Fork::Tree::Memory>::type’ {aka ‘struct > os::Fork::Tree::Memory’} declared here > struct Memory { > ^~~~~~ > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)