Skip to content

Instantly share code, notes, and snippets.

@KindDragon
Created October 9, 2015 22:50
Show Gist options
  • Save KindDragon/06b1dc5e13f62956eb0c to your computer and use it in GitHub Desktop.
Save KindDragon/06b1dc5e13f62956eb0c to your computer and use it in GitHub Desktop.
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\vld_main.exe'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\vld_x86.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\dbghelp.dll'. Symbols loaded.
Visual Leak Detector read settings from: d:\Work\vld\src\bin\vld.ini
Visual Leak Detector Version 2.4RC2 installed.
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 9 at 0x012C8488: 164 bytes ----------
Leak Hash: 0x88DCF991, Count: 1, Total 164 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (774): vld_main.exe!_recalloc_dbg() + 0x19 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (112): vld_main.exe!<lambda_942beefa13ab35ff55f86422493ffd6a>::operator()() + 0x18 bytes
d:\th\minkernel\crts\ucrt\devdiv\vcruntime\inc\internal_shared.h (199): vld_main.exe!__crt_seh_guarded_call<int>::operator()<<lambda_821a00fc0e15a7fd532972332124005d>,<lambda_942beefa13ab35ff55f86422493ffd6a> &,<lambda_3ab53bf64df1f1ff33dbc5b1929ce7a7> >() + 0x8 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal.h (882): vld_main.exe!__acrt_lock_and_call<<lambda_942beefa13ab35ff55f86422493ffd6a> >()
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (148): vld_main.exe!_register_onexit_function() + 0x18 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (43): vld_main.exe!_crt_atexit() + 0xE bytes
f:\dd\vctools\crt\vcstartup\src\utility\utility.cpp (262): vld_main.exe!_onexit() + 0x9 bytes
f:\dd\vctools\crt\vcstartup\src\utility\utility.cpp (276): vld_main.exe!atexit() + 0x9 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (150): vld_main.exe!pre_c_initialization() + 0xA bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (40): vld_main.exe!_initterm_e() + 0x3 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (227): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
D8 2F 2D 01 30 87 2C 01 38 40 1A 00 70 00 00 00 ./-.0.,. 8@..p...
02 00 00 00 80 00 00 00 09 00 00 00 FD FD FD FD ........ ........
48 84 E5 89 48 97 86 80 48 A7 7C 99 48 A7 7C 99 H...H... H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
FD FD FD FD ........ ........
---------- Block 71 at 0x012C8538: 46 bytes ----------
Leak Hash: 0x759BD0D1, Count: 1, Total 46 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (20): vld_main.exe!`dynamic initializer for 's_m''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
58 6F 2D 01 D0 7B 2D 01 00 00 00 00 00 00 00 00 Xo-..{-. ........
01 00 00 00 0A 00 00 00 47 00 00 00 FD FD FD FD ........ G.......
CD CD CD CD CD CD CD CD CD CD FD FD FD FD ........ ........
---------- Block 73 at 0x012CA530: 40 bytes ----------
Leak Hash: 0xA7826BE0, Count: 1, Total 40 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_scalar.cpp (19): vld_main.exe!operator new() + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (23): vld_main.exe!`dynamic initializer for 'pml''() + 0x44 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
D0 7B 2D 01 10 7C 2D 01 00 00 00 00 00 00 00 00 .{-..|-. ........
01 00 00 00 04 00 00 00 49 00 00 00 FD FD FD FD ........ I.......
30 7C 2D 01 FD FD FD FD 0|-..... ........
---------- Block 79 at 0x012CAAA0: 96 bytes ----------
Leak Hash: 0xBCE376FC, Count: 1, Total 96 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new[]() + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (33): vld_main.exe!wmain() + 0x7 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
60 7D 2D 01 C0 7D 2D 01 00 00 00 00 00 00 00 00 `}-..}-. ........
01 00 00 00 3C 00 00 00 4F 00 00 00 FD FD FD FD ....<... O.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD FD FD FD FD ........ ........
---------- Block 76 at 0x012D6778: 66 bytes ----------
Leak Hash: 0x84C64C26, Count: 1, Total 66 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (26): vld_main.exe!`dynamic initializer for 'g_m''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
88 7C 2D 01 08 7D 2D 01 00 00 00 00 00 00 00 00 .|-..}-. ........
01 00 00 00 1E 00 00 00 4C 00 00 00 FD FD FD FD ........ L.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD FD FD ........ ........
FD FD ........ ........
---------- Block 70 at 0x012D6F58: 2084 bytes ----------
Leak Hash: 0xAE79B873, Count: 1, Total 2084 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (511): vld_main.exe!_calloc_dbg() + 0x15 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\_file.cpp (78): vld_main.exe!__acrt_initialize_stdio() + 0x16 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (40): vld_main.exe!_initterm_e() + 0x3 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (227): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
38 6B 2D 01 38 85 2C 01 48 BC 1B 00 4E 00 00 00 8k-.8.,. H...N...
02 00 00 00 00 08 00 00 46 00 00 00 FD FD FD FD ........ F.......
C0 58 1C 00 F8 58 1C 00 30 59 1C 00 00 00 00 00 .X...X.. 0Y......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
---------- Block 72 at 0x012D7BD0: 56 bytes ----------
Leak Hash: 0xFBA2AF4F, Count: 1, Total 56 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new[]() + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (21): vld_main.exe!`dynamic initializer for 's_n''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
38 85 2C 01 30 A5 2C 01 00 00 00 00 00 00 00 00 8.,.0.,. ........
01 00 00 00 14 00 00 00 48 00 00 00 FD FD FD FD ........ H.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD FD FD FD FD ........ ........
---------- Block 74 at 0x012D7C10: 106 bytes ----------
Leak Hash: 0x19465E2A, Count: 1, Total 106 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (14): vld_main.exe!MemoryLeak::MemoryLeak() + 0x2C bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (23): vld_main.exe!`dynamic initializer for 'pml''() + 0x77 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
30 A5 2C 01 88 7C 2D 01 00 00 00 00 00 00 00 00 0.,..|-. ........
01 00 00 00 46 00 00 00 4A 00 00 00 FD FD FD FD ....F... J.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD FD FD FD FD ........ ........
---------- Block 75 at 0x012D7C88: 116 bytes ----------
Leak Hash: 0x89703D5F, Count: 1, Total 116 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (14): vld_main.exe!MemoryLeak::MemoryLeak() + 0x2C bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (24): vld_main.exe!`dynamic initializer for 'ml''() + 0x36 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
10 7C 2D 01 78 67 2D 01 00 00 00 00 00 00 00 00 .|-.xg-. ........
01 00 00 00 50 00 00 00 4B 00 00 00 FD FD FD FD ....P... K.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
FD FD FD FD ........ ........
---------- Block 77 at 0x012D7D08: 76 bytes ----------
Leak Hash: 0x7744EC76, Count: 1, Total 76 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new[]() + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (27): vld_main.exe!`dynamic initializer for 'g_n''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
78 67 2D 01 60 7D 2D 01 00 00 00 00 00 00 00 00 xg-.`}-. ........
01 00 00 00 28 00 00 00 4D 00 00 00 FD FD FD FD ....(... M.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD FD FD FD FD ........ ........
---------- Block 78 at 0x012D7D60: 86 bytes ----------
Leak Hash: 0x66B7015C, Count: 1, Total 86 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (32): vld_main.exe!wmain() + 0x7 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
08 7D 2D 01 A0 AA 2C 01 00 00 00 00 00 00 00 00 .}-...,. ........
01 00 00 00 32 00 00 00 4E 00 00 00 FD FD FD FD ....2... N.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD FD FD FD FD ........ ........
---------- Block 80 at 0x012D7DC0: 4132 bytes ----------
Leak Hash: 0xA58360F9, Count: 1, Total 4132 bytes
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (491): vld_main.exe!_malloc_dbg() + 0x15 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\_sftbuf.cpp (64): vld_main.exe!__acrt_stdio_begin_temporary_buffering_nolock() + 0x13 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal_stdio.h (399): vld_main.exe!__acrt_stdio_temporary_buffering_guard::__acrt_stdio_temporary_buffering_guard() + 0x9 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (38): vld_main.exe!<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b>::operator()()
d:\th\minkernel\crts\ucrt\devdiv\vcruntime\inc\internal_shared.h (199): vld_main.exe!__crt_seh_guarded_call<int>::operator()<<lambda_db08b09ef7aa9d4f8620ce68402612bc>,<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b> &,<lambda_3ae262bc35d4ba6a3825c4f6bcaaf95c> >() + 0x8 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal_stdio.h (256): vld_main.exe!__acrt_lock_stream_and_call<<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b> >()
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (35): vld_main.exe!common_vfprintf<__crt_stdio_output::standard_base,char>() + 0x26 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (58): vld_main.exe!__stdio_common_vfprintf() + 0x1D bytes
c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h (639): vld_main.exe!_vfprintf_l() + 0x21 bytes
c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h (954): vld_main.exe!printf() + 0x1A bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (35): vld_main.exe!wmain() + 0x1A bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
A0 AA 2C 01 00 00 00 00 88 6A 1B 00 40 00 00 00 ..,..... .j..@...
02 00 00 00 00 10 00 00 50 00 00 00 FD FD FD FD ........ P.......
42 65 66 6F 72 65 20 65 78 69 74 20 31 31 0A CD Before.e xit.11..
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
@ioannis-e
Copy link

Please add

endWith(filename, len, L"\\crts\\ucrt\\src\\appcrt\\startup\\initterm.cpp") ||

in CallStack::isCrtStartupModule

this should leave us with only one rouge leak :)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\vld_main.exe'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\vld_x86.dll'. Symbols loaded.
'vld_main.exe' (Win32): Loaded 'D:\Work\vld\src\bin\Win32\Debug_StaticCrt-v140\dbghelp.dll'. Symbols loaded.
Visual Leak Detector read settings from: d:\Work\vld\src\bin\vld.ini
Visual Leak Detector Version 2.4RC2 installed.
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 9 at 0x012C8488: 164 bytes ----------
Leak Hash: 0x88DCF991, Count: 1, Total 164 bytes less 36 = 132 bytes => CRT leak
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (774): vld_main.exe!_recalloc_dbg() + 0x19 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (112): vld_main.exe!<lambda_942beefa13ab35ff55f86422493ffd6a>::operator()() + 0x18 bytes
d:\th\minkernel\crts\ucrt\devdiv\vcruntime\inc\internal_shared.h (199): vld_main.exe!__crt_seh_guarded_call::operator()<<lambda_821a00fc0e15a7fd532972332124005d>,<lambda_942beefa13ab35ff55f86422493ffd6a> &,<lambda_3ab53bf64df1f1ff33dbc5b1929ce7a7> >() + 0x8 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal.h (882): vld_main.exe!__acrt_lock_and_call<<lambda_942beefa13ab35ff55f86422493ffd6a> >()
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (148): vld_main.exe!_register_onexit_function() + 0x18 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\onexit.cpp (43): vld_main.exe!_crt_atexit() + 0xE bytes
f:\dd\vctools\crt\vcstartup\src\utility\utility.cpp (262): vld_main.exe!_onexit() + 0x9 bytes
f:\dd\vctools\crt\vcstartup\src\utility\utility.cpp (276): vld_main.exe!atexit() + 0x9 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (150): vld_main.exe!pre_c_initialization() + 0xA bytes
d:\th\minkernel \crts\ucrt\src\appcrt\startup\initterm.cpp (40): vld_main.exe!_initterm_e() + 0x3 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (227): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
D8 2F 2D 01 30 87 2C 01 38 40 1A 00 70 00 00 00 ./-.0.,. 8@..p...
02 00 00 00 80 00 00 00 09 00 00 00 FD FD FD FD ........ ........
48 84 E5 89 48 97 86 80 48 A7 7C 99 48 A7 7C 99 H...H... H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 48 A7 7C 99 H.|.H.|. H.|.H.|.
FD FD FD FD ........ ........

---------- Block 71 at 0x012C8538: 46 bytes ----------
Leak Hash: 0x759BD0D1, Count: 1, Total 46 bytes less 36 = 10 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (20): vld_main.exe!`dynamic initializer for 's_m''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
58 6F 2D 01 D0 7B 2D 01 00 00 00 00 00 00 00 00 Xo-..{-. ........
01 00 00 00 0A 00 00 00 47 00 00 00 FD FD FD FD ........ G.......
CD CD CD CD CD CD CD CD CD CD FD FD FD FD ........ ........

---------- Block 73 at 0x012CA530: 40 bytes ----------
Leak Hash: 0xA7826BE0, Count: 1, Total 40 bytes less 36 = 4 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_scalar.cpp (19): vld_main.exe!operator new() + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (23): vld_main.exe!`dynamic initializer for 'pml''() + 0x44 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
D0 7B 2D 01 10 7C 2D 01 00 00 00 00 00 00 00 00 .{-..|-. ........
01 00 00 00 04 00 00 00 49 00 00 00 FD FD FD FD ........ I.......
30 7C 2D 01 FD FD FD FD 0|-..... ........

---------- Block 79 at 0x012CAAA0: 96 bytes ----------
Leak Hash: 0xBCE376FC, Count: 1, Total 96 bytes less 36 = 60 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (33): vld_main.exe!wmain() + 0x7 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
60 7D 2D 01 C0 7D 2D 01 00 00 00 00 00 00 00 00 `}-..}-. ........
01 00 00 00 3C 00 00 00 4F 00 00 00 FD FD FD FD ....<... O.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD FD FD FD FD ........ ........

---------- Block 76 at 0x012D6778: 66 bytes ----------
Leak Hash: 0x84C64C26, Count: 1, Total 66 bytes less 36 = 30 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (26): vld_main.exe!`dynamic initializer for 'g_m''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
88 7C 2D 01 08 7D 2D 01 00 00 00 00 00 00 00 00 .|-..}-. ........
01 00 00 00 1E 00 00 00 4C 00 00 00 FD FD FD FD ........ L.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD FD FD ........ ........
FD FD ........ ........

---------- Block 70 at 0x012D6F58: 2084 bytes ----------
Leak Hash: 0xAE79B873, Count: 1, Total 2084 bytes less 36 = 2048 bytes => CRT leak
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (511): vld_main.exe!_calloc_dbg() + 0x15 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio_file.cpp (78): vld_main.exe!__acrt_initialize_stdio() + 0x16 bytes
d:\th\minkernel \crts\ucrt\src\appcrt\startup\initterm.cpp (40): vld_main.exe!_initterm_e() + 0x3 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (227): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
38 6B 2D 01 38 85 2C 01 48 BC 1B 00 4E 00 00 00 8k-.8.,. H...N...
02 00 00 00 00 08 00 00 46 00 00 00 FD FD FD FD ........ F.......
C0 58 1C 00 F8 58 1C 00 30 59 1C 00 00 00 00 00 .X...X.. 0Y......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........

---------- Block 72 at 0x012D7BD0: 56 bytes ----------
Leak Hash: 0xFBA2AF4F, Count: 1, Total 56 bytes less 36 = 20 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (21): vld_main.exe!`dynamic initializer for 's_n''() + 0x25 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
38 85 2C 01 30 A5 2C 01 00 00 00 00 00 00 00 00 8.,.0.,. ........
01 00 00 00 14 00 00 00 48 00 00 00 FD FD FD FD ........ H.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD FD FD FD FD ........ ........

---------- Block 74 at 0x012D7C10: 106 bytes ----------
Leak Hash: 0x19465E2A, Count: 1, Total 106 bytes less 36 = 70 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (14): vld_main.exe!MemoryLeak::MemoryLeak() + 0x2C bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (23): vld_main.exe!`dynamic initializer for 'pml''() + 0x77 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
30 A5 2C 01 88 7C 2D 01 00 00 00 00 00 00 00 00 0.,..|-. ........
01 00 00 00 46 00 00 00 4A 00 00 00 FD FD FD FD ....F... J.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD FD FD FD FD ........ ........

---------- Block 75 at 0x012D7C88: 116 bytes ----------
Leak Hash: 0x89703D5F, Count: 1, Total 116 bytes less 36 = 80 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (14): vld_main.exe!MemoryLeak::MemoryLeak() + 0x2C bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (24): vld_main.exe!`dynamic initializer for 'ml''() + 0x36 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm()
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
10 7C 2D 01 78 67 2D 01 00 00 00 00 00 00 00 00 .|-.xg-. ........
01 00 00 00 50 00 00 00 4B 00 00 00 FD FD FD FD ....P... K.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
FD FD FD FD ........ ........

---------- Block 77 at 0x012D7D08: 76 bytes ----------
Leak Hash: 0x7744EC76, Count: 1, Total 76 bytes less 36 = 40 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
f:\dd\vctools\crt\vcstartup\src\heap\new_array.cpp (15): vld_main.exe!operator new + 0x9 bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (27): vld_main.exe!dynamic initializer for 'g_n''() + 0x25 bytes d:\th\minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp (22): vld_main.exe!_initterm() f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (230): vld_main.exe!__scrt_common_main_seh() + 0xF bytes f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main() f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup() KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes ntdll.dll!__RtlUserThreadStart() + 0x2F bytes ntdll.dll!_RtlUserThreadStart() + 0x1B bytes Data: 78 67 2D 01 60 7D 2D 01 00 00 00 00 00 00 00 00 xg-.}-. ........
01 00 00 00 28 00 00 00 4D 00 00 00 FD FD FD FD ....(... M.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD FD FD FD FD ........ ........

---------- Block 78 at 0x012D7D60: 86 bytes ----------
Leak Hash: 0x66B7015C, Count: 1, Total 86 bytes less 36 = 50 bytes => our leak OK
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\malloc.cpp (18): vld_main.exe!malloc() + 0xF bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (32): vld_main.exe!wmain() + 0x7 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
08 7D 2D 01 A0 AA 2C 01 00 00 00 00 00 00 00 00 .}-...,. ........
01 00 00 00 32 00 00 00 4E 00 00 00 FD FD FD FD ....2... N.......
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD FD FD FD FD ........ ........

---------- Block 80 at 0x012D7DC0: 4132 bytes ----------
Leak Hash: 0xA58360F9, Count: 1, Total 4132 bytes less 36 = 4096 bytes => CRT leak
Call Stack (TID 15772):
ntdll.dll!RtlAllocateHeap()
d:\th\minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp (491): vld_main.exe!_malloc_dbg() + 0x15 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio_sftbuf.cpp (64): vld_main.exe!__acrt_stdio_begin_temporary_buffering_nolock() + 0x13 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal_stdio.h (399): vld_main.exe!__acrt_stdio_temporary_buffering_guard::__acrt_stdio_temporary_buffering_guard() + 0x9 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (38): vld_main.exe!<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b>::operator()()
d:\th\minkernel\crts\ucrt\devdiv\vcruntime\inc\internal_shared.h (199): vld_main.exe!__crt_seh_guarded_call::operator()<<lambda_db08b09ef7aa9d4f8620ce68402612bc>,<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b> &,<lambda_3ae262bc35d4ba6a3825c4f6bcaaf95c> >() + 0x8 bytes
d:\th\minkernel\crts\ucrt\inc\corecrt_internal_stdio.h (256): vld_main.exe!__acrt_lock_stream_and_call<<lambda_4f2c1eaeead2a5fc776db5b62ea0fb9b> >()
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (35): vld_main.exe!common_vfprintf<__crt_stdio_output::standard_base,char>() + 0x26 bytes
d:\th\minkernel\crts\ucrt\src\appcrt\stdio\output.cpp (58): vld_main.exe!__stdio_common_vfprintf() + 0x1D bytes
c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h (639): vld_main.exe!_vfprintf_l() + 0x21 bytes
c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h (954): vld_main.exe!printf() + 0x1A bytes
d:\work\vld\src\tests\vld_main\vld_main.cpp (35): vld_main.exe!wmain() + 0x1A bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (89): vld_main.exe!invoke_main() + 0x1B bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (264): vld_main.exe!__scrt_common_main_seh() + 0x5 bytes
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (309): vld_main.exe!__scrt_common_main()
f:\dd\vctools\crt\vcstartup\src\startup\exe_wmain.cpp (17): vld_main.exe!wmainCRTStartup()
KERNEL32.DLL!BaseThreadInitThunk() + 0x24 bytes
ntdll.dll!__RtlUserThreadStart() + 0x2F bytes
ntdll.dll!_RtlUserThreadStart() + 0x1B bytes
Data:
A0 AA 2C 01 00 00 00 00 88 6A 1B 00 40 00 00 00 ..,..... .j..@...
02 00 00 00 00 10 00 00 50 00 00 00 FD FD FD FD ........ P.......
42 65 66 6F 72 65 20 65 78 69 74 20 31 31 0A CD Before.e xit.11..
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........
CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD ........ ........

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