RFR: JDK-8013728: nsk/jdi/BScenarios/hotswap/tc10x001 Unrecognized Windows Sockets error: 0: recv failed

Gary Adams gary.adams at oracle.com
Fri Mar 8 13:16:44 UTC 2019


I've been able to reproduce the socket teardown failure in tc10x001.
It appears that the debugee sends it's final output and then exits.
If the debugee exits while the debugger is receiving the final output,
it can result in a socket error.

This proposed fix forces the debugee to wait until the debugger
acknowledges it has processed the final output before exitting.

   Webrev: http://cr.openjdk.java.net/~gadams/8013728/webrev.01/

The original bug was filed before these tests were in the open repos.

None of the other tests in the nsk/jdi/BScenarios set have shown this 
problem,
because they do not have an early debuggee exit sequence.


More information about the serviceability-dev mailing list