DynamoRIO / DynamoRIO/drmemory

Hang when debugging interactive console programs

Open
#1,658 2 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 [fenug...@users.sourceforge.net](https://code.google.com/u/117364320551806243102/) on November 19, 2014 10:13:51_

Steps to reproduce :
1- run "drmemory c:\windows\system32\ftp.exe"
2- try "ls", or any other command a few times, 6 or 7 times usually does the trick
3- prompt flood !

This happens when using Dr Memory (tried 1.6.1 and 1.8.0-8) on Win XP 32-bit, when analyzing many programs that have an interactive console interface, such as :
ftp.exe
cmd.exe
and of course the project I'm working on. For some reason telnet.exe seems to work OK, it probably handles the input differently.

I recently found that running drmemory with -no_track_allocs fixes the problem ! Otherwise, after a few commands, either drmemory or the target executable (not sure which) gets stuck in an endless loop and the console window becomes unresponsive and flooded with the target's prompt (see image: https://groups.google.com/forum/#!topic/drmemory-users/W5FpIq8Qcfo )

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

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.