JDK-8258914 : javax/net/ssl/DTLS/RespondToRetransmit.java timed out
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 11-pool,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x_10.15
  • CPU: x86_64
  • Submitted: 2020-12-23
  • Updated: 2025-01-13
  • Resolved: 2020-12-25
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.
JDK 11 JDK 17
11.0.22-oracleFixed 17 b04Fixed
Related Reports
Relates :  
Description
The following test timed out in the JDK17 CI:

javax/net/ssl/DTLS/RespondToRetransmit.java

Here's a snippet from the log file:

Client: New handshake status is NEED_UNWRAP
Client: =======handshake(146, NEED_UNWRAP)=======
Client: Receive DTLS records, handshake status is NEED_UNWRAP
Server: Warning: java.net.SocketTimeoutException: Receive timed out
Server: ----produce handshake packet(99, OK, NEED_UNWRAP)----
Server: Reproduced 0 packets
Server: New handshake status is NEED_UNWRAP
Server: =======handshake(146, NEED_UNWRAP)=======
Server: Receive DTLS records, handshake status is NEED_UNWRAP
Client: Warning: java.net.SocketTimeoutException: Receive timed out
Client: ----produce handshake packet(99, OK, NEED_WRAP)----
Client: ----produce handshake packet(98, OK, NEED_UNWRAP)----
Client: Reproduced 2 packets
Reproduced packet
0000: 16 fe fd 00 00 00 00 00 00 00 64 00 f3 01 00 01  // \\syn\\254\\253\\nul\\nul\\nul\\nul\\nul\\nul\\nuld\\nul\\243\\soh\\nul\\soh
0010: 2d 00 00 00 00 00 00 00 e7 fe fd b9 76 3c db 21  // -\\nul\\nul\\nul\\nul\\nul\\nul\\nul\\231\\254\\253\\185v<\\219!
0020: 12 5f 92 21 19 22 b0 61 5c ec 8b 3e 7b 84 96 4c  // \\dc2_\\146!\\em"\\176a\\\\236\\139>{\\132\\150L
0030: 86 58 48 68 2c 12 c8 22 3f 12 98 00 00 00 5c c0  // \\134XHh,\\dc2\\200"?\\dc2\\152\\nul\\nul\\nul\\\\192
0040: 2c c0 2b cc a9 c0 30 cc a8 c0 2f 00 9f cc aa 00  // ,\\192+\\204\\169\\1920\\204\\168\\192/\\nul\\159\\204\\170\\nul
0050: a3 00 9e 00 a2 c0 24 c0 28 c0 23 c0 27 00 6b 00  // \\163\\nul\\158\\nul\\162\\192$\\192(\\192#\\192'\\nulk\\nul
0060: 6a 00 67 00 40 c0 2e c0 32 c0 2d c0 31 c0 26 c0  // j\\nulg\\nul@\\192.\\1922\\192-\\1921\\192&\\192
0070: 2a c0 25 c0 29 c0 0a c0 14 c0 09 c0 13 00 39 00  // *\\192%\\192)\\192\\n\\192\\dc4\\192\\t\\192\\dc3\\nul9\\nul
0080: 38 00 33 00 32 c0 05 c0 0f c0 04 c0 0e 00 9d 00  // 8\\nul3\\nul2\\192\\enq\\192\\si\\192\\eot\\192\\so\\nul\\157\\nul
0090: 9c 00 3d 00 3c 00 35 00 2f 00 ff 01 00 00 a7 00  // \\156\\nul=\\nul<\\nul5\\nul/\\nul\\255\\soh\\nul\\nul\\167\\nul
00a0: 05 00 05 01 00 00 00 00 00 0a 00 16 00 14 00 1d  // \\enq\\nul\\enq\\soh\\nul\\nul\\nul\\nul\\nul\\n\\nul\\syn\\nul\\dc4\\nul\\gs
00b0: 00 17 00 18 00 19 00 1e 01 00 01 01 01 02 01 03  // \\nul\\etb\\nul\\can\\nul\\em\\nul\\rs\\soh\\nul\\soh\\soh\\soh\\stx\\soh\\etx
00c0: 01 04 00 0b 00 02 01 00 00 0d 00 2c 00 2a 04 03  // \\soh\\eot\\nul\\vt\\nul\\stx\\soh\\nul\\nul\\r\\nul,\\nul*\\eot\\etx
00d0: 05 03 06 03 08 07 08 08 08 04 08 05 08 06 08 09  // \\enq\\etx\\ack\\etx\\b\\bel\\b\\b\\b\\eot\\b\\enq\\b\\ack\\b\\t
00e0: 08 0a 08 0b 04 01 05 01 06 01 04 02 03 03 03 01  // \\b\\n\\b\\vt\\eot\\soh\\enq\\soh\\ack\\soh\\eot\\stx\\etx\\etx\\etx\\soh
00f0: 03 02 02 03 02 01 02 02 00 32 00 2c 00 2a 04 03  // \\etx\\stx\\stx\\etx\\stx\\soh\\stx\\stx\\nul2\\nul,\\nul*\\eot\\etx
Reproduced packet
0000: 16 fe fd 00 00 00 00 00 00 00 65 00 52 01 00 01  // \\syn\\254\\253\\nul\\nul\\nul\\nul\\nul\\nul\\nule\\nulR\\soh\\nul\\soh
0010: 2d 00 00 00 00 e7 00 00 46 05 03 06 03 08 07 08  // -\\nul\\nul\\nul\\nul\\231\\nul\\nulF\\enq\\etx\\ack\\etx\\b\\bel\\b
0020: 08 08 04 08 05 08 06 08 09 08 0a 08 0b 04 01 05  // \\b\\b\\eot\\b\\enq\\b\\ack\\b\\t\\b\\n\\b\\vt\\eot\\soh\\enq
0030: 01 06 01 04 02 03 03 03 01 03 02 02 03 02 01 02  // \\soh\\ack\\soh\\eot\\stx\\etx\\etx\\etx\\soh\\etx\\stx\\stx\\etx\\stx\\soh\\stx
0040: 02 00 11 00 09 00 07 02 00 04 00 00 00 00 00 17  // \\stx\\nul\\dc1\\nul\\t\\nul\\bel\\stx\\nul\\eot\\nul\\nul\\nul\\nul\\nul\\etb
0050: 00 00 00 23 00 00 00 2b 00 05 04 fe fd fe ff     // \\nul\\nul\\nul#\\nul\\nul\\nul+\\nul\\enq\\eot\\254\\253\\254\\255
Client: New handshake status is NEED_UNWRAP
Client: =======handshake(145, NEED_UNWRAP)=======
Client: Receive DTLS records, handshake status is NEED_UNWRAP
----------System.err:(0/0)----------
----------rerun:(39/7234)*----------
<snip>

result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-17+3-124/macosx-x64.jdk/jdk-17.jdk/Contents/Home/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 539731ms).

Since this is a Tier2 test failure, I'm starting this bug as a P3.
Comments
Fix request [11u] I backport this for parity with 11.0.22-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
13-11-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2277 Date: 2023-11-10 08:21:58 +0000
10-11-2023

Changeset: b575dd80 Author: Xue-Lei Andrew Fan <xuelei@openjdk.org> Date: 2020-12-25 04:25:20 +0000 URL: https://git.openjdk.java.net/jdk/commit/b575dd80
25-12-2020