==31287== Memcheck, a memory error detector ==31287== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==31287== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==31287== Command: /home/dank/wine-git/wine ./sbox_unittests.exe --gtest_filter=RestrictedTokenTest.*- ==31287== ==31288== Memcheck, a memory error detector ==31288== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==31288== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==31288== Command: /usr/bin/dirname /home/dank/wine-git/wine ==31288== ==31288== ==31288== HEAP SUMMARY: ==31288== in use at exit: 0 bytes in 0 blocks ==31288== total heap usage: 1,387 allocs, 1,387 frees, 76,062 bytes allocated ==31288== ==31288== All heap blocks were freed -- no leaks are possible ==31288== ==31288== For counts of detected and suppressed errors, rerun with: -v ==31288== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 5) ==31287== ==31287== HEAP SUMMARY: ==31287== in use at exit: 10,072 bytes in 57 blocks ==31287== total heap usage: 70 allocs, 13 frees, 15,958 bytes allocated ==31287== ==31287== LEAK SUMMARY: ==31287== definitely lost: 0 bytes in 0 blocks ==31287== indirectly lost: 0 bytes in 0 blocks ==31287== possibly lost: 0 bytes in 0 blocks ==31287== still reachable: 10,072 bytes in 57 blocks ==31287== suppressed: 0 bytes in 0 blocks ==31287== Reachable blocks (those to which a pointer was found) are not shown. ==31287== To see them, rerun with: --leak-check=full --show-reachable=yes ==31287== ==31287== For counts of detected and suppressed errors, rerun with: -v ==31287== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 5) ==31290== Memcheck, a memory error detector ==31290== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==31290== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==31290== Command: /bin/uname -s ==31290== ==31290== ==31290== HEAP SUMMARY: ==31290== in use at exit: 0 bytes in 0 blocks ==31290== total heap usage: 1,387 allocs, 1,387 frees, 76,062 bytes allocated ==31290== ==31290== All heap blocks were freed -- no leaks are possible ==31290== ==31290== For counts of detected and suppressed errors, rerun with: -v ==31290== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 5 from 5) ==31287== Memcheck, a memory error detector ==31287== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==31287== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==31287== Command: /home/dank/wine-git/loader/wine ./sbox_unittests.exe --gtest_filter=RestrictedTokenTest.*- ==31287== ==31287== Memcheck, a memory error detector ==31287== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==31287== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==31287== Command: /home/dank/wine-git/loader/wine-preloader /home/dank/wine-git/loader/wine ./sbox_unittests.exe --gtest_filter=RestrictedTokenTest.*- ==31287== preloader: Warning: failed to reserve range 00110000-68000000 ==31287== Warning: set address range perms: large range [0x82000000, 0xfe8e0000) (defined) ==31287== ==31287== LOAD_PDB_DEBUGINFO(fd=10, avma=0x400000, total_size=2097152, uu_reloc=0x0) ==31287== LOAD_PDB_DEBUGINFO: objname: /home/dank/demo/src/chrome/Debug/sbox_unittests.exe ==31287== LOAD_PDB_DEBUGINFO: pdbname: /home/dank/demo/src/chrome/Debug/sbox_unittests.pdb --31287-- PDB_READER: --31287-- BIAS_FOR_SYMBOLS = 0x00400000 (di->rx_map_avma) --31287-- BIAS_FOR_LINETAB = 0x00400000 (di->rx_map_avma) --31287-- BIAS_FOR_LINETAB2 = 0x00401000 (di->text_bias) --31287-- BIAS_FOR_FPO = 0x00000000 0 --31287-- RELOC = 0x00000000 ==31287== warning: ignoring line info entry with huge line number (16707566) ==31287== Can't handle line numbers greater than 1048575, sorry ==31287== (Nb: this message is only shown once) --31287-- # symbols read = 7433 --31287-- # lines read = 0 --31287-- # line2s read = 50763 --31287-- # fpos read = 185 Note: Google Test filter = RestrictedTokenTest.*- [==========] Running 17 tests from 1 test case. [----------] Global test environment set-up. [----------] 17 tests from RestrictedTokenTest [ RUN ] RestrictedTokenTest.InvalidHandle [ OK ] RestrictedTokenTest.InvalidHandle (65 ms) [ RUN ] RestrictedTokenTest.DefaultInit [ OK ] RestrictedTokenTest.DefaultInit (218 ms) [ RUN ] RestrictedTokenTest.CustomInit fixme:ntdll:NtSetInformationToken unimplemented class 5 [ OK ] RestrictedTokenTest.CustomInit (55 ms) [ RUN ] RestrictedTokenTest.ResultToken fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x7f3a09c0, 0x7f21fa64): stub .\src\restricted_token_unittest.cc(108): error: Value of: token.GetRestrictedTokenHandle(&restricted_token) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.ResultToken (233 ms) [ RUN ] RestrictedTokenTest.DefaultDacl fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x7f3a0b68, 0x7f21f9d8): stub .\src\restricted_token_unittest.cc(149): error: Value of: token.GetRestrictedTokenHandle(&handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DefaultDacl (44 ms) [ RUN ] RestrictedTokenTest.DenySid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 1, 0x7f3a0b68, 0, (nil), 0, (nil), 0x7f21fa60): stub .\src\restricted_token_unittest.cc(180): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySid (48 ms) [ RUN ] RestrictedTokenTest.DenySids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 6, 0x7f3a0af0, 0, (nil), 0, (nil), 0x7f21fb08): stub .\src\restricted_token_unittest.cc(207): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySids (65 ms) [ RUN ] RestrictedTokenTest.DenySidsException fixme:advapi:CreateRestrictedToken (0x44, 0x0, 5, 0x7f3a1900, 0, (nil), 0, (nil), 0x7f21fa20): stub .\src\restricted_token_unittest.cc(239): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySidsException (50 ms) [ RUN ] RestrictedTokenTest.DenyOwnerSid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 1, 0x7f3a1900, 0, (nil), 0, (nil), 0x7f21fa90): stub .\src\restricted_token_unittest.cc(272): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenyOwnerSid (47 ms) [ RUN ] RestrictedTokenTest.DeleteAllPrivileges fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 20, 0x7f3a1ad0, 0, (nil), 0x7f21fb3c): stub .\src\restricted_token_unittest.cc(302): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeleteAllPrivileges (119 ms) [ RUN ] RestrictedTokenTest.DeleteAllPrivilegesException fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 19, 0x7f3a1ad0, 0, (nil), 0x7f21fab0): stub .\src\restricted_token_unittest.cc(323): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeleteAllPrivilegesException (150 ms) [ RUN ] RestrictedTokenTest.DeletePrivilege fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 1, 0x7f3a1890, 0, (nil), 0x7f21fb10): stub .\src\restricted_token_unittest.cc(350): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeletePrivilege (45 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x7f3a0a40, 0x7f21fb08): stub .\src\restricted_token_unittest.cc(411): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSid (43 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSidCurrentUser fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x7f3a1e30, 0x7f21fb40): stub .\src\restricted_token_unittest.cc(426): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSidCurrentUser (46 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSidLogonSession fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x7f3a1e30, 0x7f21fb40): stub .\src\restricted_token_unittest.cc(443): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSidLogonSession (48 ms) [ RUN ] RestrictedTokenTest.AddMultipleRestrictingSids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 3, 0x7f3a1220, 0x7f21f9c4): stub .\src\restricted_token_unittest.cc(463): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddMultipleRestrictingSids (47 ms) [ RUN ] RestrictedTokenTest.AddAllSidToRestrictingSids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 8, 0x7f3a0d30, 0x7f21fab8): stub .\src\restricted_token_unittest.cc(492): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddAllSidToRestrictingSids (50 ms) [----------] 17 tests from RestrictedTokenTest (1533 ms total) [----------] Global test environment tear-down [==========] 17 tests from 1 test case ran. (1682 ms total) [ PASSED ] 3 tests. [ FAILED ] 14 tests, listed below: [ FAILED ] RestrictedTokenTest.ResultToken [ FAILED ] RestrictedTokenTest.DefaultDacl [ FAILED ] RestrictedTokenTest.DenySid [ FAILED ] RestrictedTokenTest.DenySids [ FAILED ] RestrictedTokenTest.DenySidsException [ FAILED ] RestrictedTokenTest.DenyOwnerSid [ FAILED ] RestrictedTokenTest.DeleteAllPrivileges [ FAILED ] RestrictedTokenTest.DeleteAllPrivilegesException [ FAILED ] RestrictedTokenTest.DeletePrivilege [ FAILED ] RestrictedTokenTest.AddRestrictingSid [ FAILED ] RestrictedTokenTest.AddRestrictingSidCurrentUser [ FAILED ] RestrictedTokenTest.AddRestrictingSidLogonSession [ FAILED ] RestrictedTokenTest.AddMultipleRestrictingSids [ FAILED ] RestrictedTokenTest.AddAllSidToRestrictingSids 14 FAILED TESTS ==31287== ==31287== HEAP SUMMARY: ==31287== in use at exit: 761,310 bytes in 5,534 blocks ==31287== total heap usage: 298,493 allocs, 292,959 frees, 23,935,126 bytes allocated ==31287== ==31287== 16 bytes in 1 blocks are definitely lost in loss record 123 of 705 ==31287== at 0xCCB7905: notify_alloc (heap.c:214) ==31287== by 0xCCB77CB: RtlAllocateHeap (heap.c:1421) ==31287== by 0xCCDADF5: RtlAllocateAndInitializeSid (sec.c:156) ==31287== by 0xCCC27F7: NtQueryInformationToken (nt.c:379) ==31287== by 0xCF55E2E: GetTokenInformation (security.c:676) ==31287== by 0x42F1CB: ATL::CAccessToken::GetInfoConvert (atlsecurity.h:754) ==31287== by 0x41D40D: ATL::CAccessToken::GetPrimaryGroup (atlsecurity.inl:3623) ==31287== by 0x41C671: sandbox::RestrictedTokenTest_CustomInit_Test::TestBody (restricted_token_unittest.cc:92) ==31287== by 0x45EBD7: testing::Test::Run (gtest.cc:2044) ==31287== by 0x45F892: testing::internal::TestInfoImpl::Run (gtest.cc:2288) ==31287== by 0x45FF00: testing::TestCase::Run (gtest.cc:2396) ==31287== by 0x464F2E: testing::internal::UnitTestImpl::RunAllTests (gtest.cc:3995) ==31287== by 0x463D75: testing::UnitTest::Run (gtest.cc:3653) ==31287== by 0x4593E0: wmain (unit_tests.cc:15) ==31287== by 0x4BD3A5: __tmainCRTStartup (crt0.c:266) ==31287== by 0x4BD27E: wmainCRTStartup (crt0.c:181) ==31287== by 0xCE16EB3: start_process (process.c:1024) ==31287== by 0xCCE7BA3: ??? (signal_i386.c:2279) ==31287== by 0xCCE7BE1: call_thread_entry_point (signal_i386.c:2306) ==31287== by 0xCCBFBFA: start_process (loader.c:2458) ==31287== by 0xC5300C4: ??? (port.c:84) ==31287== { Memcheck:Leak fun:notify_alloc fun:RtlAllocateHeap fun:RtlAllocateAndInitializeSid fun:NtQueryInformationToken fun:GetTokenInformation fun:ATL::CAccessToken::GetInfoConvert fun:ATL::CAccessToken::GetPrimaryGroup fun:sandbox::RestrictedTokenTest_CustomInit_Test::TestBody fun:testing::Test::Run fun:testing::internal::TestInfoImpl::Run fun:testing::TestCase::Run fun:testing::internal::UnitTestImpl::RunAllTests fun:testing::UnitTest::Run fun:wmain fun:__tmainCRTStartup fun:wmainCRTStartup fun:start_process obj:/home/dank/wine-git/dlls/ntdll/ntdll.dll.so fun:call_thread_entry_point fun:start_process obj:/home/dank/wine-git/libs/wine/libwine.so.1.0 } ==31287== 16 bytes in 1 blocks are definitely lost in loss record 124 of 705 ==31287== at 0xCCB7905: notify_alloc (heap.c:214) ==31287== by 0xCCB77CB: RtlAllocateHeap (heap.c:1421) ==31287== by 0xCCDADF5: RtlAllocateAndInitializeSid (sec.c:156) ==31287== by 0xCCC27F7: NtQueryInformationToken (nt.c:379) ==31287== by 0xCF55E2E: GetTokenInformation (security.c:676) ==31287== by 0x42F1CB: ATL::CAccessToken::GetInfoConvert (atlsecurity.h:754) ==31287== by 0x41D40D: ATL::CAccessToken::GetPrimaryGroup (atlsecurity.inl:3623) ==31287== by 0x41C728: sandbox::RestrictedTokenTest_CustomInit_Test::TestBody (restricted_token_unittest.cc:93) ==31287== by 0x45EBD7: testing::Test::Run (gtest.cc:2044) ==31287== by 0x45F892: testing::internal::TestInfoImpl::Run (gtest.cc:2288) ==31287== by 0x45FF00: testing::TestCase::Run (gtest.cc:2396) ==31287== by 0x464F2E: testing::internal::UnitTestImpl::RunAllTests (gtest.cc:3995) ==31287== by 0x463D75: testing::UnitTest::Run (gtest.cc:3653) ==31287== by 0x4593E0: wmain (unit_tests.cc:15) ==31287== by 0x4BD3A5: __tmainCRTStartup (crt0.c:266) ==31287== by 0x4BD27E: wmainCRTStartup (crt0.c:181) ==31287== by 0xCE16EB3: start_process (process.c:1024) ==31287== by 0xCCE7BA3: ??? (signal_i386.c:2279) ==31287== by 0xCCE7BE1: call_thread_entry_point (signal_i386.c:2306) ==31287== by 0xCCBFBFA: start_process (loader.c:2458) ==31287== by 0xC5300C4: ??? (port.c:84) ==31287== { Memcheck:Leak fun:notify_alloc fun:RtlAllocateHeap fun:RtlAllocateAndInitializeSid fun:NtQueryInformationToken fun:GetTokenInformation fun:ATL::CAccessToken::GetInfoConvert fun:ATL::CAccessToken::GetPrimaryGroup fun:sandbox::RestrictedTokenTest_CustomInit_Test::TestBody fun:testing::Test::Run fun:testing::internal::TestInfoImpl::Run fun:testing::TestCase::Run fun:testing::internal::UnitTestImpl::RunAllTests fun:testing::UnitTest::Run fun:wmain fun:__tmainCRTStartup fun:wmainCRTStartup fun:start_process obj:/home/dank/wine-git/dlls/ntdll/ntdll.dll.so fun:call_thread_entry_point fun:start_process obj:/home/dank/wine-git/libs/wine/libwine.so.1.0 } ==31287== LEAK SUMMARY: ==31287== definitely lost: 32 bytes in 2 blocks ==31287== indirectly lost: 120 bytes in 10 blocks ==31287== possibly lost: 0 bytes in 0 blocks ==31287== still reachable: 667,102 bytes in 2,493 blocks ==31287== suppressed: 94,056 bytes in 3,029 blocks ==31287== Reachable blocks (those to which a pointer was found) are not shown. ==31287== To see them, rerun with: --leak-check=full --show-reachable=yes ==31287== ==31287== For counts of detected and suppressed errors, rerun with: -v ==31287== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 505 from 54)