Details
Description
Per a comment in this review: https://reviews.apache.org/r/51391/#review146735
There are two places in the Docker containerizer where we copy a Container* by reference into a continuation:
- https://github.com/apache/mesos/blob/71179708650642e145f75e250bf6d6b3eaabb6c5/src/slave/containerizer/docker.cpp#L1192
- https://github.com/apache/mesos/blob/71179708650642e145f75e250bf6d6b3eaabb6c5/src/slave/containerizer/docker.cpp#L1283
If the container is destroyed in the mean time, then we will potentially segfault here.