-
Notifications
You must be signed in to change notification settings - Fork 224
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
ExternalTerminal#close does not stop the pump thread #1183
Comments
Digging deeper into the stacktrace where these threads are stuck, it's
So they are waiting for input indefinitely and never reach the if-statement further down where they check whether they are paused. |
There are two pause methods on ExternalTerminal. The |
Seems similar to #1162 |
|
I managed to work around this in our Maven tests by replacing System.in with a ByteArrayInputStream for each test. That way, the pump thread gets an EOF and shuts down. |
This means that the thread's context classloader is leaked and eventually leads to OutOfMemoryErrors, e.g. when repeatedly running Maven 4 in embedded mode.
The text was updated successfully, but these errors were encountered: