JDK-8257997 : sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java again reports leaks after JDK-8257884
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2020-12-09
  • Updated: 2021-05-10
  • Resolved: 2020-12-10
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 16 JDK 8 Other
11.0.11-oracleFixed 16 b28Fixed 8u271Fixed openjdk8u302Fixed
Related Reports
Relates :  
Relates :  
Description
#section:main
----------messages:(4/160)----------
command: main SSLSocketLeak
reason: User specified action: run main/othervm SSLSocketLeak 
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.157
----------configuration:(0/0)----------
----------System.out:(2/48)----------
FDs at the beginning: 293
FDs in the end: 334
----------System.err:(13/887)----------
java.lang.RuntimeException: Too many open file descriptors. Looks leaky.
	at SSLSocketLeak.main(SSLSocketLeak.java:62)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:831)
Comments
Fix Request (8u): Backport to 8u requested because it is a part of 8u291-oracle. Patch doesn't apply cleanly, review approval email: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-April/013750.html
27-04-2021

Fix Request (11u): Backport to 11u requested because it is a part of 11.0.11-oracle. The patch depends on JDK-8256818, JDK-8257670 and JDK-8257884 (that are currently on approval for 11u) and applies cleanly on top of them. Testing: checked that changed test passes on Linux and Windows. Commit doesn't pass jcheck because of the discrepancy between git and mercurial author naming, exported commit with corrected naming: https://cr.openjdk.java.net/~akasko/jdk11u/8257997/8257997.changeset
29-12-2020

Changeset: 29ffffa7 Author: Christoph Langer <clanger@openjdk.org> Date: 2020-12-10 10:56:36 +0000 URL: https://git.openjdk.java.net/jdk/commit/29ffffa7
10-12-2020

JDK-8257884 has an embarassing flaw which makes things worse than before. Will post a PR soon.
10-12-2020

Bumping to P3 due to CI noise.
10-12-2020

----------rerun:(41/5180)*---------- cd 'T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\scratch\\4' && \\ JDK8_HOME='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\15\\36\\bundles\\windows-x64\\jdk-15_windows-x64_bin.zip\\jdk-15' \\ JIB_DATA_DIR=c:/ade/mesos/work_dir/jib-master \\ JIB_HOME='c:\\ade\\mesos\\work_dir\\jib-master\\install\\com\\oracle\\java\\jib\\jib\\3.0-SNAPSHOT\\jib-3.0-20201207.144234-445-distribution.zip\\jib-3.0-SNAPSHOT-distribution' \\ JTREG_KEYWORDS="!headful" \\ JTREG_VERBOSE=fail,error,time \\ PATH='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jpg\\infra\\builddeps\\wix\\3.11.1+1.0\\wix-3.11.1+1.0.zip;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.1\\b01\\bundles\\jtreg_bin-5.1.zip\\jtreg\\bin;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jpg\\infra\\builddeps\\gnumake-cygwin_x64\\4.0+1.0\\gnumake-cygwin_x64-4.0+1.0.tar.gz\\cygwin\\bin;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\15\\36\\bundles\\windows-x64\\jdk-15_windows-x64_bin.zip\\jdk-15\\bin;C:\\cygwin\\bin;C:\\cygwin\\usr\\local\\bin;C:\\cygwin\\bin;C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0' \\ SystemDrive=C: \\ SystemRoot='C:\\Windows' \\ TEMP='C:\\cygwin\\tmp' \\ TEST_IMAGE_DIR='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.test' \\ TEST_IMAGE_GRAAL_DIR='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.test\\hotspot\\jtreg\\graal' \\ TMP='C:\\cygwin\\tmp' \\ TZ=Etc/GMT \\ _NT_SYMBOL_PATH=' Invalid switch - /cygdrive' \\ windir='C:\\Windows' \\ CLASSPATH='T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk\\sun\\security\\ssl\\SSLSocketImpl;T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.1\\b01\\bundles\\jtreg_bin-5.1.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\5.1\\b01\\bundles\\jtreg_bin-5.1.zip\\jtreg\\lib\\jtreg.jar' \\ 'c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.jdk\\jdk-16\\bin\\java' \\ -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\tmp -ea -esa' \\ -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\tmp -J-ea -J-esa' \\ -Dtest.compiler.opts= \\ -Dtest.java.opts= \\ -Dtest.jdk='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.jdk\\jdk-16' \\ -Dcompile.jdk='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.jdk\\jdk-16' \\ -Dtest.timeout.factor=4.0 \\ -Dtest.nativepath='c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.test\\jdk\\jtreg\\native' \\ -Dtest.root='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk' \\ -Dtest.name=sun/security/ssl/SSLSocketImpl/SSLSocketLeak.java \\ -Dtest.file='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.java' \\ -Dtest.src='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk\\sun\\security\\ssl\\SSLSocketImpl' \\ -Dtest.src.path='C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk\\sun\\security\\ssl\\SSLSocketImpl;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\lib' \\ -Dtest.classes='T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.d' \\ -Dtest.class.path='T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.d;T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\test\\lib' \\ -Dtest.class.path.prefix='T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\src.full\\open\\test\\jdk\\sun\\security\\ssl\\SSLSocketImpl;T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\classes\\3\\test\\lib' \\ -Xmx512m \\ -XX:MaxRAMPercentage=3 \\ '-Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\tmp' \\ -ea \\ -esa \\ '-Djava.library.path=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-16+28-2038\\windows-x64.test\\jdk\\jtreg\\native' \\ com.sun.javatest.regtest.agent.MainWrapper 'T:\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part1\\sun\\security\\ssl\\SSLSocketImpl\\SSLSocketLeak.d\\main.0.jta'
09-12-2020