Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261915

3 strange security test failures

    XMLWordPrintable

Details

    Description

      The following 3 security tests failed in the JDK17 CI on the same host:

      sun/security/x509/URICertStore/ExtensionsWithLDAP.java
      sun/security/krb5/canonicalize/Test.java
      java/security/Policy/SignedJar/SignedJarTest.java

      Here's a snippet from the ExtensionsWithLDAP.java log file:

      #section:main
      ----------messages:(5/284)----------
      command: main ExtensionsWithLDAP CRLDP ldap.host.for.crldp
      reason: User specified action: run main/othervm ExtensionsWithLDAP CRLDP ldap.host.for.crldp
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.security.auth
      elapsed time (seconds): 1.405
      ----------configuration:(3/45)----------
      Boot Layer
        add modules: jdk.security.auth

      ----------System.out:(4/179)----------
      Server: accepted connection
      Server: accepted connection
      Server is closed.
      Expected exception: java.security.cert.CertPathValidatorException: Could not determine revocation status
      ----------System.err:(13/936)----------
      java.lang.RuntimeException: The ldap.host.for.crldp from CRLDP extension is not requested
      at ExtensionsWithLDAP.main(ExtensionsWithLDAP.java:174)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: The ldap.host.for.crldp from CRLDP extension is not requested


      Here's a snippet from the canonicalize/Test.java log file:

      #section:main
      ----------messages:(5/340)----------
      command: main -Djava.security.krb5.conf=krb5.conf Test
      reason: User specified action: run main/othervm -Djava.security.krb5.conf=krb5.conf Test
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.security.jgss --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
      elapsed time (seconds): 0.436
      ----------configuration:(4/129)----------
      Boot Layer
        add modules: java.security.jgss
        add exports: java.security.jgss/sun.security.krb5 ALL-UNNAMED

      ----------System.out:(1/21)----------
      c1 -> c1.this.domain
      ----------System.err:(14/816)----------
      java.lang.Exception: Output is host/c1@THIS.REALM
      at Test.check(Test.java:65)
      at Test.main(Test.java:44)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.Exception: Output is host/c1@THIS.REALM


      Here's a snippet from the SignedJarTest.java log file:

      Test Case 1
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+10-726/linux-x64.jdk/jdk-17/bin/java -cp /opt/mach5/mesos/work_dir/slaves/a4f8fba9-f017-4328-b286-c66b6a97143d-S8401/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/81fcf84f-145e-498c-9c37-2713884d7211/runs/8a136332-08ac-4955-a667-7ee48358ad83/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/2/java/security/Policy/SignedJar/SignedJarTest.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+10-726/src.full/open/test/jdk/java/security/Policy/SignedJar:/opt/mach5/mesos/work_dir/slaves/a4f8fba9-f017-4328-b286-c66b6a97143d-S8401/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/81fcf84f-145e-498c-9c37-2713884d7211/runs/8a136332-08ac-4955-a667-7ee48358ad83/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/classes/2/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+10-726/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/jtreg.jar -Xmx512m -XX:MaxRAMPercentage=6 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/a4f8fba9-f017-4328-b286-c66b6a97143d-S8401/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/81fcf84f-145e-498c-9c37-2713884d7211/runs/8a136332-08ac-4955-a667-7ee48358ad83/testoutput/test-support/jtreg_open_test_jdk_tier2_part1/tmp -ea -esa -classpath first.jar -Djava.security.manager -Djava.security.policy=SignedJarTest_1.policy -Djava.security.properties=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+10-726/src.full/open/test/jdk/java/security/Policy/SignedJar/java.security PrivilegeTest false true ]
      [2021-02-17T07:04:34.450244956Z] Gathering output for process 21409
      Timeout refired 480 times
      [2021-02-17T07:18:56.428165247Z] Waiting for completion for process 21409
      [2021-02-17T07:18:56.428372538Z] Waiting for completion finished for process 21409
      Output and diagnostic info for process 21409 was saved into 'pid-21409-output.log'
      [2021-02-17T07:18:56.429654973Z] Waiting for completion for process 21409
      [2021-02-17T07:18:56.429763207Z] Waiting for completion finished for process 21409
      [2021-02-17T07:18:56.429864547Z] Waiting for completion for process 21409
      [2021-02-17T07:18:56.429976799Z] Waiting for completion finished for process 21409
      ----------System.err:(20/972)----------
       stdout: [];
       stderr: []
       exitValue = 134

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:474)
      at SignedJarTest.main(SignedJarTest.java:124)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

      Since these are Tier2 test failures, I'm starting this bug off as a P3.

      Attachments

        Issue Links

          Activity

            People

              fguallini Fernando Guallini
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: