[
https://issues.apache.org/jira/browse/MESOS-8096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250227#comment-16250227
]
Alexander Rukletsov commented on MESOS-8096:
--------------------------------------------
{noformat}
Commit: 75f1274221de5169024008a4187ddb4edd3f9be3 [75f1274]
Author: Alexander Rukletsov [email protected]
Date: 13 November 2017 at 21:52:05 GMT+1
Committer: Alexander Rukletsov [email protected]
Refactored scheduler test driver to avoid using uninitialized object.
The shared pointer to MockHTTPScheduler is initialized after the
library, while the library may start using it right after its
initialization via the events callback. This change removes the
shared pointer altogether and hence prevents possible segfaults.
Review: https://reviews.apache.org/r/63611/
{noformat}
{noformat}
Commit: f221d8ebb1846e43d8c319bdcaf2694b1601f55b [f221d8e]
Author: Alexander Rukletsov [email protected]
Date: 13 November 2017 at 21:52:22 GMT+1
Committer: Alexander Rukletsov [email protected]
Refactored executor test driver to avoid using uninitialized object.
The shared pointer to MockHTTPExecutor is initialized after the library,
while the library may start using it right after its initialization via
the events callback. This change removes the shared pointer altogether
and hence prevents possible segfaults.
Review: https://reviews.apache.org/r/63613/
{noformat}
{noformat}
Commit: 8194e7cac77571f74c89f824ce3fe2afb5397cc5 [8194e7c]
Author: Alexander Rukletsov [email protected]
Date: 13 November 2017 at 21:52:28 GMT+1
Committer: Alexander Rukletsov [email protected]
Removed unnecessary check in v1 scheduler library.
Review: https://reviews.apache.org/r/63614/
{noformat}
{noformat}
Commit: 57eeef05668bf73cbc3c0c38ca28dbf0b90ab8b1 [57eeef0]
Author: Alexander Rukletsov [email protected]
Date: 13 November 2017 at 21:52:35 GMT+1
Committer: Alexander Rukletsov [email protected]
Passed scheduler as a shared pointer into the callback.
To ensure the lifetime of the scheduler is longer than the lifetime
of the scheduler library driver, pass scheduler as a shared_ptr.
Review: https://reviews.apache.org/r/63615/
{noformat}
> Enqueueing events in MockHTTPScheduler can lead to segfaults.
> -------------------------------------------------------------
>
> Key: MESOS-8096
> URL: https://issues.apache.org/jira/browse/MESOS-8096
> Project: Mesos
> Issue Type: Bug
> Components: scheduler driver, test
> Environment: Fedora 23, Ubuntu 14.04, Ubuntu 16
> Reporter: Alexander Rukletsov
> Assignee: Alexander Rukletsov
> Labels: flaky-test, mesosphere
> Attachments: AsyncExecutorProcess-badrun-1.txt,
> AsyncExecutorProcess-badrun-2.txt, AsyncExecutorProcess-badrun-3.txt
>
>
> Various tests segfault due to a yet unknown reason. Comparing logs (attached)
> hints that the problem might be in the scheduler's event queue.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)