You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by GitBox <gi...@apache.org> on 2021/05/15 11:43:26 UTC

[GitHub] [mesos] cf-natali opened a new pull request #385: Fixed read of uninitialized variables detected with UBSAN.

cf-natali opened a new pull request #385:
URL: https://github.com/apache/mesos/pull/385


   @asekretenko @qianzhangxa 
   
   They were detected as invalid boolean values.
   
   I'll look at adding a `configure` flag to build with UBSAN, I need to look at potential remaining false positives.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] asekretenko commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
asekretenko commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-841784763


   @cf-natali I'm also observing this on some platforms in an internal CI; reverted until further investigation.
   
   One more note: after looking at the code that makes use of those attributes more carefully, I'm realizing that our tests only work by miracle: the authorization callbacks that can be cleared both by `~Master()` and by `~Slave()` belong to global libprocess state. Given that we definitely have tests that are destroying slaves and masters in the middle of the test, I'm now suprrised how this stuff works at all... most likely, we just don't have tests that both rely on authn callbacks and destroy a master/an agent in the middle. Not sure if this story has any relation to the cgroup destruction failure, though.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] asekretenko merged pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
asekretenko merged pull request #385:
URL: https://github.com/apache/mesos/pull/385


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] cf-natali commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
cf-natali commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-841839862


   Oh damn, I had a look and it looks like the cgroup is a separate problem, which looks like a kernel bug...
   I'll dig.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] cf-natali commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
cf-natali commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-842693833


   Found the cause of the cgroup issue: https://github.com/apache/mesos/pull/388
   Kernel update triggering a bug in the cgroup tasks killing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] cf-natali commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
cf-natali commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-841736466






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] cf-natali commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
cf-natali commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-841736466


   @asekretenko Would it be possible to revert it?
   Since merging it I've noticed that I get some tests failing randomly - it's really strange, they are cgroup isolator tests which seem completely unrelated, e.g.:
   
   ```
   [ RUN      ] MesosContainerizerTest.StatusWithContainerID
   ../../src/tests/mesos.cpp:736: Failure
   Failed to wait 15secs for cgroups::destroy(hierarchy, cgroup)
   -----------------------------------------------------------
   We're very sorry but we can't seem to destroy existing
   cgroups that we likely created as part of an earlier
   invocation of the tests. Please manually destroy the cgroup
   at '/sys/fs/cgroup/memory/mesos_test_92a75d38-a749-4894-9746-79f8b3590b7c/57721582-cd4d-43a7-8fcf-0b57e26a7987' by first
   manually killing all the processes found in the file at '/sys/fs/cgroup/memory/mesos_test_92a75d38-a749-4894-9746-79f8b3590b7c/57721582-cd4d-43a7-8fcf-0b57e26a7987/tasks'
   -----------------------------------------------------------
   ../../src/tests/mesos.cpp:782: Failure
   Failed to wait 15secs for cgroups::destroy(hierarchy, cgroup)
   [  FAILED  ] MesosContainerizerTest.StatusWithContainerID (30062 ms)
   ```
   
   I have no idea what's going on, the only explanation I can see is that somehow before because these variables where not initialised they were pretty much always `true` (non-0 bool) and somehow the tests might depend on it.
   I'll try to understand what causes it but in the meantime probably best to revert.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mesos] asekretenko commented on pull request #385: Fixed read of uninitialized variables detected with UBSAN.

Posted by GitBox <gi...@apache.org>.
asekretenko commented on pull request #385:
URL: https://github.com/apache/mesos/pull/385#issuecomment-841784763


   @cf-natali I'm also observing this on some platforms in an internal CI; reverted until further investigation.
   
   One more note: after looking at the code that makes use of those attributes more carefully, I'm realizing that our tests only work by miracle: the authorization callbacks that can be cleared both by `~Master()` and by `~Slave()` belong to global libprocess state. Given that we definitely have tests that are destroying slaves and masters in the middle of the test, I'm now suprrised how this stuff works at all... most likely, we just don't have tests that both rely on authn callbacks and destroy a master/an agent in the middle. Not sure if this story has any relation to the cgroup destruction failure, though.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org