My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 369: Memory leak in RtlAllocateActivationContextStack/LdrInitializeThunk
1 person starred this issue and may be notified of changes. Back to list
Project Member Reported by, Apr 28, 2011
On the code from  issue 360  and Win7 (not XP32), I see the following memory leak:
Error #1: LEAK 24 direct bytes 0x004fcdb8-0x004fcdd0 + 0 indirect bytes
0x77459fcb <ntdll.dll+0x39fcb> ntdll.dll!RtlAllocateActivationContextStack
0x7745a084 <ntdll.dll+0x3a084> ntdll.dll!RtlAllocateActivationContextStack
0x77459e5c <ntdll.dll+0x39e5c> ntdll.dll!RtlDecodePointer
0x77459e89 <ntdll.dll+0x39e89> ntdll.dll!LdrInitializeThunk
Derek, have you seen this leak before?

I'll re-run with symbols
Apr 28, 2011
Project Member #1
  _NT_SYMBOL_PATH=C:\src\symbols ./bin/drmemory.exe -batch -- threads_win.exe
with "wntdll.pdb" in C:\src\symbols haven't changed a thing.
Apr 28, 2011
Project Member #2
xref  issue 249 : RtlAllocateActivationContextStack leak auto-suppressed when
called from createthread but was not analyzed enough, should be revisited

xref  issue 352 : RtlCreateActivationContext allocated by csrss

May 5, 2011
Project Member #3
Also seen on our Win7 bot
  together with a probably-related stack:
Error #2: LEAK 44 direct bytes 0x002ae878-0x002ae8a4 + 44 indirect bytes
0x77ea1c1e <ntdll.dll+0x61c1e> ntdll.dll!EtwGetTraceEnableFlags
0x77e7a06d <ntdll.dll+0x3a06d> ntdll.dll!RtlAllocateActivationContextStack
0x77e79e2c <ntdll.dll+0x39e2c> ntdll.dll!RtlDecodePointer
0x77e79e59 <ntdll.dll+0x39e59> ntdll.dll!LdrInitializeThunk
May 5, 2011
Project Member #4
... and these Vista guys are probably related too
Error #2: LEAK 28 direct bytes 0x0c714260-0x0c71427c + 44 indirect bytes
0x77c6caae <ntdll.dll+0x3caae> ntdll.dll!RtlQueryAtomInAtomTable
0x77c637c7 <ntdll.dll+0x337c7> ntdll.dll!RtlAllocateActivationContextStack
0x77c9f6df <ntdll.dll+0x6f6df> ntdll.dll!LdrInitShimEngineDynamic
0x77c63603 <ntdll.dll+0x33603> ntdll.dll!LdrInitializeThunk

Error #4: LEAK 24 direct bytes 0x0c70fd88-0x0c70fda0 + 0 indirect bytes
0x77c6369a <ntdll.dll+0x3369a> ntdll.dll!RtlAllocateActivationContextStack
0x77c85e31 <ntdll.dll+0x55e31> ntdll.dll!RtlAllocateHeap
0x77c9f6df <ntdll.dll+0x6f6df> ntdll.dll!LdrInitShimEngineDynamic
0x77c63603 <ntdll.dll+0x33603> ntdll.dll!LdrInitializeThunk
Sign in to add a comment

Powered by Google Project Hosting