[
https://issues.apache.org/jira/browse/MESOS-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bannier updated MESOS-3607:
------------------------------------
Labels: mesosphere tech-debt-test (was: tech-debt-test)
> mesos::internal::tests::execute contains non-async-safe code when it shouldn't
> ------------------------------------------------------------------------------
>
> Key: MESOS-3607
> URL: https://issues.apache.org/jira/browse/MESOS-3607
> Project: Mesos
> Issue Type: Bug
> Components: test
> Reporter: Benjamin Bannier
> Priority: Minor
> Labels: mesosphere, tech-debt-test
>
> The function {{mesos::internal::tests::execute}} is used to to fork test
> scripts via {{TEST_SCRIPT}} and contains non-async-safe code in the
> {{fork}}/{{exec}} bracket.
> In fact most of the functions used there are not async-safe; we have at least
> the following:
> * {{freopen}},
> * {{os::setenv}} which calls {{::setenv}} under the covers,
> * {{malloc}} for storage of temporary {{std::strings}}, also via
> {{CHECK_SOME}}, or
> * potentially {{malloc}} for internal protobuf allocations triggered by
> {{\*.add_*}} functions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)