Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Dr. Memory
MortenMacFly:
--- Quote from: oBFusCATed on February 21, 2012, 11:45:00 pm ---Can anyone who has successfully built the Dr.Memory post the full command list here.
--- End quote ---
I used it as described here:
http://groups.google.com/group/drmemory-users/browse_thread/thread/bd0eb2b0d580d04f
However, my experience is limited as it was simply too slow for large scale applications.
MortenMacFly:
...btw, I just realised that they have a new build:
http://code.google.com/p/drmemory/downloads/detail?name=DrMemory-Windows-1.4.5-2.zip
So I downloaded it, installed and tried with a console application compiled using MinGW. It works! You need to run the console application inside a cmd.exe environment as simple as:
C:\Devel\DrMemory\bin>drmemory.exe -- MyLeakTest.exe
I added two memory leaks and I got both of them reported correctly (and a faulty one). The console application crashes in the end, but besides that its OK.
...maybe I guided you in the wrong direction in the first place... ::)
oBFusCATed:
I'm using this version and I don't see the symbols inside my testing executable (build with mingw).
Are you sure it works for you?
Here is the output from the mingw compiled executable.
--- Code: ---Error #1: POSSIBLE LEAK 268 direct bytes 0x00361150-0x0036125c + 0 indirect bytes
# 0 msvcrt.dll!strcpy_s
# 1 msvcrt.dll!clearerr_s
# 2 msvcrt.dll!clearerr_s
# 3 drmemory_test.exe!?
# 4 drmemory_test.exe!?
# 5 KERNEL32.dll!BaseThreadInitThunk
# 6 ntdll.dll!RtlInitializeExceptionChain
# 7 ntdll.dll!RtlInitializeExceptionChain
Error #2: LEAK 40 direct bytes 0x00361378-0x003613a0 + 0 indirect bytes
# 0 drmemory_test.exe!?
# 1 drmemory_test.exe!?
# 2 drmemory_test.exe!?
# 3 drmemory_test.exe!?
# 4 drmemory_test.exe!?
# 5 KERNEL32.dll!BaseThreadInitThunk
# 6 ntdll.dll!RtlInitializeExceptionChain
# 7 ntdll.dll!RtlInitializeExceptionChain
--- End code ---
Here is what I get if I use vc9 instead of mingw
--- Code: ---Error #1: LEAK 40 direct bytes 0x004d45d0-0x004d45f8 + 0 indirect bytes
# 0 operator new [f:\dd\vctools\crt_bld\self_x86\crt\src\new.cpp:59]
# 1 main [c:\dev\projects\tests\drmemory_test\main.cpp:7]
--- End code ---
MortenMacFly:
--- Quote from: oBFusCATed on February 22, 2012, 08:48:57 am ---I'm using this version and I don't see the symbols inside my testing executable (build with mingw).
Are you sure it works for you?
--- End quote ---
This version works:
http://drmemory.org/DrMemory-Windows-1.4.6-1.zip
However, you'll need to compile your stuff with a DWARF2 based compiler (not sure if you did).
oBFusCATed:
OK, I'll try it the next time I restart to windows.
Does TDM's g++ 4.5.x produce dwarf2 symbols?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version