JDK-8224718 : Client died: javax.net.ssl.SSLException: Software caused connection abort: recv failed
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-05-24
  • Updated: 2019-06-12
  • Resolved: 2019-06-12
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 13
13Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Test: javax/net/ssl/SSLSocket/Tls13PacketSize.java

From the log:
----------System.out:(32/2407)----------
Server input bytes: 16366
Client died: javax.net.ssl.SSLException: Software caused connection abort: recv failed
javax.net.ssl.SSLException: Software caused connection abort: recv failed
	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:320)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:258)
	at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1556)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:966)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:857)
	at Tls13PacketSize.runClientApplication(Tls13PacketSize.java:91)
	at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:345)
	at SSLSocketTemplate$2.run(SSLSocketTemplate.java:900)
	Suppressed: java.net.SocketException: Software caused connection abort: socket write error
		at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
		at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:108)
		at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:148)
		at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:980)
		at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
		at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:351)
		... 8 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
	at java.base/java.net.SocketInputStream.socketRead0(Native Method)
	at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:113)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:166)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:138)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:910)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:448)
	at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:68)
	at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1332)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:950)
	... 4 more
----------System.err:(35/2562)----------
javax.net.ssl.SSLException: Software caused connection abort: recv failed
	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:320)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:258)
	at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1556)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:966)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:857)
	at Tls13PacketSize.runClientApplication(Tls13PacketSize.java:91)
	at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:345)
	at SSLSocketTemplate$2.run(SSLSocketTemplate.java:900)
	Suppressed: java.net.SocketException: Software caused connection abort: socket write error
		at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
		at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:108)
		at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:148)
		at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:980)
		at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
		at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:351)
		... 8 more
Caused by: java.net.SocketException: Software caused connection abort: recv failed
	at java.base/java.net.SocketInputStream.socketRead0(Native Method)
	at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:113)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:166)
	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:138)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:910)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:448)
	at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:68)
	at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1332)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:950)
	... 4 more

JavaTest Message: Test threw exception: javax.net.ssl.SSLException: Software caused connection abort: recv failed
JavaTest Message: shutting down test

Comments
The major issue will be fixed in JDK-8224829.
12-06-2019

The socket in the test cannot be closed gracefully as the test does not consume the input record. I'm not sure of the right place to make the update now. Problem list the test per JDK-8224984 before I get an idea.
29-05-2019

[~xuelei] Can you take a look at this? This test was checked in as part of your recent fix for JDK-8221253.
24-05-2019