-
Notifications
You must be signed in to change notification settings - Fork 209
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
SIGINT (sent with CTRL+c) doesn't always stop the test. #14
Comments
This is usually a threading problem, they don't always like to die on their own. You can either set them to daemon mode or explicitly pass some "die now" data into them |
Yeah, I suspect the threads that aren't dying are in the Rocket instance in the HttpHandler. Once we flatten multi-cell support in the framework, there will be fewer places to look for the cause of this behavior. |
More info on this. It actually still happens with the bare-bones frontend API server we now have, so it wasn't specific to Rocket. SIGINT handling consistently fails if SIGINT happens while execution is inside one of the HTTP handlers. |
Provide a DUT ID in order to start the test. ^CReceived SIGINT. Stopping everything.Exception happened during processing of request from ('127.0.0.1', 57906) |
Observing this also with the bazel build environment |
Found that SIGQUIT ( Ctrl+) will kill the process. |
Does this only happen when the frontend is being accessed or can it be any time? |
My test cases about were without the front end running. Also SIGQUIT may not be best method since tear down methods would be skipped. |
Additional observation from head: If I start the tester like this then do CTRL+C it hangs If I disable http and execute CTRL+C stops execution immediately: Does this point to http server being the issue? |
Yes, I believe the issue is in the http server. @grybmadsci and I have some changes planned for the HTTP API that will give us a good opportunity to investigate and resolve this. |
Is anyone still seeing issues with |
I believe this is fixed now. |
Usually it does, but not always. I haven't identified the specific conditions that cause SIGINT handling to break yet.
The text was updated successfully, but these errors were encountered: