-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Compile enything with and without
-gwith LLVM CLang - Run Dr Memory with
drmemory -leaks_only -- program. - And we have it.
Please also answer these questions drawn from https://drmemory.org/page_help.html#sec_narrow :
- Does the problem go away when running in light mode (pass
-lightto Dr. Memory)? -> No - Does the problem go away when running with the options
-leaks_only -no_count_leaks -no_track_allocs? -> No - Does the problem go away when running under plain DynamoRIO? Do this by running
dynamorio/bin32/drrun -- <application and args>ordynamorio/bin64/drrun -- <application and args>depending on the bitwidth of your applicaiton. (Ignore warnings about "incomplete installation".) -> I have no idea what's this - What happens with the debug version of Dr. Memory and of its underlying engine DynamoRIO? Try this by passing
-debug -dr_debug -pause_at_assert. Are any messages reported? -> Nothing works, just error "internal crash" error
Expected behavior
I want to see the memory leaks
Screenshots or Pasted Text
Versions
- What version of Dr. Memory are you using? -> Dr. Memory version 2.6.20167 -- build 0
- Does the latest build from
https://drmemory.org/page_download.html#sec_latest_build solve the problem? -> Nope - What operating system version are you running on? -> Windows 11 x64 24H2
- Is your application 32-bit or 64-bit? -> 64 bit
Additional context
// #include "_INCLUDES.hpp" // Ignore this
#include <fmt/format.h>
#include <crtdbg.h>
#include <cstdlib>
int main() {
int64_t* leak = (int64_t*)malloc(sizeof(int64_t)); // Intentional memory leak
*leak = 1955;
fmt::println("var = {}\t{} bytes at {}", *leak, sizeof(*leak), (void*)leak);
return 0;
}Terminal (PowerShell 7)
00:24 ~.\II. The First Trials - A2 [1ms]
~$ .\exc2
var = 1955 8 bytes at 0x13caf80
00:24 ~.\II. The First Trials - A2 [10ms]
~$ clang++ -g -o Exc2 Exc2.cpp -std=c++23
00:24 ~.\II. The First Trials - A2 [1s 688ms]
~$ .\exc2
var = 1955 8 bytes at 0x82be60
00:24 ~.\II. The First Trials - A2 [13ms]
~$ drmemory -debug Exc2.exe
<Application D:\Code\!Docs\Memory\School\II. The First Trials - A2\Exc2.exe (11644). Dr. Memory internal crash at PC 0x00007ff611edf790. Please report this at http://drmemory.org/issues. Program aborted.
0xc0000005 0x00000000 0x00007ff611edf790 0x00007ff611edf790 0x0000000000000001 0x0000000000000000
Base: 0x0000000071000000
Registers: eax=0x0000000000000000 ebx=0x0000000000000001 ecx=0x0000000080074200 edx=0x00007ffbc41f0057
esi=0x0000000080092ac0 edi=0x0000000000000000 esp=0x0000000080091800 ebp=0x00007ffbc41f0057
r8 =0x00000000800958b0 r9 =0x0000000000000000 r10=0x0000000080074860 r11=0x00007ff611e928f3
r12=0x0000000000000000 r13=0x00000000800958b0 r14=0x0000000080074200 r15=0x0000000000000000
eflags=0x0000000000010206
2.6.20167-0-(Mar 22 2025 03:04:48) WinVer=105;Rel=2009;Build=26100;Edition=CoreSingleLanguage
-no_dynamic_options -logdir 'C:\Users\David Sirait\AppData\Roaming\Dr. Memory\dynamorio' -client_lib 'C:\Program Files (x86)\Dr. Memory\bin64\debug\drmemorylib.dll;0;-logdir `C:\Users\David Sirait\AppData\Roaming\Dr. Memory` -symcache_dir `C:\Users\David Sirait\AppData\Roaming\Dr. Memory\symcache` -lib_blocklist_default
0x00007ffbc41f0057 0x0000007fef37e4e9
C:\Program Files (x86)\Dr. Memory\dynamorio\lib64\release\dynamorio.dll=0x0000000071000000
C:\WINDOWS/system32/RPCRT4.dll=0x00007ffc433e0000
C:\Program Files (x86)\Dr. Memory\bin64\debug\drmemorylib.dll=0x00007ff611b50000
C:\Program Files (x86)\Dr. Memory\bin64\debug/dbghelp.dll=0x00007ff6123f0000
C:\WINDOWS/system32/ucrtbase.dll=0x0000000000c00000
C:\WINDOWS/system32/kernel32.dll=0x0000000000d50000
C:\WINDOWS/system32/KERNELBASE.dll=0x000000000>
~~Dr.M~~ WARNING: unable to locate results file: can't open C:\Users\David Sirait\AppData\Roaming\Dr. Memory/resfile.11644 (code=2).
Dr. Memory failed to start the target application, perhaps due to
interference from invasive security software.
Try disabling other software or running in a virtual machine.
~~Dr.M~~ WARNING: application exited with abnormal code 0xffffffff
00:24 ~.\II. The First Trials - A2 [1s 373ms] [-1]
~$ drmemory -leaks_only Exc2.exe
<Application D:\Code\!Docs\Memory\School\II. The First Trials - A2\Exc2.exe (28668). Dr. Memory internal crash at PC 0x00007ff611bcf152. Please report this at http://drmemory.org/issues along with the results of running '-debug -dr_debug'. Program aborted.
0xc0000005 0x00000000 0x00007ff611bcf152 0x00007ff611bcf152 0x0000000000000001 0x0000000000000000
Base: 0x0000000071000000
Registers: eax=0x0000000000000000 ebx=0x0000000000000000 ecx=0x0000000080074200 edx=0x00007ffbc41f0057
esi=0x0000000000000000 edi=0x0000000000000000 esp=0x00000000800917e0 ebp=0x0000000000000000
r8 =0x00000000800958b0 r9 =0x0000000000000000 r10=0x0000000080074860 r11=0x00007ff611bb6c13
r12=0x00000000800958b0 r13=0x0000000080074200 r14=0x0000000080091960 r15=0x00000000800958b0
eflags=0x0000000000010246
2.6.20167-0-(Mar 22 2025 03:01:46) WinVer=105;Rel=2009;Build=26100;Edition=CoreSingleLanguage
-no_dynamic_options -logdir 'C:\Users\David Sirait\AppData\Roaming\Dr. Memory\dynamorio' -client_lib 'C:\Program Files (x86)\Dr. Memory\bin64\release\drmemorylib.dll;0;`-leaks_only` -logdir `C:\Users\David Sirait\AppData\Roaming\Dr. Memory` -symcache_dir `C:\Users\David Sirait\AppData\Roaming\Dr. Memory\symcache` -lib_bl
C:\Program Files (x86)\Dr. Memory\dynamorio\lib64\release\dynamorio.dll=0x0000000071000000
C:\WINDOWS/system32/RPCRT4.dll=0x00007ffc433e0000
C:\Program Files (x86)\Dr. Memory\bin64\release\drmemorylib.dll=0x00007ff611b50000
C:\Program Files (x86)\Dr. Memory\bin64\release/dbghelp.dll=0x00007ff611e10000
C:\WINDOWS/system32/ucrtbase.dll=0x00000000017b0000
C:\WINDOWS/system32/kernel32.dll=0x0000000001900000
C:\WINDOWS/system32/KERNELBASE.dll=0x00000>
~~Dr.M~~ WARNING: unable to locate results file: can't open C:\Users\David Sirait\AppData\Roaming\Dr. Memory/resfile.28668 (code=2).
Dr. Memory failed to start the target application, perhaps due to
interference from invasive security software.
Try disabling other software or running in a virtual machine.
~~Dr.M~~ WARNING: application exited with abnormal code 0xffffffff
00:24 ~.\II. The First Trials - A2 [887ms] [-1]
~$Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels


