New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 908653 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

betty-asan reporting memory leaks in shill unit tests

Project Member Reported by derat@chromium.org, Nov 27

Issue description

The betty-asan builder is reporting some memory leaks in shill's unit tests:

http://cros-goldeneye/chromeos/healthmonitoring/buildDetails?buildbucketId=8928784670996094720
http://cros-goldeneye/chromeos/healthmonitoring/buildDetails?buildbucketId=8928875268857858048
etc.

shill-0.0.3-r1541:  * ASAN error detected:
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * =================================================================
shill-0.0.3-r1541:  * ==17==ERROR: LeakSanitizer: detected memory leaks
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Direct leak of 184 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd25e9b4f in base::internal::MakeUniqueResult<base::FileDescriptorWatcher::Controller::Watcher>::Scalar base::MakeUnique<base::FileDescriptorWatcher::Controller::Watcher, base::WeakPtr<base::FileDescriptorWatcher::Controller>, base::MessageLoopForIO::Mode&, int&>(base::WeakPtr<base::FileDescriptorWatcher::Controller>&&, base::MessageLoopForIO::Mode&, int&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/ptr_util.h:56:29
shill-0.0.3-r1541:  *     #2 0x7ffbd25e7cf5 in base::FileDescriptorWatcher::Controller::Controller(base::MessageLoopForIO::Mode, int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:162:14
shill-0.0.3-r1541:  *     #3 0x7ffbd25e8eee in base::FileDescriptorWatcher::WatchReadable(int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:201:25
shill-0.0.3-r1541:  *     #4 0x7ffbd3b5c7ed in timers::AlarmTimer::Reset() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:103:25
shill-0.0.3-r1541:  *     #5 0x7ffbd6618350 in shill::WakeOnWiFiTest::StartDHCPLeaseRenewalTimer() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:931:46
shill-0.0.3-r1541:  *     #6 0x7ffbd660a612 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::TestBody() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3738:3
shill-0.0.3-r1541:  *     #7 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #9 0x7ffbd3cb54e0 in testing::Test::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2474:5
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb643f in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2656:11
shill-0.0.3-r1541:  *     #11 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #12 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #13 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #14 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #15 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #16 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #17 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #18 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #19 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Direct leak of 184 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd25e9b4f in base::internal::MakeUniqueResult<base::FileDescriptorWatcher::Controller::Watcher>::Scalar base::MakeUnique<base::FileDescriptorWatcher::Controller::Watcher, base::WeakPtr<base::FileDescriptorWatcher::Controller>, base::MessageLoopForIO::Mode&, int&>(base::WeakPtr<base::FileDescriptorWatcher::Controller>&&, base::MessageLoopForIO::Mode&, int&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/ptr_util.h:56:29
shill-0.0.3-r1541:  *     #2 0x7ffbd25e7cf5 in base::FileDescriptorWatcher::Controller::Controller(base::MessageLoopForIO::Mode, int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:162:14
shill-0.0.3-r1541:  *     #3 0x7ffbd25e8eee in base::FileDescriptorWatcher::WatchReadable(int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:201:25
shill-0.0.3-r1541:  *     #4 0x7ffbd3b5c7ed in timers::AlarmTimer::Reset() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:103:25
shill-0.0.3-r1541:  *     #5 0x7ffbd6618350 in shill::WakeOnWiFiTest::StartDHCPLeaseRenewalTimer() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:931:46
shill-0.0.3-r1541:  *     #6 0x7ffbd6609f89 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::TestBody() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3729:3
shill-0.0.3-r1541:  *     #7 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #9 0x7ffbd3cb54e0 in testing::Test::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2474:5
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb643f in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2656:11
shill-0.0.3-r1541:  *     #11 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #12 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #13 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #14 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #15 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #16 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #17 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #18 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #19 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 192 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd26d84d0 in base::MessageLoop::MessageLoop(base::MessageLoop::Type, base::Callback<std::__1::unique_ptr<base::MessagePump, std::__1::default_delete<base::MessagePump> > (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1>) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:325:28
shill-0.0.3-r1541:  *     #2 0x7ffbd26e5545 in base::MessageLoop::MessageLoop(base::MessageLoop::Type) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:83:7
shill-0.0.3-r1541:  *     #3 0x7ffbd26e5545 in base::MessageLoopForIO::MessageLoopForIO() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:644:0
shill-0.0.3-r1541:  *     #4 0x7ffbd661b5ea in shill::WakeOnWiFiTestWithMockDispatcher::WakeOnWiFiTestWithMockDispatcher() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:1134:3
shill-0.0.3-r1541:  *     #5 0x7ffbd662e447 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3720:1
shill-0.0.3-r1541:  *     #6 0x7ffbd662e447 in testing::internal::TestFactoryImpl<shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test>::CreateTest() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/internal/gtest-internal.h:484:0
shill-0.0.3-r1541:  *     #7 0x7ffbd3ccf1c3 in testing::Test* testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccf1c3 in testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #9 0x7ffbd3cb63de in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2647:22
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #11 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #12 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #13 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #14 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #15 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #16 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #17 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #18 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 88 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd26d853f in base::MessageLoop::MessageLoop(base::MessageLoop::Type, base::Callback<std::__1::unique_ptr<base::MessagePump, std::__1::default_delete<base::MessagePump> > (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1>) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:327:11
shill-0.0.3-r1541:  *     #2 0x7ffbd26e5545 in base::MessageLoop::MessageLoop(base::MessageLoop::Type) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:83:7
shill-0.0.3-r1541:  *     #3 0x7ffbd26e5545 in base::MessageLoopForIO::MessageLoopForIO() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/message_loop/message_loop.cc:644:0
shill-0.0.3-r1541:  *     #4 0x7ffbd661b5ea in shill::WakeOnWiFiTestWithMockDispatcher::WakeOnWiFiTestWithMockDispatcher() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:1134:3
shill-0.0.3-r1541:  *     #5 0x7ffbd662e447 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3720:1
shill-0.0.3-r1541:  *     #6 0x7ffbd662e447 in testing::internal::TestFactoryImpl<shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test>::CreateTest() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/internal/gtest-internal.h:484:0
shill-0.0.3-r1541:  *     #7 0x7ffbd3ccf1c3 in testing::Test* testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccf1c3 in testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #9 0x7ffbd3cb63de in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2647:22
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #11 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #12 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #13 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #14 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #15 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #16 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #17 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #18 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 80 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd26cbdea in base::internal::WeakReferenceOwner::GetRef() const /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:59:13
shill-0.0.3-r1541:  *     #2 0x7ffbd25e9f21 in base::WeakPtrFactory<base::FileDescriptorWatcher::Controller>::GetWeakPtr() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/weak_ptr.h:293:45
shill-0.0.3-r1541:  *     #3 0x7ffbd25e7ce2 in base::FileDescriptorWatcher::Controller::Controller(base::MessageLoopForIO::Mode, int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:162:48
shill-0.0.3-r1541:  *     #4 0x7ffbd25e8eee in base::FileDescriptorWatcher::WatchReadable(int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:201:25
shill-0.0.3-r1541:  *     #5 0x7ffbd3b5c7ed in timers::AlarmTimer::Reset() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:103:25
shill-0.0.3-r1541:  *     #6 0x7ffbd6618350 in shill::WakeOnWiFiTest::StartDHCPLeaseRenewalTimer() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:931:46
shill-0.0.3-r1541:  *     #7 0x7ffbd660a612 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::TestBody() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3738:3
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #9 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb54e0 in testing::Test::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2474:5
shill-0.0.3-r1541:  *     #11 0x7ffbd3cb643f in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2656:11
shill-0.0.3-r1541:  *     #12 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #13 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #14 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #15 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #16 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #17 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #18 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #19 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #20 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 80 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd26cbdea in base::internal::WeakReferenceOwner::GetRef() const /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:59:13
shill-0.0.3-r1541:  *     #2 0x7ffbd25e9f21 in base::WeakPtrFactory<base::FileDescriptorWatcher::Controller>::GetWeakPtr() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/weak_ptr.h:293:45
shill-0.0.3-r1541:  *     #3 0x7ffbd25e7ce2 in base::FileDescriptorWatcher::Controller::Controller(base::MessageLoopForIO::Mode, int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:162:48
shill-0.0.3-r1541:  *     #4 0x7ffbd25e8eee in base::FileDescriptorWatcher::WatchReadable(int, base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&) /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:201:25
shill-0.0.3-r1541:  *     #5 0x7ffbd3b5c7ed in timers::AlarmTimer::Reset() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:103:25
shill-0.0.3-r1541:  *     #6 0x7ffbd6618350 in shill::WakeOnWiFiTest::StartDHCPLeaseRenewalTimer() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:931:46
shill-0.0.3-r1541:  *     #7 0x7ffbd6609f89 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::TestBody() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3729:3
shill-0.0.3-r1541:  *     #8 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #9 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #10 0x7ffbd3cb54e0 in testing::Test::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2474:5
shill-0.0.3-r1541:  *     #11 0x7ffbd3cb643f in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2656:11
shill-0.0.3-r1541:  *     #12 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #13 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #14 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #15 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #16 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #17 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #18 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #19 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #20 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 72 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd285b1d5 in base::internal::MakeUniqueResult<base::SequenceCheckerImpl::Core>::Scalar base::MakeUnique<base::SequenceCheckerImpl::Core>() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/ptr_util.h:56:29
shill-0.0.3-r1541:  *     #2 0x7ffbd285b1d5 in base::SequenceCheckerImpl::CalledOnValidSequence() const /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/sequence_checker_impl.cc:60:0
shill-0.0.3-r1541:  *     #3 0x7ffbd26cb054 in base::internal::WeakReference::Flag::Invalidate() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:20:3
shill-0.0.3-r1541:  *     #4 0x7ffbd26cbc2e in base::internal::WeakReferenceOwner::Invalidate() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:66:12
shill-0.0.3-r1541:  *     #5 0x7ffbd26cbb55 in base::internal::WeakReferenceOwner::~WeakReferenceOwner() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:53:3
shill-0.0.3-r1541:  *     #6 0x7ffbd25e4edf in base::WeakPtrFactory<base::FileDescriptorWatcher::Controller>::~WeakPtrFactory() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/weak_ptr.h:289:39
shill-0.0.3-r1541:  *     #7 0x7ffbd25e4edf in base::FileDescriptorWatcher::Controller::~Controller() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:41:0
shill-0.0.3-r1541:  *     #8 0x7ffbd3b5b415 in std::__1::default_delete<base::FileDescriptorWatcher::Controller>::operator()(base::FileDescriptorWatcher::Controller*) const /usr/bin/../include/c++/v1/memory:2321:5
shill-0.0.3-r1541:  *     #9 0x7ffbd3b5b415 in std::__1::unique_ptr<base::FileDescriptorWatcher::Controller, std::__1::default_delete<base::FileDescriptorWatcher::Controller> >::reset(base::FileDescriptorWatcher::Controller*) /usr/bin/../include/c++/v1/memory:2634:0
shill-0.0.3-r1541:  *     #10 0x7ffbd3b5b415 in timers::AlarmTimer::Stop() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:48:0
shill-0.0.3-r1541:  *     #11 0x7ffbd3b5aaa5 in timers::RepeatingAlarmTimer::~RepeatingAlarmTimer() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:30:3
shill-0.0.3-r1541:  *     #12 0x7ffbd766d65c in shill::WakeOnWiFi::~WakeOnWiFi() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi.cc:118:28
shill-0.0.3-r1541:  *     #13 0x7ffbd766d8e5 in shill::WakeOnWiFi::~WakeOnWiFi() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi.cc:118:27
shill-0.0.3-r1541:  *     #14 0x7ffbd661cb13 in std::__1::default_delete<shill::WakeOnWiFi>::operator()(shill::WakeOnWiFi*) const /usr/bin/../include/c++/v1/memory:2321:5
shill-0.0.3-r1541:  *     #15 0x7ffbd661cb13 in std::__1::unique_ptr<shill::WakeOnWiFi, std::__1::default_delete<shill::WakeOnWiFi> >::reset(shill::WakeOnWiFi*) /usr/bin/../include/c++/v1/memory:2634:0
shill-0.0.3-r1541:  *     #16 0x7ffbd661cb13 in std::__1::unique_ptr<shill::WakeOnWiFi, std::__1::default_delete<shill::WakeOnWiFi> >::~unique_ptr() /usr/bin/../include/c++/v1/memory:2588:0
shill-0.0.3-r1541:  *     #17 0x7ffbd661cb13 in shill::WakeOnWiFiTest::~WakeOnWiFiTest() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:625:0
shill-0.0.3-r1541:  *     #18 0x7ffbd661b163 in shill::WakeOnWiFiTestWithMockDispatcher::~WakeOnWiFiTestWithMockDispatcher() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:1141:48
shill-0.0.3-r1541:  *     #19 0x7ffbd661b163 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::~WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3720:0
shill-0.0.3-r1541:  *     #20 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #21 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #22 0x7ffbd3cb648b in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2661:3
shill-0.0.3-r1541:  *     #23 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #24 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #25 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #26 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #27 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #28 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #29 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #30 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #31 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * Indirect leak of 72 byte(s) in 1 object(s) allocated from:
shill-0.0.3-r1541:  *     #0 0x7ffbd4006ec2 in operator new(unsigned long) ??:0:0
shill-0.0.3-r1541:  *     #1 0x7ffbd285b1d5 in base::internal::MakeUniqueResult<base::SequenceCheckerImpl::Core>::Scalar base::MakeUnique<base::SequenceCheckerImpl::Core>() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/ptr_util.h:56:29
shill-0.0.3-r1541:  *     #2 0x7ffbd285b1d5 in base::SequenceCheckerImpl::CalledOnValidSequence() const /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/sequence_checker_impl.cc:60:0
shill-0.0.3-r1541:  *     #3 0x7ffbd26cb054 in base::internal::WeakReference::Flag::Invalidate() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:20:3
shill-0.0.3-r1541:  *     #4 0x7ffbd26cbc2e in base::internal::WeakReferenceOwner::Invalidate() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:66:12
shill-0.0.3-r1541:  *     #5 0x7ffbd26cbb55 in base::internal::WeakReferenceOwner::~WeakReferenceOwner() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/memory/weak_ptr.cc:53:3
shill-0.0.3-r1541:  *     #6 0x7ffbd25e4edf in base::WeakPtrFactory<base::FileDescriptorWatcher::Controller>::~WeakPtrFactory() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/./base/memory/weak_ptr.h:289:39
shill-0.0.3-r1541:  *     #7 0x7ffbd25e4edf in base::FileDescriptorWatcher::Controller::~Controller() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/base/files/file_descriptor_watcher_posix.cc:41:0
shill-0.0.3-r1541:  *     #8 0x7ffbd3b5bf3f in std::__1::default_delete<base::FileDescriptorWatcher::Controller>::operator()(base::FileDescriptorWatcher::Controller*) const /usr/bin/../include/c++/v1/memory:2321:5
shill-0.0.3-r1541:  *     #9 0x7ffbd3b5bf3f in std::__1::unique_ptr<base::FileDescriptorWatcher::Controller, std::__1::default_delete<base::FileDescriptorWatcher::Controller> >::reset(base::FileDescriptorWatcher::Controller*) /usr/bin/../include/c++/v1/memory:2634:0
shill-0.0.3-r1541:  *     #10 0x7ffbd3b5bf3f in timers::AlarmTimer::Reset() /build/betty/tmp/portage/chromeos-base/libchrome-456626-r3/work/libchrome-456626/components/timers/alarm_timer_chromeos.cc:66:0
shill-0.0.3-r1541:  *     #11 0x7ffbd6618350 in shill::WakeOnWiFiTest::StartDHCPLeaseRenewalTimer() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:931:46
shill-0.0.3-r1541:  *     #12 0x7ffbd660a612 in shill::WakeOnWiFiTestWithMockDispatcher_WakeOnWiFiDisabled_OnNoAutoConnectableServicesAfterScan_Test::TestBody() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/wifi/wake_on_wifi_test.cc:3738:3
shill-0.0.3-r1541:  *     #13 0x7ffbd3ccedf3 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #14 0x7ffbd3ccedf3 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #15 0x7ffbd3cb54e0 in testing::Test::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2474:5
shill-0.0.3-r1541:  *     #16 0x7ffbd3cb643f in testing::TestInfo::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2656:11
shill-0.0.3-r1541:  *     #17 0x7ffbd3cb6ac6 in testing::TestCase::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2774:28
shill-0.0.3-r1541:  *     #18 0x7ffbd3cbf636 in testing::internal::UnitTestImpl::RunAllTests() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4649:43
shill-0.0.3-r1541:  *     #19 0x7ffbd3ccf913 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2402:10
shill-0.0.3-r1541:  *     #20 0x7ffbd3ccf913 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:2438:0
shill-0.0.3-r1541:  *     #21 0x7ffbd3cbf1fc in testing::UnitTest::Run() /build/betty/tmp/portage/dev-cpp/gtest-1.8.0-r1/work/googletest-release-1.8.0/googletest-abi_x86_64.amd64/./src/gtest.cc:4257:10
shill-0.0.3-r1541:  *     #22 0x7ffbd5a71951 in RUN_ALL_TESTS() /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../usr/include/gtest/gtest.h:2233:46
shill-0.0.3-r1541:  *     #23 0x7ffbd5a71951 in main /build/betty/var/cache/portage/chromeos-base/shill/out/Default/../../../../../../../tmp/portage/chromeos-base/shill-0.0.3-r1541/work/shill-0.0.3/shill/testrunner.cc:39:0
shill-0.0.3-r1541:  *     #24 0x7ffbd0d61a93 in __libc_start_main /var/tmp/portage/cross-x86_64-cros-linux-gnu/glibc-2.27-r6/work/glibc-2.27/csu/../csu/libc-start.c:308:0
shill-0.0.3-r1541:  *     #25 0x7ffbd3f2ff69 in _start ??:0:0
shill-0.0.3-r1541:  * 
shill-0.0.3-r1541:  * SUMMARY: AddressSanitizer: 952 byte(s) leaked in 8 allocation(s).
 
Cc: benchan@chromium.org
Cc: tcwang@chromium.org g...@chromium.org cmt...@chromium.org llozano@chromium.org manojgupta@chromium.org
 Issue 908137  has been merged into this issue.
Labels: -Pri-2 Pri-1
Components: Security
Cc: kirtika@chromium.org
Ping! kirtika@ are you looking into it?
I'm curious, why is this Pri-1? AFAICT, this is not actually a security issue, right? And these are also not new leaks. I guess somebody just enabled some new leak detection in the builders, and causing those checks to note "failure" for the unit tests?

Anyway, independently, I was looking at some memory errors reported by valgrind (I should probably get ASAN running...but that requires a full image rebuild it seems), and it caught a leak that the ASAN leak detector appears not to have caught, FYI:

https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1379310
Persistent memory leaks make the ASAN builders worthless, because tree guardians stop bothering to look at them since they're always red. :-(

(I don't know why this would be a security issue either, though.)
This definitely deserves to be a P1. 
It kill the usefulness of this ASAN builder and new failures will be ignored as long as this persists.

Kirtika, are you the appropriate owner of this? could you please take a look or recommend anyone that can? 


Owner: briannorris@chromium.org
Status: Started (was: Assigned)
I'll take a look.

I still don't understand how age-old leaks need to be P1's. The "usefulness of the ASAN builder" seems like a problem in the tooling IMO.
Thank you for taking a look.  I would not call this leak "age-old" .  It is not quite 1 month old, at least on the amd64-generic builder.  It started showing up there on Nov. 21...
Owner: ----
Status: Available (was: Started)
@cmtice: I was assuming the leak detection was newly discovering existing behavior...

...it's possible though, that while shill did not change here in years, libchrome uprevs may have helped us introduce a new leak? IIUC, it's a tricky situation, and I don't really know what to do with it right now.

All of these leaks are blamed on the WakeOnWifi unit tests that both mock out the event dispatcher and utilize timers::SimpleAlarmTimer. Unfortunately, the cleanup behavior for these alarms hinges on the following:

http://cs/chromeos_public/src/aosp/external/libchrome/base/files/file_descriptor_watcher_posix.cc?l=37&rcl=4941951a83ba810f01efcc0914d59b64171db084

  // Delete |watcher_| on the MessageLoopForIO.
  //
  // If the MessageLoopForIO is deleted before Watcher::StartWatching() runs,
  // |watcher_| is leaked. If the MessageLoopForIO is deleted after
  // Watcher::StartWatching() runs but before the DeleteSoon task runs,
  // |watcher_| is deleted from Watcher::WillDestroyCurrentMessageLoop().
  message_loop_for_io_task_runner_->DeleteSoon(FROM_HERE, watcher_.release());

...

http://cs/chromeos_public/src/aosp/external/libchrome/base/files/file_descriptor_watcher_posix.h?l=57&rcl=4941951a83ba810f01efcc0914d59b64171db084

    // Notified by the MessageLoopForIO associated with
    // |message_loop_for_io_task_runner_| when the watched file descriptor is
    // readable or writable without blocking. Posts a task to run RunCallback()
    // on the sequence on which the Controller was instantiated. When the
    // Controller is deleted, ownership of |watcher_| is transfered to a delete
    // task posted to the MessageLoopForIO. This ensures that |watcher_| isn't
    // deleted while it is being used by the MessageLoopForIO.
    std::unique_ptr<Watcher> watcher_;

But...since we've mocked out the event dispatcher, these events go nowhere.

At least, that's my understanding, which is sometimes admittedly weak.

Speaking of longstanding, I think this TODO covers the existing technical debt which got us into this situation:

http://cs/chromeos_public/src/platform2/shill/wifi/wake_on_wifi_test.cc?l=1144&rcl=9f429a148a2feceb0ad94fcacb6a5f8940edb74a


  // TODO(zqiu): message loop is needed by AlarmTimer, should restructure the
  // code so that it can be mocked out.
  base::MessageLoopForIO message_loop_;
  base::FileDescriptorWatcher watcher_{&message_loop_};
  MockEventDispatcher mock_dispatcher_;

> It started showing up there on Nov. 21...

Indeed:

commit 27138464382bc7a8540b4fe8a41c0940adbf86dc
Author:     Hidehiko Abe <hidehiko@chromium.org>
AuthorDate: Sun Sep 23 16:40:48 2018 +0900
Commit:     chrome-bot <chrome-bot@chromium.org>
CommitDate: Wed Nov 21 01:24:57 2018 -0800

    libchrome, libmojo: uprev to r456626
    
    This completes the libchrome uprev.
    
    BUG=b:37434548
    TEST=Build
    CQ-DEPEND=CL:1239818, CL:1240053, CL:1239834
    
    Change-Id: Ifad34f2379189f3d461cb3b1c1813e258a2f8207
    Reviewed-on: https://chromium-review.googlesource.com/1240033
    Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
    Tested-by: Hidehiko Abe <hidehiko@chromium.org>
    Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>

Cc: ejcaruso@chromium.org hidehiko@chromium.org
Labels: M-72
Owner: ejcaruso@chromium.org
Status: Assigned (was: Available)
To mitigate the risk of leaving this orphaned, I'll pass the hot potato to Eric who is much more familiar with libchrome-y stuff here.

Also, I *think* this is only an issue in the unit tests, so it's probably not critical for M-72, but technically the regression would be in M-72.
Owner: briannorris@chromium.org
Status: Started (was: Assigned)
I banged my head on this a bit, and I think I can hack something in to fix this particular leak. There's likely more hiding behind the '#if !defined(DISABLE_WAKE_ON_WIFI)', but that's a problem for another day.
Project Member

Comment 17 by bugdroid1@chromium.org, Jan 11

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/d3457b0c76c3c6ec09f6d64767cf2676e04833fc

commit d3457b0c76c3c6ec09f6d64767cf2676e04833fc
Author: Brian Norris <briannorris@chromium.org>
Date: Fri Jan 11 21:32:16 2019

shill: wake_on_wifi: run test with real dispatcher

See $BUG for more details, but libchrome's FileDescriptorWatcher wants
to post the deletion of its 'watcher_' to the message loop. This doesn't
work if we've mocked out all event dispatch, and instead we get a memory
leak.

BUG= chromium:908653 
TEST=unit tests, run under valgrind

Change-Id: I5c3ccd9b86d1704e8fe2a520697273a929b2444c
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1404104
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>

[modify] https://crrev.com/d3457b0c76c3c6ec09f6d64767cf2676e04833fc/shill/wifi/wake_on_wifi_test.cc

Status: Fixed (was: Started)
Should be fixed. I'm not waiting for another asan build to double check.

Sign in to add a comment