[
https://issues.apache.org/jira/browse/MESOS-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jie Yu updated MESOS-5687:
--------------------------
Affects Version/s: 0.27.3
0.28.2
> Port mapping isolator may cause segfault if the agent flag
> `egress_rate_limit_per_container` is specified.
> ----------------------------------------------------------------------------------------------------------
>
> Key: MESOS-5687
> URL: https://issues.apache.org/jira/browse/MESOS-5687
> Project: Mesos
> Issue Type: Bug
> Components: isolation, network
> Affects Versions: 0.27.3, 0.28.2
> Environment: Fedora 23 with network isolatrion
> Reporter: Gilbert Song
> Priority: Critical
> Labels: isolation, mesosphere, networking
>
> The port mapping isolator may get into segfault if the agent flag
> `egress_rate_limit_per_container` is specified and
> `/sys/class/net/eth0/speed` is not readable.
> This can be exposed in this test:
> {noformat}
> PortMappingIsolatorTest.ROOT_NC_SmallEgressLimit
> {noformat}
> Here is the log:
> {noformat}
> [20:18:05] : [Step 10/10] [ RUN ]
> PortMappingIsolatorTest.ROOT_NC_SmallEgressLimit
> [20:18:05]W: [Step 10/10] I0622 20:18:05.375366 28395
> port_mapping_tests.cpp:229] Using eth0 as the public interface
> [20:18:05]W: [Step 10/10] I0622 20:18:05.375664 28395
> port_mapping_tests.cpp:237] Using lo as the loopback interface
> [20:18:05]W: [Step 10/10] I0622 20:18:05.388883 28395 resources.cpp:572]
> Parsing resources as JSON failed:
> cpus:2;mem:1024;disk:1024;ephemeral_ports:[30001-30999];ports:[31000-32000]
> [20:18:05]W: [Step 10/10] Trying semicolon-delimited string format instead
> [20:18:05]W: [Step 10/10] I0622 20:18:05.389879 28395
> port_mapping.cpp:1557] Using eth0 as the public interface
> [20:18:05]W: [Step 10/10] I0622 20:18:05.390173 28395
> port_mapping.cpp:1582] Using lo as the loopback interface
> [20:18:05]W: [Step 10/10] F0622 20:18:05.390365 28395
> port_mapping_tests.cpp:1496] CHECK_SOME(isolator): Failed to read
> /sys/class/net/eth0/speed: Invalid argument
> [20:18:05]W: [Step 10/10] *** Check failure stack trace: ***
> [20:18:05]W: [Step 10/10] @ 0x7f11003bdd1a
> google::LogMessage::Fail()
> [20:18:05]W: [Step 10/10] @ 0x7f11003bdc73
> google::LogMessage::SendToLog()
> [20:18:05]W: [Step 10/10] @ 0x7f11003bd669
> google::LogMessage::Flush()
> [20:18:05]W: [Step 10/10] @ 0x7f11003c04da
> google::LogMessageFatal::~LogMessageFatal()
> [20:18:05]W: [Step 10/10] @ 0xa62ce1
> _CheckFatal::~_CheckFatal()
> [20:18:05]W: [Step 10/10] @ 0x199a13d
> mesos::internal::tests::PortMappingIsolatorTest_ROOT_NC_SmallEgressLimit_Test::TestBody()
> [20:18:05]W: [Step 10/10] @ 0x1a36fbe
> testing::internal::HandleSehExceptionsInMethodIfSupported<>()
> [20:18:05]W: [Step 10/10] @ 0x1a3206c
> testing::internal::HandleExceptionsInMethodIfSupported<>()
> [20:18:05]W: [Step 10/10] @ 0x1a12ab6 testing::Test::Run()
> [20:18:05]W: [Step 10/10] @ 0x1a1326e testing::TestInfo::Run()
> [20:18:05]W: [Step 10/10] @ 0x1a138bf testing::TestCase::Run()
> [20:18:05]W: [Step 10/10] @ 0x1a1a3fd
> testing::internal::UnitTestImpl::RunAllTests()
> [20:18:05]W: [Step 10/10] @ 0x1a37c85
> testing::internal::HandleSehExceptionsInMethodIfSupported<>()
> [20:18:05]W: [Step 10/10] @ 0x1a32bac
> testing::internal::HandleExceptionsInMethodIfSupported<>()
> [20:18:05]W: [Step 10/10] @ 0x1a190d9 testing::UnitTest::Run()
> [20:18:05]W: [Step 10/10] @ 0x1004b7f RUN_ALL_TESTS()
> [20:18:05]W: [Step 10/10] @ 0x1004765 main
> [20:18:05]W: [Step 10/10] @ 0x7f10f9aa4580 __libc_start_main
> [20:18:05]W: [Step 10/10] @ 0xa61339 _start
> [20:18:06]W: [Step 10/10]
> /mnt/teamcity/temp/agentTmp/custom_script8081387914816808529: line 3: 28395
> Aborted (core dumped) GLOG_v=1 ./bin/mesos-tests.sh --verbose
> --gtest_filter="$GTEST_FILTER"
> [20:18:06]W: [Step 10/10] Process exited with code 134
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)