aqa-tests
aqa-tests copied to clipboard
SSLCA.java run intermittently timeout by temurin17
Describe the bug security/infra/java/security/cert/CertPathValidator/certification/SSLCA.java intermittently timeout
Timeout information:
Running jstack on process 1118403
2022-08-07 22:16:49
Full thread dump OpenJDK 64-Bit Server VM (17.0.4+8 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x00007fc540001740, length=13, elements={
0x00007fc5880254b0, 0x00007fc58826eeb0, 0x00007fc588270290, 0x00007fc588275490,
0x00007fc588276840, 0x00007fc588277c50, 0x00007fc5882795e0, 0x00007fc58827ab10,
0x00007fc58827bf80, 0x00007fc588283c10, 0x00007fc588287860, 0x00007fc5882aa5d0,
0x00007fc540000d30
}
"main" #1 prio=5 os_prio=0 cpu=43.00ms elapsed=960.21s tid=0x00007fc5880254b0 nid=0x1110c7 in Object.wait() [0x00007fc58c82a000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait([email protected]/Native Method)
- waiting on <0x00000000ffc0ea08> (a java.lang.Thread)
at java.lang.Thread.join([email protected]/Thread.java:1304)
- locked <0x00000000ffc0ea08> (a java.lang.Thread)
at java.lang.Thread.join([email protected]/Thread.java:1372)
at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74)
"Reference Handler" #2 daemon prio=10 os_prio=0 cpu=0.13ms elapsed=960.20s tid=0x00007fc58826eeb0 nid=0x1110d2 waiting on condition [0x00007fc55cd2f000]
java.lang.Thread.State: RUNNABLE
at java.lang.ref.Reference.waitForReferencePendingList([email protected]/Native Method)
at java.lang.ref.Reference.processPendingReferences([email protected]/Reference.java:253)
at java.lang.ref.Reference$ReferenceHandler.run([email protected]/Reference.java:215)
"Finalizer" #3 daemon prio=8 os_prio=0 cpu=0.28ms elapsed=960.20s tid=0x00007fc588270290 nid=0x1110d3 in Object.wait() [0x00007fc55cc2e000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait([email protected]/Native Method)
- waiting on <0x00000000ffd02f40> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
- locked <0x00000000ffd02f40> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:176)
at java.lang.ref.Finalizer$FinalizerThread.run([email protected]/Finalizer.java:172)
"Signal Dispatcher" #4 daemon prio=9 os_prio=0 cpu=0.25ms elapsed=960.19s tid=0x00007fc588275490 nid=0x1110d4 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Service Thread" #5 daemon prio=9 os_prio=0 cpu=0.29ms elapsed=960.19s tid=0x00007fc588276840 nid=0x1110d5 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Monitor Deflation Thread" #6 daemon prio=9 os_prio=0 cpu=21.39ms elapsed=960.19s tid=0x00007fc588277c50 nid=0x1110d6 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" #7 daemon prio=9 os_prio=0 cpu=68.65ms elapsed=960.19s tid=0x00007fc5882795e0 nid=0x1110d7 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"C1 CompilerThread0" #17 daemon prio=9 os_prio=0 cpu=79.32ms elapsed=960.19s tid=0x00007fc58827ab10 nid=0x1110d8 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
No compile task
"Sweeper thread" #22 daemon prio=9 os_prio=0 cpu=0.06ms elapsed=960.19s tid=0x00007fc58827bf80 nid=0x1110d9 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Notification Thread" #23 daemon prio=9 os_prio=0 cpu=0.04ms elapsed=960.19s tid=0x00007fc588283c10 nid=0x1110da runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Common-Cleaner" #24 daemon prio=8 os_prio=0 cpu=1.13ms elapsed=960.19s tid=0x00007fc588287860 nid=0x1110dc in Object.wait() [0x00007fc537cfa000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait([email protected]/Native Method)
- waiting on <0x00000000ffd1d7f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove([email protected]/ReferenceQueue.java:155)
- locked <0x00000000ffd1d7f8> (a java.lang.ref.ReferenceQueue$Lock)
at jdk.internal.ref.CleanerImpl.run([email protected]/CleanerImpl.java:140)
at java.lang.Thread.run([email protected]/Thread.java:833)
at jdk.internal.misc.InnocuousThread.run([email protected]/InnocuousThread.java:162)
"MainThread" #26 prio=5 os_prio=0 cpu=152.20ms elapsed=960.17s tid=0x00007fc5882aa5d0 nid=0x1110de runnable [0x00007fc5372b6000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.SocketDispatcher.read0([email protected]/Native Method)
at sun.nio.ch.SocketDispatcher.read([email protected]/SocketDispatcher.java:47)
at sun.nio.ch.NioSocketImpl.tryRead([email protected]/NioSocketImpl.java:261)
at sun.nio.ch.NioSocketImpl.implRead([email protected]/NioSocketImpl.java:312)
at sun.nio.ch.NioSocketImpl.read([email protected]/NioSocketImpl.java:350)
at sun.nio.ch.NioSocketImpl$1.read([email protected]/NioSocketImpl.java:803)
at java.net.Socket$SocketInputStream.read([email protected]/Socket.java:966)
at java.io.BufferedInputStream.fill([email protected]/BufferedInputStream.java:244)
at java.io.BufferedInputStream.read1([email protected]/BufferedInputStream.java:284)
at java.io.BufferedInputStream.read([email protected]/BufferedInputStream.java:343)
- locked <0x00000000ff353938> (a java.io.BufferedInputStream)
at sun.net.www.http.HttpClient.parseHTTPHeader([email protected]/HttpClient.java:825)
at sun.net.www.http.HttpClient.parseHTTP([email protected]/HttpClient.java:760)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0([email protected]/HttpURLConnection.java:1688)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream([email protected]/HttpURLConnection.java:1589)
at java.net.HttpURLConnection.getResponseCode([email protected]/HttpURLConnection.java:529)
at sun.security.provider.certpath.OCSP.getOCSPBytes([email protected]/OCSP.java:272)
at sun.security.provider.certpath.OCSP.check([email protected]/OCSP.java:195)
at sun.security.provider.certpath.RevocationChecker.checkOCSP([email protected]/RevocationChecker.java:785)
at sun.security.provider.certpath.RevocationChecker.check([email protected]/RevocationChecker.java:369)
at sun.security.provider.certpath.RevocationChecker.check([email protected]/RevocationChecker.java:343)
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate([email protected]/PKIXMasterCertPathValidator.java:125)
at sun.security.provider.certpath.PKIXCertPathValidator.validate([email protected]/PKIXCertPathValidator.java:224)
at sun.security.provider.certpath.PKIXCertPathValidator.validate([email protected]/PKIXCertPathValidator.java:144)
at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate([email protected]/PKIXCertPathValidator.java:83)
at java.security.cert.CertPathValidator.validate([email protected]/CertPathValidator.java:309)
at ValidatePathWithParams.doCertPathValidate(ValidatePathWithParams.java:288)
at ValidatePathWithParams.validate(ValidatePathWithParams.java:142)
at SSLCA_RSA.runTest(SSLCA.java:208)
at SSLCA.main(SSLCA.java:62)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0([email protected]/Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke([email protected]/NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke([email protected]/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke([email protected]/Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.lang.Thread.run([email protected]/Thread.java:833)
"Attach Listener" #27 daemon prio=9 os_prio=0 cpu=0.26ms elapsed=0.10s tid=0x00007fc540000d30 nid=0x11120e waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"VM Thread" os_prio=0 cpu=21.33ms elapsed=960.20s tid=0x00007fc58826af90 nid=0x1110d1 runnable
"GC Thread#0" os_prio=0 cpu=0.22ms elapsed=960.21s tid=0x00007fc588058a10 nid=0x1110cb runnable
"G1 Main Marker" os_prio=0 cpu=0.05ms elapsed=960.21s tid=0x00007fc58805e0d0 nid=0x1110cc runnable
"G1 Conc#0" os_prio=0 cpu=0.04ms elapsed=960.21s tid=0x00007fc58805f060 nid=0x1110cd runnable
"G1 Refine#0" os_prio=0 cpu=0.06ms elapsed=960.21s tid=0x00007fc5882418c0 nid=0x1110ce runnable
"G1 Service" os_prio=0 cpu=125.01ms elapsed=960.21s tid=0x00007fc5882427b0 nid=0x1110cf runnable
"VM Periodic Task Thread" os_prio=0 cpu=449.27ms elapsed=960.19s tid=0x00007fc588285550 nid=0x1110db waiting on condition
JNI global refs: 27, weak refs: 0
--- Timeout information end.
elapsed time (seconds): 960.235
configuration:
STDOUT:
=====================================================
CONFIGURATION
=====================================================
http.proxyHost :null
http.proxyPort :null
https.proxyHost :null
https.proxyPort :null
https.socksProxyHost :null
https.socksProxyPort :null
jdk.certpath.disabledAlgorithms :MD2, MD5, SHA1 jdkCA & usage TLSServer, RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
Revocation options :[NO_FALLBACK]
OCSP responder set :null
Trusted root set: false
Expected EE Status:GOOD
=====================================================
Timeout refired 960 times
STDERR:
certpath: PKIXCertPathValidator.engineValidate()...
certpath: X509CertSelector.match(SN: 7b2c9bd316803299
Issuer: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
Subject: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US)
certpath: X509CertSelector.match returning: true
certpath: YES - try this trustedCert
certpath: anchor.getTrustedCert().getSubjectX500Principal() = CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
certpath: Constraints: DSA keySize < 1024
certpath: Constraints set to keySize: keySize < 1024
certpath: Constraints: EC keySize < 224
certpath: Constraints set to keySize: keySize < 224
certpath: Constraints: MD2
certpath: Constraints: MD5
certpath: Constraints: RSA keySize < 1024
certpath: Constraints set to keySize: keySize < 1024
certpath: Constraints: SHA1 jdkCA & usage TLSServer
certpath: Constraints set to jdkCA.
certpath: Constraints usage length is 1
certpath: --------------------------------------------------------------
certpath: Executing PKIX certification path validation algorithm.
certpath: Checking cert1 - Subject: CN=SSL.com RSA SSL subCA, O=SSL Corporation, L=Houston, ST=Texas, C=US
certpath: Set of critical extensions: {2.5.29.15, 2.5.29.19}
certpath: -Using checker1 ... [sun.security.provider.certpath.UntrustedChecker]
certpath: -checker1 validation succeeded
certpath: -Using checker2 ... [sun.security.provider.certpath.AlgorithmChecker]
certpath: Constraints.permits(): SHA256withRSA, [
Variant: generic
Anchor: [
Trusted CA cert: [
[
Version: V3
Subject: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11
Key: Sun RSA public key, 4096 bits
params: null
modulus: 1016084211603598820270970445184671637738656996616196655553066632760850164880450782099280223440448721738242747866021816927295545408695044690087931841711471373109433322299505005273573508329994452306202499620699063183125043571066872810281673214382237814633627792739607298562358473390308237463061505939659544766406221910783782893774482172846363827199757352187969339159325651505579864645348153873366379265450995199161483372759286193512462551973486415488830474668399295461084302685004279179888721318505390912995055578498009999685569707781289283466163333609190703379151846464687488100789638253484231727158723546040779043953426929844506102693677756757638895415072912964183935193218631994727184971540504641581793741257561911142338197374501825890155128942721083328416467628033922077237810919266738805886650939146390102277805642774738875495336197430625697897357891610518194859353488719394527689883597530241464971878607702035102796082100390267729814160726753854936128567924039589270493609064381654567850884842613805112661025484995217730596439635733270455430778294185779713519802523388715292232433831996034281515135360280126323423867906476048042398881487927259666003219687670582150437423619331848196151178751200840219582356965814899132763747904903
public exponent: 65537
Validity: [From: Sat Feb 13 01:39:39 CST 2016,
To: Wed Feb 13 01:39:39 CST 2041]
Issuer: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
SerialNumber: [ 7b2c9bd3 16803299]
Certificate Extensions: 4
[1]: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: DD 04 09 07 A2 F5 7A 7D 52 53 12 92 95 EE 38 80 ......z.RS....8.
0010: 25 0D A6 59 %..Y
]
]
[2]: ObjectId: 2.5.29.19 Criticality=true
BasicConstraints:[
CA:true
PathLen: no limit
]
[3]: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
DigitalSignature
Key_CertSign
Crl_Sign
]
[4]: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: DD 04 09 07 A2 F5 7A 7D 52 53 12 92 95 EE 38 80 ......z.RS....8.
0010: 25 0D A6 59 %..Y
]
]
]
Algorithm: [SHA256withRSA]
Signature:
0000: 20 18 11 94 29 FB 26 9D 1C 1E 1E 70 61 F1 95 72 ...).&....pa..r
0010: 93 71 24 AD 68 93 58 8E 32 AF 1B B3 70 03 FC 25 .q$.h.X.2...p..%
0020: 2B 74 85 90 3D 78 6A F4 B9 8B A5 97 3B B5 18 91 +t..=xj.....;...
0030: BB 1E A7 F9 40 5B 91 F9 55 99 AF 1E 11 D0 5C 1D ....@[..U.....\.
0040: A7 66 E3 B1 94 07 0C 32 39 A6 EA 1B B0 79 D8 1D .f.....29....y..
0050: 9C 70 44 E3 8A DD C4 F9 95 1F 8A 38 43 3F 01 85 .pD........8C?..
0060: A5 47 A7 3D 46 B2 BC E5 22 68 F7 7B 9C D8 2C 3E .G.=F..."h....,>
0070: 0A 21 C8 2D 33 AC BF C5 81 99 31 74 C1 75 71 C5 .!.-3.....1t.uq.
0080: BE B1 F0 23 45 F4 9D 6B FC 19 63 9D A3 BC 04 C6 ...#E..k..c.....
0090: 18 0B 25 BB 53 89 0F B3 80 50 DE 45 EE 44 7F AB ..%.S....P.E.D..
00A0: 94 78 64 98 D3 F6 28 DD 87 D8 70 65 74 FB 0E B9 .xd...(...pet...
00B0: 13 EB A7 0F 61 A9 32 96 CC DE BB ED 63 4C 18 BB ....a.2.....cL..
00C0: A9 40 F7 A0 54 6E 20 88 71 75 18 EA 7A B4 34 72 [email protected] .qu..z.4r
00D0: E0 23 27 77 5C B6 90 EA 86 25 40 AB EF 33 0F CB .#'w\....%@..3..
00E0: 9F 82 BE A2 20 FB F6 B5 2D 1A E6 C2 85 B1 74 0F .... ...-.....t.
00F0: FB C8 65 02 A4 52 01 47 DD 49 22 C1 BF D8 EB 6B ..e..R.G.I"....k
0100: AC 7E DE EC 63 33 15 B7 23 08 8F C6 0F 8D 41 5A ....c3..#.....AZ
0110: DD 8E C5 B9 8F E5 45 3F 78 DB BA D2 1B 40 B1 FE ......E?x....@..
0120: 71 4D 3F E0 81 A2 BA 5E B4 EC 15 E0 93 DD 08 1F qM?....^........
0130: 7E E1 55 99 0B 21 DE 93 9E 0A FB E6 A3 49 BD 36 ..U..!.......I.6
0140: 30 FE E7 77 B2 A0 75 97 B5 2D 81 88 17 65 20 F7 0..w..u..-...e .
0150: DA 90 00 9F C9 52 CC 32 CA 35 7C F5 3D 0F D8 2B .....R.2.5..=..+
0160: D7 F5 26 6C C9 06 34 96 16 EA 70 59 1A 32 79 79 ..&l..4...pY.2yy
0170: 0B B6 88 7F 0F 52 48 3D BF 6C D8 A2 44 2E D1 4E .....RH=.l..D..N
0180: B7 72 58 D3 89 13 95 FE 44 AB F8 D7 8B 1B 6E 9C .rX.....D.....n.
0190: BC 2C A0 5B D5 6A 00 AF 5F 37 E1 D5 FA 10 0B 98 .,.[.j.._7......
01A0: 9C 86 E7 26 8F CE F0 EC 6E 8A 57 0B 80 E3 4E B2 ...&....n.W...N.
01B0: C0 A0 63 61 90 BA 55 68 37 74 6A B6 92 DB 9F A1 ..ca..Uh7tj.....
01C0: 86 22 B6 65 27 0E EC B6 9F 42 60 E4 67 C2 B5 DA .".e'....B`.g...
01D0: 41 0B C4 D3 8B 61 1B BC FA 1F 91 2B D7 44 07 5E A....a.....+.D.^
01E0: BA 29 AC D9 C5 E9 EF 53 48 5A EB 80 F1 28 58 21 .).....SHZ...(X!
01F0: CD B0 06 55 FB 27 3F 53 90 70 A9 04 1E 57 27 B9 ...U.'?S.p...W'.
]
Cert Issuer: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
Cert Subject: CN=SSL.com RSA SSL subCA, O=SSL Corporation, L=Houston, ST=Texas, C=US
Key: RSA
Date: Sun Aug 07 22:00:49 CST 2022
]
certpath: KeySizeConstraints.permits(): RSA
certpath: -checker2 validation succeeded
certpath: -Using checker3 ... [sun.security.provider.certpath.KeyChecker]
certpath: KeyChecker.verifyCAKeyUsage() ---checking CA key usage...
certpath: KeyChecker.verifyCAKeyUsage() CA key usage verified.
certpath: -checker3 validation succeeded
certpath: -Using checker4 ... [sun.security.provider.certpath.ConstraintsChecker]
certpath: ---checking basic constraints...
certpath: i = 1, maxPathLength = 2
certpath: after processing, maxPathLength = 1
certpath: basic constraints verified.
certpath: ---checking name constraints...
certpath: prevNC = null, newNC = null
certpath: mergedNC = null
certpath: name constraints verified.
certpath: -checker4 validation succeeded
certpath: -Using checker5 ... [sun.security.provider.certpath.PolicyChecker]
certpath: PolicyChecker.checkPolicy() ---checking certificate policies...
certpath: PolicyChecker.checkPolicy() certIndex = 1
certpath: PolicyChecker.checkPolicy() BEFORE PROCESSING: explicitPolicy = 3
certpath: PolicyChecker.checkPolicy() BEFORE PROCESSING: policyMapping = 3
certpath: PolicyChecker.checkPolicy() BEFORE PROCESSING: inhibitAnyPolicy = 3
certpath: PolicyChecker.checkPolicy() BEFORE PROCESSING: policyTree = anyPolicy ROOT
certpath: PolicyChecker.processPolicies() policiesCritical = false
certpath: PolicyChecker.processPolicies() rejectPolicyQualifiers = true
certpath: PolicyChecker.processPolicies() processing policy: 2.5.29.32.0
certpath: PolicyChecker.processParents(): matchAny = true
certpath: PolicyChecker.processParents() found parent:
anyPolicy ROOT
certpath: PolicyChecker.checkPolicy() AFTER PROCESSING: explicitPolicy = 2
certpath: PolicyChecker.checkPolicy() AFTER PROCESSING: policyMapping = 2
certpath: PolicyChecker.checkPolicy() AFTER PROCESSING: inhibitAnyPolicy = 2
certpath: PolicyChecker.checkPolicy() AFTER PROCESSING: policyTree = anyPolicy ROOT
anyPolicy CRIT: false EP: anyPolicy (1)
certpath: PolicyChecker.checkPolicy() certificate policies verified
certpath: -checker5 validation succeeded
certpath: -Using checker6 ... [sun.security.provider.certpath.BasicChecker]
certpath: ---checking validity:Sun Aug 07 22:00:49 CST 2022...
certpath: validity verified.
certpath: ---checking subject/issuer name chaining...
certpath: subject/issuer name chaining verified.
certpath: ---checking signature...
certpath: signature verified.
certpath: BasicChecker.updateState issuer: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US; subject: CN=SSL.com RSA SSL subCA, O=SSL Corporation, L=Houston, ST=Texas, C=US; serial#: 691281723435976700
certpath: -checker6 validation succeeded
certpath: -Using checker7 ... [sun.security.provider.certpath.RevocationChecker]
certpath: RevocationChecker.check: checking cert
SN: 0997ed10 9d1f07fc
Subject: CN=SSL.com RSA SSL subCA, O=SSL Corporation, L=Houston, ST=Texas, C=US
Issuer: CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, ST=Texas, C=US
certpath: Default nonce has been created in the OCSP extensions
certpath: connecting to OCSP service at: http://ocsps.ssl.com
To Reproduce
test=test/jdk/security/infra/java/security/cert/CertPathValidator/certification/SSLCA.java
nproc=`nproc` ; dir="tmp-jtreg-"`basename $test .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P `expr $nproc / 2` bash -c "jtreg -timeoutFactor:20 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"
Expected behavior run pass everytime
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
