My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  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 timurrrr@google.com, 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
    ??:0
0x7745a084 <ntdll.dll+0x3a084> ntdll.dll!RtlAllocateActivationContextStack
    ??:0
0x77459e5c <ntdll.dll+0x39e5c> ntdll.dll!RtlDecodePointer
    ??:0
0x77459e89 <ntdll.dll+0x39e89> ntdll.dll!LdrInitializeThunk
    ??:0
===
Derek, have you seen this leak before?

I'll re-run with symbols
Apr 28, 2011
Project Member #1 timurrrr@google.com
Running
  _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 bruen...@google.com
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 timurrrr@google.com
Also seen on our Win7 bot
http://build.chromium.org/p/client.drmemory/builders/win-7_x64-drm/builds/1077/steps/Run%20TSan%20tests/logs/summary%3A%202%20report%28s%29
  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 timurrrr@google.com
... and these Vista guys are probably related too
http://build.chromium.org/p/client.drmemory/builders/win-vista_x64-drm/builds/947/steps/Run%20TSan%20tests/logs/summary%3A%204%20report%28s%29
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