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

Test vmTestbase/nsk/monitoring/stress/thread/strace007/TestDescription.java failed due to native access checks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot

      ---------System.out:(249/8577)----------
      [9:35:11.124] ThreadMonitor> Test mode: DIRECTLY access to MBean
      [9:35:11.171] ThreadController> number of created threads: 50
      [9:35:11.171] ThreadController> depth for all threads: 200
      [9:35:11.171] ThreadController> invocation type: mixed
      [9:35:11.173]
      Iteration: 0
      [9:35:11.364] All threads started: 50
      [9:35:11.386] # ERROR: Unexpected 0 element of the stack trace:
      [9:35:11.386] # ERROR: java.lang.Module.isNamed
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: Unexpected 0 element of the stack trace: java.lang.Module.isNamed
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:309)
      at nsk.share.Log.complain(Log.java:280)
      at nsk.monitoring.stress.thread.strace001.checkElement(strace001.java:260)
      at nsk.monitoring.stress.thread.strace001.checkTrace(strace001.java:236)
      at nsk.monitoring.stress.thread.strace001.run(strace001.java:106)
      at nsk.monitoring.stress.thread.strace001.main(strace001.java:51)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)
      [9:35:11.418] # ERROR: Unexpected 1 element of the stack trace:
      [9:35:11.418] # ERROR: java.lang.Module.moduleForNativeAccess
      [9:35:11.419] # ERROR: Unexpected 2 element of the stack trace:
      [9:35:11.419] # ERROR: java.lang.Module.ensureNativeAccess
      [9:35:11.419] # ERROR: Unexpected 3 element of the stack trace:
      [9:35:11.419] # ERROR: java.lang.System$1.ensureNativeAccess
      [9:35:11.420] # ERROR: Unexpected 4 element of the stack trace:
      [9:35:11.420] # ERROR: jdk.internal.reflect.Reflection.ensureNativeAccess
      [9:35:11.421] # ERROR: Unexpected 5 element of the stack trace:
      [9:35:11.421] # ERROR: java.lang.ClassLoader.findNative
      [9:35:11.422]
      Snapshot of thread: 0
      [9:35:11.439] 0: java.lang.Module.isNamed(Module.java:179)
      [9:35:11.439] 1: java.lang.Module.moduleForNativeAccess(Module.java:285)
      [9:35:11.439] 2: java.lang.Module.ensureNativeAccess(Module.java:291)
      [9:35:11.439] 3: java.lang.System$1.ensureNativeAccess(System.java:2109)
      [9:35:11.440] 4: jdk.internal.reflect.Reflection.ensureNativeAccess(Reflection.java:124)
      [9:35:11.440] 5: java.lang.ClassLoader.findNative(ClassLoader.java:2336)
      [9:35:11.440] 6: nsk.monitoring.stress.thread.RunningThread.recursionNative(Native Method)
      [9:35:11.440] 7: nsk.monitoring.stress.thread.RunningThread.run(strace001.java:346)
      [9:35:12.234] All threads have died.
      [9:35:12.234]
      Iteration: 1
      [9:35:12.267] All threads started: 50
      [9:35:12.632] All threads have died.
      [9:35:12.632]
      Iteration: 2
      [9:35:12.672] All threads started: 50
      [9:35:13.244] All threads have died.
      [9:35:13.244]
      Iteration: 3
      [9:35:13.486] All threads started: 50
      [9:35:14.245] All threads have died.
      [9:35:14.246]
      Iteration: 4
      [9:35:14.299] All threads started: 50
      [9:35:14.699] All threads have died.
      [9:35:14.699]
      Iteration: 5
      [9:35:14.741] All threads started: 50
      [9:35:15.97] All threads have died.
      [9:35:15.97]
      Iteration: 6
      [9:35:15.120] All threads started: 50
      [9:35:15.474] All threads have died.
      [9:35:15.475]
      Iteration: 7
      [9:35:15.493] All threads started: 50
      [9:35:15.809] All threads have died.
      [9:35:15.809]
      Iteration: 8
      [9:35:15.833] All threads started: 50
      [9:35:16.132] All threads have died.
      [9:35:16.132]
      Iteration: 9
      [9:35:16.170] All threads started: 50
      [9:35:16.469] All threads have died.
      [9:35:16.469]
      Iteration: 10
      [9:35:16.500] All threads started: 50
      [9:35:16.786] All threads have died.
      [9:35:16.786]
      Iteration: 11
      [9:35:16.809] All threads started: 50
      [9:35:17.114] All threads have died.
      [9:35:17.114]
      Iteration: 12
      [9:35:17.124] All threads started: 50
      [9:35:17.420] All threads have died.
      [9:35:17.421]
      Iteration: 13
      [9:35:17.433] All threads started: 50
      [9:35:17.779] All threads have died.
      [9:35:17.780]
      Iteration: 14
      [9:35:17.790] All threads started: 50
      [9:35:18.106] All threads have died.
      [9:35:18.106]
      Iteration: 15
      [9:35:18.115] All threads started: 50
      [9:35:18.421] All threads have died.
      [9:35:18.422]
      Iteration: 16
      [9:35:18.452] All threads started: 50
      [9:35:18.795] All threads have died.
      [9:35:18.796]
      Iteration: 17
      [9:35:18.816] All threads started: 50
      [9:35:19.168] All threads have died.
      [9:35:19.168]
      Iteration: 18
      [9:35:19.179] All threads started: 50
      [9:35:19.494] All threads have died.
      [9:35:19.495]
      Iteration: 19
      [9:35:19.507] All threads started: 50
      [9:35:19.817] All threads have died.
      [9:35:19.817]
      Iteration: 20
      [9:35:19.828] All threads started: 50
      [9:35:20.152] All threads have died.
      [9:35:20.153]
      Iteration: 21
      [9:35:20.178] All threads started: 50
      [9:35:20.512] All threads have died.
      [9:35:20.512]
      Iteration: 22
      [9:35:20.521] All threads started: 50
      [9:35:20.838] All threads have died.
      [9:35:20.838]
      Iteration: 23
      [9:35:20.850] All threads started: 50
      [9:35:21.346] All threads have died.
      [9:35:21.346]
      Iteration: 24
      [9:35:21.358] All threads started: 50
      [9:35:21.779] All threads have died.
      [9:35:21.779]
      Iteration: 25
      [9:35:21.804] All threads started: 50
      [9:35:22.78] All threads have died.
      [9:35:22.79]
      Iteration: 26
      [9:35:22.86] All threads started: 50
      [9:35:22.363] All threads have died.
      [9:35:22.364]
      Iteration: 27
      [9:35:22.385] All threads started: 50
      [9:35:22.701] All threads have died.
      [9:35:22.701]
      Iteration: 28
      [9:35:22.712] All threads started: 50
      [9:35:23.60] All threads have died.
      [9:35:23.61]
      Iteration: 29
      [9:35:23.135] All threads started: 50
      [9:35:23.571] All threads have died.
      [9:35:23.571]
      Iteration: 30
      [9:35:23.580] All threads started: 50
      [9:35:23.940] All threads have died.
      [9:35:23.940]
      Iteration: 31
      [9:35:23.968] All threads started: 50
      [9:35:24.277] All threads have died.
      [9:35:24.277]
      Iteration: 32
      [9:35:24.285] All threads started: 50
      [9:35:24.688] All threads have died.
      [9:35:24.688]
      Iteration: 33
      [9:35:24.715] All threads started: 50
      [9:35:25.127] All threads have died.
      [9:35:25.127]
      Iteration: 34
      [9:35:25.138] All threads started: 50
      [9:35:25.421] All threads have died.
      [9:35:25.421]
      Iteration: 35
      [9:35:25.429] All threads started: 50
      [9:35:25.717] All threads have died.
      [9:35:25.717]
      Iteration: 36
      [9:35:25.725] All threads started: 50
      [9:35:26.8] All threads have died.
      [9:35:26.8]
      Iteration: 37
      [9:35:26.16] All threads started: 50
      [9:35:26.300] All threads have died.
      [9:35:26.300]
      Iteration: 38
      [9:35:26.312] All threads started: 50
      [9:35:26.618] All threads have died.
      [9:35:26.618]
      Iteration: 39
      [9:35:26.657] All threads started: 50
      [9:35:27.532] All threads have died.
      [9:35:27.532]
      Iteration: 40
      [9:35:27.541] All threads started: 50
      [9:35:27.823] All threads have died.
      [9:35:27.823]
      Iteration: 41
      [9:35:27.831] All threads started: 50
      [9:35:28.95] All threads have died.
      [9:35:28.95]
      Iteration: 42
      [9:35:28.105] All threads started: 50
      [9:35:28.371] All threads have died.
      [9:35:28.372]
      Iteration: 43
      [9:35:28.379] All threads started: 50
      [9:35:28.669] All threads have died.
      [9:35:28.669]
      Iteration: 44
      [9:35:28.676] All threads started: 50
      [9:35:28.953] All threads have died.
      [9:35:28.953]
      Iteration: 45
      [9:35:28.960] All threads started: 50
      [9:35:29.252] All threads have died.
      [9:35:29.252]
      Iteration: 46
      [9:35:29.260] All threads started: 50
      [9:35:29.546] All threads have died.
      [9:35:29.546]
      Iteration: 47
      [9:35:29.554] All threads started: 50
      [9:35:29.826] All threads have died.
      [9:35:29.826]
      Iteration: 48
      [9:35:29.835] All threads started: 50
      [9:35:30.100] All threads have died.
      [9:35:30.100]
      Iteration: 49
      [9:35:30.109] All threads started: 50
      [9:35:30.376] All threads have died.
      [9:35:30.377] # ERROR: TEST FAILED.
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: TEST FAILED.
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:309)
      at nsk.share.Log.complain(Log.java:280)
      at nsk.monitoring.stress.thread.strace001.run(strace001.java:133)
      at nsk.monitoring.stress.thread.strace001.main(strace001.java:51)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

      Nothing seems to have changed at the time this failure happend so perhaps the test got stuck somehow and then sampled this unexpected stack?

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: