JDK-8247442 : javax/net/ssl/DTLS/NoMacInitialClientHello.java timed out
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 16
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2020-06-12
  • Updated: 2021-04-15
  • Resolved: 2021-04-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Description
The following test timed out in the JDK16 CI:

javax/net/ssl/DTLS/NoMacInitialClientHello.java

Here's a snippet from the log file:

#section:main
----------messages:(7/444)----------
command: main -Djdk.tls.client.enableStatusRequestExtension=false NoMacInitialClientHello
reason: User specified action: run main/othervm -Djdk.tls.client.enableStatusRequestExtension=false NoMacInitialClientHello 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/sun.security.util=ALL-UNNAMED
Timeout information:
--- Timeout information end.
elapsed time (seconds): 493.422
----------configuration:(4/111)----------
Boot Layer
  add modules: java.base                   
  add exports: java.base/sun.security.util ALL-UNNAMED

----------System.out:(1006/86896)*----------
Server: =======handshake(199, NEED_UNWRAP)=======
Server: Receive DTLS records, handshake status is NEED_UNWRAP
Client: =======handshake(199, NEED_WRAP)=======
Client: ----produce handshake packet(99, OK, NEED_UNWRAP)----
invalidate ClientHello message
Client: Produced 1 packets

<snip>

Server: New handshake status is NEED_UNWRAP
Server: =======handshake(14, NEED_UNWRAP)=======
Reproduced packet
    0: 16 fe fd 00 00 00 00 00 00 00 5b 00 30 01 00 01  // \\syn\\254\\253\\nul\\nul\\nul\\nul\\nul\\nul\\nul[\\nul0\\soh\\nul\\soh
   16: 0b 00 00 00 00 e7 00 00 24 0a 08 0b 04 01 05 01  // \\vt\\nul\\nul\\nul\\nul\\231\\nul\\nul$\\n\\b\\vt\\eot\\soh\\enq\\soh
   32: 06 01 04 02 03 03 03 01 03 02 02 03 02 01 02 02  // \\ack\\soh\\eot\\stx\\etx\\etx\\etx\\soh\\etx\\stx\\stx\\etx\\stx\\soh\\stx\\stx
   48: 00 23 00 00 00 2b 00 05 04 fe fd fe ff           // \\nul#\\nul\\nul\\nul+\\nul\\enq\\eot\\254\\253\\254\\255
Server: Receive DTLS records, handshake status is NEED_UNWRAP
Client: New handshake status is NEED_UNWRAP
Client: =======handshake(150, NEED_UNWRAP)=======
Client: Receive DTLS records, handshake status is NEED_UNWRAP
Server: =======handshake(13, NEED_UNWRAP)=======
Server: Receive DTLS records, handshake status is NEED_UNWRAP
Server: =======handshake(12, NEED_WRAP)=======
Server: ----produce handshake packet(99, OK, NEED_UNWRAP)----
Server: Produced 1 packets
Server: =======handshake(11, NEED_UNWRAP)=======
Server: Receive DTLS records, handshake status is NEED_UNWRAP
----------System.err:(0/0)----------
----------rerun:(39/5685)*----------

<snip>

result: Error. Program `/scratch/mesos/jib-master/install/jdk-16+1-1/macosx-x64.jdk/jdk-16.jdk/Contents/Home/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 493414ms).


test result: Error. Program `/scratch/mesos/jib-master/install/jdk-16+1-1/macosx-x64.jdk/jdk-16.jdk/Contents/Home/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 493414ms).

Comments
NoMacInitialClientHello test extends DTLSOverDatagram class which creates DatagramSockets binding to the wildcard/localhost address, that has been a source of instability in many tests. JDK-8264152 fixes DTLSOverDatagram by binding to loopback address instead. That change in the superclass should also fix the occasional failures seen in this test
15-04-2021

Run this test with jdk-16+2 100 times in a loop on macosx laptop, but didn't reproduced this issue.
25-06-2020