-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uninits and leaks when using CoInitialize/CoCreateInstance #425
Comments
From [email protected] on June 02, 2011 07:00:19 if I add the following line: I've seen exactly the same leak on Chromium base_unittests locally and some similar leaks on net_: http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/3925/steps/memory%20test%3A%20net_1/logs/stdio POSSIBLE LEAK 264 direct bytes 0x00191690-0x00191798 + 0 indirect bytes 1 0x77e781f9 I_RpcBCacheFree RPCRT4.dll2 0x77e781d0 I_RpcBCacheFree RPCRT4.dll3 0x77e78ab4 NdrOleFree RPCRT4.dll4 0x77e78498 I_RpcBCacheFree RPCRT4.dll5 0x77e78998 NdrOleFree RPCRT4.dll6 0x77e78ef5 I_RpcGetBufferWithObject RPCRT4.dll7 0x77e78f10 I_RpcGetBuffer RPCRT4.dll8 0x77e79571 NdrGetBuffer RPCRT4.dll9 0x77ef560b NdrClientCall2 RPCRT4.dll... |
From [email protected] on June 29, 2011 06:06:55 looks very much related: http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/4409/steps/memory%20test%3A%20net/logs/stdio (w/o PDB symbols) 1 I_RpcBCacheFree RPCRT4.dll+0x81f92 I_RpcBCacheFree RPCRT4.dll+0x81d03 NdrConformantArrayFree RPCRT4.dll+0xd2324 RpcBindingFromStringBindingW RPCRT4.dll+0xe8df5 ? DHCPCSVC.DLL+0x2a996 RpcStringBindingComposeW RPCRT4.dll+0xec3a7 RpcStringBindingComposeW RPCRT4.dll+0xec678 NdrClientCall2 RPCRT4.dll+0x8558d9 DhcpRequestOptions DHCPCSVC.DLL+0x460c#10 DhcpRequestParams DHCPCSVC.DLL+0x116f0 (also see issue #476 ) |
From [email protected] on July 18, 2011 06:43:30 One more code snippet: #include <windows.h> #include <stdio.h> #pragma comment(lib, "ole32.lib") class ScopedCOMInitializer {
private: int main() {
} -> [XP 32-bits, w/o symbols] |
From [email protected] on May 30, 2011 06:06:33
As of r313 ,
#include <windows.h>
#include <stdio.h>
#include <shobjidl.h>
#include <shlguid.h>
#pragma comment(lib, "ole32.lib")
int main() {
::CoInitialize(NULL);
}
Gives the following reports (besides known false positives):
Error
#7
: UNINITIALIZED READ: reading 0x001672e0-0x001672e1 1 byte(s)@0:00:05.344 in thread 16412
0x76fda30f <CLBCatQ.DLL+0xa30f> CLBCatQ.DLL!DestroyStgDatabase
0x76fd7178 <CLBCatQ.DLL+0x7178> CLBCatQ.DLL!PostError
0x76fd7132 <CLBCatQ.DLL+0x7132> CLBCatQ.DLL!PostError
0x76fd6d24 <CLBCatQ.DLL+0x6d24> CLBCatQ.DLL!PostError
0x76fd73d4 <CLBCatQ.DLL+0x73d4> CLBCatQ.DLL!PostError
0x76fd6c72 <CLBCatQ.DLL+0x6c72> CLBCatQ.DLL!PostError
0x76fd74c8 <CLBCatQ.DLL+0x74c8> CLBCatQ.DLL!PostError
0x76fd308f <CLBCatQ.DLL+0x308f> CLBCatQ.DLL!?
0x7c90118a <ntdll.dll+0x118a> ntdll.dll!LdrInitializeThunk
0x7c9224ca <ntdll.dll+0x224ca> ntdll.dll!RtlDestroyEnvironment
0x7c81caae <KERNEL32.dll+0x1caae> KERNEL32.dll!IsValidLocale
0x7c81cb26 <KERNEL32.dll+0x1cb26> KERNEL32.dll!ExitProcess
Error
#8
: UNINITIALIZED READ: reading 0x00167424-0x00167425 1 byte(s)@0:00:05.391 in thread 16412
0x76fda30f <CLBCatQ.DLL+0xa30f> CLBCatQ.DLL!DestroyStgDatabase
0x76fd7132 <CLBCatQ.DLL+0x7132> CLBCatQ.DLL!PostError
0x76fd6d24 <CLBCatQ.DLL+0x6d24> CLBCatQ.DLL!PostError
0x76fd73d4 <CLBCatQ.DLL+0x73d4> CLBCatQ.DLL!PostError
0x76fd6c72 <CLBCatQ.DLL+0x6c72> CLBCatQ.DLL!PostError
0x76fd74c8 <CLBCatQ.DLL+0x74c8> CLBCatQ.DLL!PostError
0x76fd308f <CLBCatQ.DLL+0x308f> CLBCatQ.DLL!?
0x7c90118a <ntdll.dll+0x118a> ntdll.dll!LdrInitializeThunk
0x7c9224ca <ntdll.dll+0x224ca> ntdll.dll!RtlDestroyEnvironment
0x7c81caae <KERNEL32.dll+0x1caae> KERNEL32.dll!IsValidLocale
0x7c81cb26 <KERNEL32.dll+0x1cb26> KERNEL32.dll!ExitProcess
0x00402aa2 <test.exe+0x2aa2> test.exe!__crtExitProcess
Original issue: http://code.google.com/p/drmemory/issues/detail?id=425
The text was updated successfully, but these errors were encountered: