RFR: 8260540: serviceability/jdwp/AllModulesCommandTest.java failed with "Debuggee error: 'ERROR: transport error 202: bind failed: Address already in use'"
Alex Menkov
amenkov at openjdk.java.net
Tue Jun 29 01:03:06 UTC 2021
On Mon, 28 Jun 2021 21:36:08 GMT, Serguei Spitsyn <sspitsyn 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
>
> test/jdk/com/sun/jdi/JdwpAllowTest.java line 83:
>
>> 81: String s = app.getProcessStdout();
>> 82: JDWP.ListenAddress addr = JDWP.parseListenAddress(s);
>> 83: if (addr != null) {
>
> What is going to happen in the case of addr == null?
addr == null means we didn't get "listening for transport" output yet.
We continue to run the loop waiting for the parse-able output
-------------
PR: https://git.openjdk.java.net/jdk/pull/4560
More information about the serviceability-dev
mailing list