mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Wu <>
Subject Re: Review Request 56001: Fixed a few executor segfaults during cleanup.
Date Fri, 27 Jan 2017 00:01:26 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 26, 2017, 4:01 p.m.)

Review request for mesos, Anand Mazumdar, Gilbert Song, and Jie Yu.


Tweaked two tests to check for exit codes.  Tweaked/added comments.

Bugs: MESOS-6989

Repository: mesos


The addition of `process::finalize` at the end of some binaries
led to some segfaulting at the end of the binaries' lifetimes.
This is mostly due calling destructors of libprocess actor
wrappers, which require an initialized libprocess to function.

This commit explicitly calls the destructors on the default
and docker executor actors prior to calling `process::finalize`.

Diffs (updated)

  src/docker/executor.cpp f353341c9509532653e2ef8802f20259ce67930c 
  src/launcher/default_executor.cpp a03794934adb93868734f8cf00b337a1bff9b5ab 
  src/tests/containerizer/docker_containerizer_tests.cpp fa734e6b4b5d61e944cd70f1378f2d2eb534fe22

  src/tests/default_executor_tests.cpp 8fc7fbeedfab8786c672af1b21cb7fa9a3347266 


Testing (updated)

sudo src/mesos-tests --gtest_filter="*ROOT*DOCKER*" --verbose

Checked that all executors exited with status code 0, rather than 11.


Modified two tests to check on exit status code explicitly.

sudo src/mesos-tests --gtest_filter="*CommitSuicideOnTaskFailure*:*ROOT_DOCKER_Kill" --verbose


Joseph Wu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message