Skip to content
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

CreateWindowEx leaks on win8 #1250

Open
derekbruening opened this issue Nov 28, 2014 · 2 comments
Open

CreateWindowEx leaks on win8 #1250

derekbruening opened this issue Nov 28, 2014 · 2 comments

Comments

@derekbruening
Copy link
Contributor

From bruen...@google.com on May 24, 2013 14:23:58

I added a CreateWindowEx test for issue #1249 to app_suite but it has leaks, on win8 only

xref issue #1245 (win8 leaks on calc)
xref issue #17 (other false positive errors on CreateWindow)
xref http://crbug.com/92152 Error #1: LEAK 264 direct bytes 0x03a1d550-0x03a1d658 + 0 indirect bytes
#0 replace_RtlAllocateHeap [c:\derek\drmemory\git\src\common\alloc_replace.c:2908]
#1 combase.dll!LockEntry::ThreadInit [e:\obj.x86fre\com\combase\common\daytona\objfre\i386\rwlock_ole32.cxx:703]
#2 combase.dll!CoGetErrorInfo [d:\win8_gdr\com\combase\class\cerror.cxx:196]
#3 tiptsf.dll!TabletCallWndProc
#4 USER32.dll!DispatchHookW
#5 USER32.dll!fnHkINLPCWPSTRUCTW
#6 USER32.dll!__fnINOUTLPPOINT5
#7 ntdll.dll!KiUserCallbackDispatcher
#8 USER32.dll!CreateWindowInternal
#9 USER32.dll!CreateWindowExA
#10 NtUserTests_WindowMessages_Test::TestBody [c:\derek\drmemory\git\src\tests\app_suite\ntuser_tests_win.cpp:301]
#11 testing::internal::HandleSehExceptionsInMethodIfSupportedtesting::Test,void [c:\derek\drmemory\git\src\third_party\googletest\src\gtest.cc:2075]

Error #2: POSSIBLE LEAK 24 direct bytes 0x03a1d678-0x03a1d690 + 0 indirect bytes
#0 replace_RtlAllocateHeap [c:\derek\drmemory\git\src\common\alloc_replace.c:2908]
#1 combase.dll!EventPoolEntry::CreatePoolEntry [e:\obj.x86fre\com\combase\common\daytona\objfre\i386\rwlock_ole32.cxx:1204]
#2 combase.dll!EventPoolEntry::ThreadInit [e:\obj.x86fre\com\combase\common\daytona\objfre\i386\rwlock_ole32.cxx:1429]
#3 combase.dll!TLSPreallocateData [d:\win8_gdr\com\combase\class\tls.cxx:365]
#4 combase.dll!CoGetErrorInfo [d:\win8_gdr\com\combase\class\cerror.cxx:196]
#5 tiptsf.dll!TabletCallWndProc
#6 USER32.dll!DispatchHookW
#7 USER32.dll!fnHkINLPCWPSTRUCTW
#8 USER32.dll!__fnINOUTLPPOINT5
#9 ntdll.dll!KiUserCallbackDispatcher
#10 USER32.dll!CreateWindowInternal
#11 USER32.dll!CreateWindowExA

Original issue: http://code.google.com/p/drmemory/issues/detail?id=1250

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on May 24, 2013 11:28:34

hmm actually these are in callbacks, not really in CreateWindow? or do we
not trust the callstack? issue #1140 's "closed-MessageBox E" suppression suppresses these on the test for now

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on June 18, 2013 14:56:58

** TODO leaks on the new win8 bot

win8 bot:

Error #1: LEAK 264 direct bytes 0x03448b00-0x03448c08 + 0 indirect bytes

0 replace_RtlAllocateHeap (0x7397d080 <drmemorylib.dll+0x17d080>)

e:\b\build\slave\win-8_x64-drm\drmemory\common\alloc_replace.c:2982

1 combase.dll!CoCreateFreeThreadedMarshaler (0x7501d621 <combase.dll+0x1d621>)

??:0

2 combase.dll!CoCreateFreeThreadedMarshaler (0x7501d723 <combase.dll+0x1d723>)

??:0

3 combase.dll!CoInitializeEx (0x75019e37 <combase.dll+0x19e37>)

??:0

4 IMM32.dll!ImmLoadIME (0x75203888 <IMM32.dll+0x3888>)

??:0

5 IMM32.dll!ImmLoadIME (0x75203761 <IMM32.dll+0x3761>)

??:0

6 IMM32.dll!ImmSetActiveContext (0x75202aa2 <IMM32.dll+0x2aa2>)

??:0

7 USER32.dll!CreateWindowExW (0x76f2d9cf <USER32.dll+0xd9cf>)

??:0

8 USER32.dll!CreateWindowExW (0x76f2d996 <USER32.dll+0xd996>)

??:0

9 USER32.dll!SendMessageW (0x76f2ac3d <USER32.dll+0xac3d>)

??:0

#10 USER32.dll!SendMessageW (0x76f2ac77 <USER32.dll+0xac77>)
??:0
#11 USER32.dll!gapfnScSendMessage (0x76f277d8 <USER32.dll+0x77d8>)
??:0

Error #2: POSSIBLE LEAK 24 direct bytes 0x03448c28-0x03448c40 + 0 indirect bytes

0 replace_RtlAllocateHeap (0x7397d080 <drmemorylib.dll+0x17d080>)

e:\b\build\slave\win-8_x64-drm\drmemory\common\alloc_replace.c:2982

1 combase.dll!CoGetClassObject (0x75033bf1 <combase.dll+0x33bf1>)

??:0

2 combase.dll!CoGetClassObject (0x75033c42 <combase.dll+0x33c42>)

??:0

3 combase.dll!CoCreateFreeThreadedMarshaler (0x7501d566 <combase.dll+0x1d566>)

??:0

4 combase.dll!CoCreateFreeThreadedMarshaler (0x7501d723 <combase.dll+0x1d723>)

??:0

5 combase.dll!CoInitializeEx (0x75019e37 <combase.dll+0x19e37>)

??:0

6 IMM32.dll!ImmLoadIME (0x75203888 <IMM32.dll+0x3888>)

??:0

7 IMM32.dll!ImmLoadIME (0x75203761 <IMM32.dll+0x3761>)

??:0

8 IMM32.dll!ImmSetActiveContext (0x75202aa2 <IMM32.dll+0x2aa2>)

??:0

9 USER32.dll!CreateWindowExW (0x76f2d9cf <USER32.dll+0xd9cf>)

??:0

#10 USER32.dll!CreateWindowExW (0x76f2d996 <USER32.dll+0xd996>)
??:0
#11 USER32.dll!SendMessageW (0x76f2ac3d <USER32.dll+0xac3d>)
??:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant