Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRMEM] DrMemory should respect client program exit code #276

Closed
derekbruening opened this issue Nov 27, 2014 · 3 comments
Closed

[DRMEM] DrMemory should respect client program exit code #276

derekbruening opened this issue Nov 27, 2014 · 3 comments

Comments

@derekbruening
Copy link
Contributor

From [email protected] on March 22, 2010 12:21:28

I think DrMemory should return client program exit code if
a) it is nonzero
b) there are no reports or presence of any reports doesn't imply nonzero
exitcode (e.g. analog of Valgrind's --error-exitcode=X)

For example:
#include <stdio.h>
#include <stdlib.h>

int main() {
printf("I'll exit now...\n");
exit(1);
printf("We shouldn't get here\n");
return 0;
}

->>>
$ cl test.cpp
...
$ test.exe
I'll throw an exception now...
$ echo %ERRORLEVEL%
1
$ drmemory.exe -quiet -- test.exe
I'll throw an exception now...
$ echo %ERRORLEVEL%
0

Also, DrMemory should return nonzero exit code if it fails (e.g. fails on
an assertion)

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=276

@derekbruening
Copy link
Contributor Author

From [email protected] on April 16, 2010 16:08:15

the tools changes in issue #265 will address this.

@derekbruening
Copy link
Contributor Author

From [email protected] on May 21, 2010 07:23:52

I have this fixed internally, will be in next release

Status: Accepted

@derekbruening
Copy link
Contributor Author

From [email protected] on May 26, 2010 21:10:10

in 1.1.0 release:

  • app exit code is returned by drmemory.exe
  • on a DrMemory assert, 255 is returned

please verify & close

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant