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

Need to detect test crashes after exit() #42

Open
mxz297 opened this issue Feb 20, 2019 · 0 comments
Open

Need to detect test crashes after exit() #42

mxz297 opened this issue Feb 20, 2019 · 0 comments

Comments

@mxz297
Copy link
Member

mxz297 commented Feb 20, 2019

In rewriter mode test, the mutator executes the rewritten mutatee and uses waitpid to get the return status of the mutatee, checking whether the mutatee crashed or finished normally.

However, the rewritten mutatee can crash after exit(). For example, global destructor code is executed after exit(). In this case, waitpid seems to return a normal exit code, causing the mutator believes the test finished normally.

I observed this behavior when no tests are reported as crashed, but there are core files generated. The bug in Dyninst that caused the crash is fixed, but the test suite needs to be able to detect such failure mode.

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

No branches or pull requests

1 participant