RFR: 8260540: serviceability/jdwp/AllModulesCommandTest.java failed with "Debuggee error: 'ERROR: transport error 202: bind failed: Address already in use'"

Kevin Walls kevinw at openjdk.java.net
Tue Jun 29 09:09:04 UTC 2021


On Tue, 22 Jun 2021 21:01:46 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> Updated AllModulesCommandTest to use dynamic port launching debuggee.
> Parsing debuggee listening address functionality is required in several tests (and we have other tests which need to be fixed the same way), so moved the code to new class in jdk.test.lib

Marked as reviewed by kevinw (Committer).

OK, so we let the debugee JVM find its own port, and start using it, then JDWP.parseListenAddress() decodes the debugee output to find the port in use.  findFreePort used previously was not working well, or was racing with other tests and clashing.  Sounds good.

I'm not sure in Debugee.java why we use an array for: JDWP.ListenAddress[] listenAddress

-------------

PR: https://git.openjdk.java.net/jdk/pull/4560


More information about the serviceability-dev mailing list