DynamoRIO / DynamoRIO/dynamorio

DynamoRIO fails to read config file while execve system call

Open
#1,355 0 comments 0 reactions 0 assignees View on GitHub
Migrated OpSys-Linux Priority-High
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [zhao...@google.com](https://code.google.com/u/106321947286816917100/) on January 29, 2014 21:58:12_

simple test program
#include
#include
int main()
{
char *argv[] = { "/usr/bin/python", 0 };
char *envp[] = { "HOME=/home/zhaoqin/",
"PATH=/bin:/usr/bin",
"USER=zhaoqin",
"LOGNAME=zhaoqin",
0};
execve(argv[0], &argv[0], envp);
fprintf(stderr, "Oops!\n");
return -1;
}

$ gcc test.c -g -o test
$ drconfig -reg python -norun
$ drrun -debug -msgbox_mask 0xf -- ./test

DR should not follow on python execution as it is registered not run with python, but DR actually attached to python too.

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

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.