DynamoRIO / DynamoRIO/drmemory

Strange leak below FreeAddrInfoW on Chromium base and net unittests

Open
#438 2 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Component-LeakCheck Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on June 03, 2011 12:28:48_

(base: couldn't identify the particular test case yet) http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/4044/steps/memory%20test%3A%20base/logs/stdio LEAK 88 direct bytes 0x02df8538-0x02df8590 + 0 indirect bytes
#1 Ordinal496 WS2_32.dll+0x260c
#2 FreeAddrInfoW WS2_32.dll+0x2b76
#3 FreeAddrInfoW WS2_32.dll+0x2c61
#4 WSAProviderConfigChange WS2_32.dll+0x8c52
#5 RpcServerUseProtseqExW RPCRT4.dll+0x2743f
#6 I_RpcBCacheFree RPCRT4.dll+0x72a0
#7 I_RpcBCacheFree RPCRT4.dll+0x7328
#8 I_RpcBCacheFree RPCRT4.dll+0x6ad1
#9 I_RpcBCacheFree RPCRT4.dll+0x6c97
#10 GetModuleFileNameA KERNEL32.dll+0xb729

(net: reproducible on XP32 with --gtest_filter="HostRe_.A_Lookup_") http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/4044/steps/memory%20test%3A%20net_1/logs/stdio LEAK 88 direct bytes 0x00377ad0-0x00377b28 + 0 indirect bytes
#1 Ordinal496 WS2_32.dll+0x260c
#2 FreeAddrInfoW WS2_32.dll+0x2b76
#3 FreeAddrInfoW WS2_32.dll+0x2c61
#4 WSAStringToAddressW WS2_32.dll+0x2838
#5 GetAddrInfoW WS2_32.dll+0x29d0
#6 getaddrinfo WS2_32.dll+0x2aca
#7 net::SystemHostResolverProc net\base\host_resolver_proc.cc:199
#8 net::RuleBasedHostResolverProc::Resolve net\base\mock_host_resolver.cc:256
#9 net::HostResolverProc::ResolveUsingPrevious net\base\host_resolver_proc.cc:78
#10 net::LookupAttemptHostResolverProc::Resolve net\base\host_resolver_impl_unittest.cc:226
#11 net::ResolveAddrInfo net\base\host_resolver_impl.cc:172
#12 net::HostResolverImpl::Job::DoLookup net\base\host_resolver_impl.cc:546
#13 DispatchToMethod base\tuple.h:558
#14 RunnableMethod >::Run base\task.h:338
#15 base::`anonymous namespace'::WorkItemCallback base\threading\worker_pool_win.cc:16
#16 RtlGUIDFromString ntdll.dll+0x2796d
#17 RtlGUIDFromString ntdll.dll+0x279ab
#18 RtlGUIDFromString ntdll.dll+0x27a6d
#19 RtlGUIDFromString ntdll.dll+0x27a44
#20 GetModuleFileNameA KERNEL32.dll+0xb729

So far I couldn't understand why the latter is reported (the getaddrinfo is matched with freeaddrinfo)

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=438_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.