DynamoRIO / DynamoRIO/drmemory

Segfault under Cygwin, bad path for logfile

Open
#1,353 4 comments 0 reactions 0 assignees View on GitHub
Bug-AppCrash Migrated OpSys-Cygwin Priority-Medium Status-NeedInfo
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [jrm.ku...@gmail.com](https://code.google.com/u/114115706810078663385/) on October 23, 2013 07:23:02_

I'm using drmemory under cygwin.
1. Download Dr. Memory zip file (for portable/local installation) for Windows 1.6.0-2
2. Unpack it and set your env path
3. Use it (drmemory.exe -- readelf.exe a.out)

Drmemory should not segfault even if it miss some options.

Here is my console output :
$ drmemory.exe -- readelf.exe test/a.out -a
~~Dr.M~~ Dr. Memory version 1.6.0
~~Dr.M~~ Running "readelf.exe test/a.out -a"
WARNING: unable to locate results file since can't open C:\Cygwin\DrMemory-Windows-1.6.0-2\drmemory\logs/resfile.46844: 2
~~Dr.M~~ WARNING: application exited with abnormal code 0xc0000005

I tried with -light and it segfault too.

I think there is a trouble with the path (mixing windows path and linux).
DrMemory should check if we are executing it in cygwin or not.

In changing logdir the issue is still here using bad path expansion (the parameter was "-logdir ." and "." is expanded with C:...

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1353_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.