Dr. Memory and Mingw (no cygwin)

245 views
Skip to first unread message

Jan-Patrick Osterloh

unread,
Nov 4, 2010, 1:49:57 PM11/4/10
to Dr. Memory Users
Hi,

is it possible to use Dr. Memory together with mingw without cygwin? I
tested the windows version, and it runs and analyses the program
without problems, except that for my own program no symbols can be
found. Then I tried the older cygwin version, but this doesn't work,
as I don't have cygwin. If I run this, I get the following error:

$>perl /bin/drmem.pl -- test.exe
sh: cygpath: command not found
sh: cygpath: command not found
sh: cygpath: command not found
sh: cygpath: command not found
Cannot chdir to test.exe:No such file or directory at /bin//../
drmemory/bin/drmemory.pl line 619


Any Idea how to either get the symbols or how to configure the cygwin
version?

Kind regards
Jan-Patrick

Derek Bruening

unread,
Nov 4, 2010, 2:03:10 PM11/4/10
to drmemor...@googlegroups.com
The Windows version today only supports PDB symbols.

The Cygwin version uses addr2line to get symbol info. If you have
addr2line available then it should work for Mingw. I've briefly tested
some versions of Mingw but my machine also had Cygwin, so I did not see the
cygpath problem. If you can identify other issues we can improve the tool.

Use this:
http://drmemory.googlecode.com/files/DrMemory-Cygwin-1.3.0-2.zip

And in drmemory.pl set $is_cygwin_avail to 0.

- Derek

Jan-Patrick Osterloh

unread,
Nov 4, 2010, 2:17:51 PM11/4/10
to Dr. Memory Users
Hi,

On 4 Nov., 19:03, Derek Bruening <i...@alum.mit.edu> wrote:
> The Windows version today only supports PDB symbols.
>
> The Cygwin version uses addr2line to get symbol info.  If you have
> addr2line available then it should work for Mingw.  
I have perl, objdump and addr2line installed.

> I've briefly tested some versions of Mingw but my machine also had Cygwin, so I did not see the
> cygpath problem.  If you can identify other issues we can improve the tool.
>
> Use this:http://drmemory.googlecode.com/files/DrMemory-Cygwin-1.3.0-2.zip
>

Thats what I downloaded. I unpacked it to "C:\msys\1.0\", so that the
bin/drmemory.pl is in the bin folder, and can be found at the shell.

> And in drmemory.pl set $is_cygwin_avail to 0.
Done, this resolves the cygpath problems, but now I have the following
issues:

perl /bin/drmemory.pl -- test.exe
Cannot chdir to test.exe:Not a directory at /bin//../drmemory/bin/
drmemory.pl line 619

It seems that the script cannot find the executable I'd like to
profile. I also tried to include the path of test.exe into the PATH
variable, but without success.

Bye
JPO
Reply all
Reply to author
Forward
0 new messages