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

Analysis Timeout #13

Open
ameily opened this issue Jun 2, 2022 · 1 comment
Open

Analysis Timeout #13

ameily opened this issue Jun 2, 2022 · 1 comment

Comments

@ameily
Copy link
Contributor

ameily commented Jun 2, 2022

I ran into an issue today where I accidentally ran head within the VM with no arguments, so the program froze trying to read from stdin. I think I waited a minute or two before killing the trace, which made me think that the S2E analysis isn't timing out like I thought it would.

We may want to look into this to see if S2E does in fact enforce a maximum analysis runtime. If it doesn't, we may consider adding it as a new configuration parameter or command line argument.

@ameily
Copy link
Contributor Author

ameily commented Jun 3, 2022

I verified that this is occurring. I let a sample run in the background for more than 5 minutes. S2E did not stop the analysis process or shutdown the VM during that time.

We would most likely need to enforce a timeout within the VM itself (via bootstrap.sh) or externally within Python.

To test, I ran:

just new-project  head ./test/benchmark/samples/bin/x86/coreutils/head ""
just run head

This will block indefinitely trying to read stdin.

@michaelbrownuc michaelbrownuc transferred this issue from another repository Nov 17, 2022
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