Skip to content

Instantly share code, notes, and snippets.

@zacharycarter
Last active July 12, 2019 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zacharycarter/85b15100361498a54077edd45f4a15b2 to your computer and use it in GitHub Desktop.
Save zacharycarter/85b15100361498a54077edd45f4a15b2 to your computer and use it in GitHub Desktop.
Dr. Memory version 2.2.0 build 1 built on Jul 1 2019 00:40:18
Windows version: WinVer=105;Rel=1809;Build=17763;Edition=Professional
Dr. Memory results for pid 22924: "foo.exe"
Application cmdline: ".\foo.exe"
Recorded 117 suppression(s) from default C:\Program Files (x86)\Dr. Memory\bin64\suppress-default.txt
Error #1: UNADDRESSABLE ACCESS beyond top of stack: reading 0x000000000061fbf0-0x000000000061fbf8 8 byte(s)
# 0 foo.nim.c.exe!.text [../../../../../src/gcc-6.3.0/libgcc/config/i386/cygwin.S:152]
# 1 foo.nim.c.exe!_pei386_runtime_relocator
# 2 foo.nim.c.exe!__tmainCRTStartup
# 3 foo.nim.c.exe!.l_start
# 4 KERNEL32.dll!BaseThreadInitThunk
Note: @0:00:00.243 in thread 6148
Note: 0x000000000061fbf0 refers to 376 byte(s) beyond the top of the stack 0x000000000061fd68
Note: instruction: or $0x0000000000000000 (%rcx) -> (%rcx)
Error #2: UNADDRESSABLE ACCESS beyond top of stack: reading 0x000000000061f4b0-0x000000000061f4b8 8 byte(s)
# 0 nimhcr.dll!.text [../../../../../src/gcc-6.3.0/libgcc/config/i386/cygwin.S:152]
# 1 nimhcr.dll!_pei386_runtime_relocator
# 2 nimhcr.dll!__DllMainCRTStartup
# 3 ntdll.dll!RtlAnsiStringToUnicodeString +0x296 (0x00007ffc4f578f07 <ntdll.dll+0x48f07>)
# 4 ntdll.dll!RtlCompareUnicodeStrings +0x6c4 (0x00007ffc4f574865 <ntdll.dll+0x44865>)
# 5 ntdll.dll!RtlCompareUnicodeStrings +0x67d (0x00007ffc4f57481e <ntdll.dll+0x4481e>)
# 6 ntdll.dll!RtlCompareUnicodeStrings +0x4a7 (0x00007ffc4f574648 <ntdll.dll+0x44648>)
# 7 ntdll.dll!RtlFreeAnsiString +0x1f0 (0x00007ffc4f573431 <ntdll.dll+0x43431>)
# 8 ntdll.dll!RtlAnsiStringToUnicodeString +0x6a0 (0x00007ffc4f579311 <ntdll.dll+0x49311>)
# 9 ntdll.dll!RtlCreateUnicodeStringFromAsciiz +0xe7 (0x00007ffc4f576408 <ntdll.dll+0x46408>)
#10 ntdll.dll!LdrLoadDll +0xe3 (0x00007ffc4f5758b4 <ntdll.dll+0x458b4>)
#11 KERNELBASE.dll!LoadLibraryExW +0x160 (0x00007ffc4b7fee41 <KERNELBASE.dll+0x1ee41>)
#12 KERNELBASE.dll!LoadLibraryExA +0x30 (0x00007ffc4b7fc791 <KERNELBASE.dll+0x1c791>)
#13 KERNELBASE.dll!LoadLibraryA +0x3e (0x00007ffc4b85a7ef <KERNELBASE.dll+0x7a7ef>)
#14 foo.nim.c.exe!nimLoadLibrary
#15 foo.nim.c.exe!NimMain
#16 foo.nim.c.exe!main
Note: @0:00:00.533 in thread 6148
Note: 0x000000000061f4b0 refers to 376 byte(s) beyond the top of the stack 0x000000000061f628
Note: instruction: or $0x0000000000000000 (%rcx) -> (%rcx)
Error #3: UNADDRESSABLE ACCESS beyond top of stack: reading 0x000000000061eda0-0x000000000061eda8 8 byte(s)
# 0 nimrtl.dll!___chkstk_ms [../../../../../src/gcc-6.3.0/libgcc/config/i386/cygwin.S:152]
# 1 nimrtl.dll!_pei386_runtime_relocator
# 2 nimrtl.dll!__DllMainCRTStartup
# 3 ntdll.dll!RtlAnsiStringToUnicodeString +0x296 (0x00007ffc4f578f07 <ntdll.dll+0x48f07>)
# 4 ntdll.dll!RtlCompareUnicodeStrings +0x6c4 (0x00007ffc4f574865 <ntdll.dll+0x44865>)
# 5 ntdll.dll!RtlCompareUnicodeStrings +0x67d (0x00007ffc4f57481e <ntdll.dll+0x4481e>)
# 6 ntdll.dll!RtlCompareUnicodeStrings +0x4a7 (0x00007ffc4f574648 <ntdll.dll+0x44648>)
# 7 ntdll.dll!RtlFreeAnsiString +0x1f0 (0x00007ffc4f573431 <ntdll.dll+0x43431>)
# 8 ntdll.dll!RtlAnsiStringToUnicodeString +0x6a0 (0x00007ffc4f579311 <ntdll.dll+0x49311>)
# 9 ntdll.dll!RtlCreateUnicodeStringFromAsciiz +0xe7 (0x00007ffc4f576408 <ntdll.dll+0x46408>)
#10 ntdll.dll!LdrLoadDll +0xe3 (0x00007ffc4f5758b4 <ntdll.dll+0x458b4>)
#11 KERNELBASE.dll!LoadLibraryExW +0x160 (0x00007ffc4b7fee41 <KERNELBASE.dll+0x1ee41>)
#12 KERNELBASE.dll!LoadLibraryExA +0x30 (0x00007ffc4b7fc791 <KERNELBASE.dll+0x1c791>)
#13 KERNELBASE.dll!LoadLibraryA +0x3e (0x00007ffc4b85a7ef <KERNELBASE.dll+0x7a7ef>)
#14 nimhcr.dll!systemDatInit000
#15 nimhcr.dll!DllMain
#16 nimhcr.dll!__DllMainCRTStartup
#17 ntdll.dll!RtlAnsiStringToUnicodeString +0x296 (0x00007ffc4f578f07 <ntdll.dll+0x48f07>)
#18 ntdll.dll!RtlCompareUnicodeStrings +0x6c4 (0x00007ffc4f574865 <ntdll.dll+0x44865>)
#19 ntdll.dll!RtlCompareUnicodeStrings +0x67d (0x00007ffc4f57481e <ntdll.dll+0x4481e>)
Note: @0:00:00.610 in thread 6148
Note: 0x000000000061eda0 refers to 376 byte(s) beyond the top of the stack 0x000000000061ef18
Note: instruction: or $0x0000000000000000 (%rcx) -> (%rcx)
Error #4: POSSIBLE LEAK 27 direct bytes 0x00000000016301c0-0x00000000016301db + 0 indirect bytes
# 0 replace_malloc [d:\drmemory_package\common\alloc_replace.c:2577]
# 1 msvcrt.dll!malloc_crt
# 2 msvcrt.dll!_setargv
# 3 msvcrt.dll!_getmainargs
# 4 foo.nim.c.exe!pre_cpp_init
# 5 msvcrt.dll!initterm
# 6 foo.nim.c.exe!__tmainCRTStartup
# 7 foo.nim.c.exe!.l_start
# 8 KERNEL32.dll!BaseThreadInitThunk
===========================================================================
FINAL SUMMARY:
DUPLICATE ERROR COUNTS:
Error # 1: 2
Error # 2: 2
Error # 3: 2
SUPPRESSIONS USED:
ERRORS FOUND:
3 unique, 6 total unaddressable access(es)
0 unique, 0 total uninitialized access(es)
0 unique, 0 total invalid heap argument(s)
0 unique, 0 total GDI usage error(s)
0 unique, 0 total handle leak(s)
0 unique, 0 total warning(s)
0 unique, 0 total, 0 byte(s) of leak(s)
1 unique, 1 total, 27 byte(s) of possible leak(s)
ERRORS IGNORED:
2 potential error(s) (suspected false positives)
(details: C:\Users\carte\AppData\Roaming\Dr. Memory\DrMemory-foo.exe.22924.000\potential_errors.txt)
1 potential leak(s) (suspected false positives)
(details: C:\Users\carte\AppData\Roaming\Dr. Memory\DrMemory-foo.exe.22924.000\potential_errors.txt)
27 unique, 29 total, 6816 byte(s) of still-reachable allocation(s)
(re-run with "-show_reachable" for details)
Details: C:\Users\carte\AppData\Roaming\Dr. Memory\DrMemory-foo.exe.22924.000\results.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment