JDK-8228431 : sun/security/tools/jarsigner/PreserveRawManifestEntryAndDigest.java fails on solaris
  • Type: Bug
  • Component: security-libs
  • Sub-Component: jdk.security
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris
  • CPU: sparc
  • Submitted: 2019-07-19
  • Updated: 2022-12-15
  • Resolved: 2020-06-10
Related Reports
Relates :  
Sub Tasks
JDK-8228602 :  
Description
The test ran for 1718 seconds and timed out.

test result: Error. Agent communication error: java.net.SocketTimeoutException: Read timed out; check console log for any additional details

The agent log also includes

Crash: SIGSEGV
Crash: C ...[libucrypto.so.1+...] ucrypto_digest_update+...


Comments
Solaris is not supported anymore. Closing this bug.
10-06-2020

Multiple failures show the same stack Stack: [0xffffffff54e00000,0xffffffff54f00000], sp=0xffffffff54efbcc0, free space=1007k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libucrypto.so.1+0xb5a90] ucrypto_digest_update+0x4 C [libj2ucrypto.so+0x31fc] JavaCritical_com_oracle_security_ucrypto_NativeDigest_nativeUpdate+0x3c J 1739 com.oracle.security.ucrypto.NativeDigest.nativeUpdate(IJ[BII)I jdk.crypto.ucrypto (0 bytes) @ 0xffffffff7207d890 [0xffffffff7207d720+0x0000000000000170] J 1844 c2 java.security.MessageDigest.digest([B)[B java.base (10 bytes) @ 0xffffffff720a2a2c [0xffffffff720a2460+0x00000000000005cc] J 2145 c2 com.sun.crypto.provider.PKCS12PBECipherCore.derive([C[BIIILjava/lang/String;I)[B java.base (501 bytes) @ 0xffffffff720c9d70 [0xffffffff720c94e0+0x0000000000000890] J 3645 c1 com.sun.crypto.provider.PKCS12PBECipherCore.implInit(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;Ljavax/crypto/CipherSpi;)V java.base (544 bytes) @ 0xffffffff6b16f1cc [0xffffffff6b16d340+0x0000000000001e8c] J 4054 c1 com.sun.crypto.provider.PKCS12PBECipherCore.implInit(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;Ljavax/crypto/CipherSpi;)V java.base (44 bytes) @ 0xffffffff6b64c998 [0xffffffff6b64c680+0x0000000000000318] J 3870 c1 com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndRC2_40.engineInit(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V java.base (13 bytes) @ 0xffffffff6b18bc24 [0xffffffff6b18bac0+0x0000000000000164] J 3644 c1 javax.crypto.Cipher.implInit(Ljavax/crypto/CipherSpi;IILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V java.base (145 bytes) @ 0xffffffff6b18ee98 [0xffffffff6b18e340+0x0000000000000b58] J 3892 c1 javax.crypto.Cipher.chooseProvider(IILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V java.base (355 bytes) @ 0xffffffff6b5e5658 [0xffffffff6b5e4360+0x00000000000012f8] J 3890 c1 javax.crypto.Cipher.init(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V java.base (85 bytes) @ 0xffffffff6b19b968 [0xffffffff6b19b5e0+0x0000000000000388] J 4154 c1 sun.security.pkcs12.PKCS12KeyStore.lambda$engineLoad$1(Lsun/security/util/ObjectIdentifier;Ljava/security/AlgorithmParameters;[B[C)Ljava/lang/Object; java.base (46 bytes) @ 0xffffffff6b6cf8a4 [0xffffffff6b6cf200+0x00000000000006a4] J 3866 c1 sun.security.pkcs12.PKCS12KeyStore$$Lambda$111.tryOnce([C)Ljava/lang/Object; java.base (21 bytes) @ 0xffffffff6b180e94 [0xffffffff6b180da0+0x00000000000000f4] J 3298 c1 sun.security.pkcs12.PKCS12KeyStore$RetryWithZero.run(Lsun/security/pkcs12/PKCS12KeyStore$RetryWithZero;[C)Ljava/lang/Object; java.base (40 bytes) @ 0xffffffff6ac16a10 [0xffffffff6ac168e0+0x0000000000000130] J 3857 c1 sun.security.pkcs12.PKCS12KeyStore.engineLoad(Ljava/io/InputStream;[C)V java.base (1203 bytes) @ 0xffffffff6b5cc058 [0xffffffff6b5c7de0+0x0000000000004278] J 3428 c1 sun.security.util.KeyStoreDelegator.engineLoad(Ljava/io/InputStream;[C)V java.base (394 bytes) @ 0xffffffff6b052414 [0xffffffff6b051ba0+0x0000000000000874] J 3346 c1 sun.security.tools.jarsigner.Main.loadKeyStore(Ljava/lang/String;Z)V jdk.jartool (748 bytes) @ 0xffffffff6b0979d8 [0xffffffff6b094900+0x00000000000030d8] J 3837 c1 sun.security.tools.jarsigner.Main.run([Ljava/lang/String;)V jdk.jartool (731 bytes) @ 0xffffffff6b5b8dec [0xffffffff6b5b6ce0+0x000000000000210c] J 3835 c1 PreserveRawManifestEntryAndDigest.jarsignerMain(Ljava/lang/String;)V (69 bytes) @ 0xffffffff6afe7470 [0xffffffff6afe71c0+0x00000000000002b0] j PreserveRawManifestEntryAndDigest.createSignedJarA(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/lang/String;Ljava/lang/String;)V+71 j PreserveRawManifestEntryAndDigest.test(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljava/lang/String;ZZ)Ljava/lang/String;+34 j PreserveRawManifestEntryAndDigest.test(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)Ljava/lang/String;+9 j PreserveRawManifestEntryAndDigest.firstIndividualSectionTrailingSeq(Ljava/lang/String;)V+68 However, if I simplify the test into only testing firstIndividualSectionTrailingSeq() it succeeds.
31-07-2019