DynamoRIO / DynamoRIO/drmemory

DrMemory crashing with my program

Open
#1,587 7 comments 0 reactions 0 assignees View on GitHub
Migrated Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [mi...@avast.com](https://code.google.com/u/105052097180627951457/) on July 13, 2014 18:42:16_

> What steps will reproduce the problem?
1. Running command "drmemory ex_html.exe" (the program is small and attached).
(The analyzed program is buggy: that's why I want to use DrMemory with it.)
2. After quitting the analyzed application, DrMemory shows message box informing
me about a crash. (Unfortunately text from it cannot be copied and it is too
long to type manually so see attached screenshot.) After that notepad with
the report shows but it contains only 4 lines:

Dr. Memory version 1.7.0 build 5 built on Apr 4 2014 23:38:05
Dr. Memory results for pid 3628: "ex_html.exe"
Application cmdline: "bin/ex_html.exe"
Recorded 104 suppression(s) from default c:\DrMemory-1.7.0-5\bin\suppress-default.txt

> What is the expected output? What do you see instead?

DrMemory should provide complete analyzes report and it should not crash.

> What version of the product are you using? On what operating system?
- DrMemory 1.7.0-5
- Windows 8.1 (64-bit)

> Does the problem go away when running in light mode (pass "-light" to Dr.
> Memory)? What about when running with the options "-leaks_only
> -no_count_leaks -no_track_allocs"?

Yes, it goes away in all those cases. It does not find any issue in the analyzed
program.

> Does the problem go away when using the most recent build from
> http://build.chromium.org/p/client.drmemory/builds/? Tried several most recent builds for Windows. They do not work for me at
all. (They exit immediately without running the specified program and
without generating any report.)

> Try the debug version of Dr. Memory and of its underlying engine DynamoRIO
> by passing "-debug -dr_debug -pause_at_assert" to drmemory.exe. Are any
> messages reported?

Error message box appears. It says this:

Application d:\prj\mctrl\bin\ex_html.exe (4236) DynamucRIO usage error
: instr_encode error: no encoding found (see log)

(Logs attached)

**Attachment:** [screenshot.png analyzed_program.zip logs.zip](http://code.google.com/p/drmemory/issues/detail?id=1587)

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

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.