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

Several tests fail to attach with "well-known file xxx is not secure: file's group should be the current group (which is -1) but the group is 0"

    XMLWordPrintable

    Details

      Description

      Test case name: java/util/logging/TestLoggerWeakRefLeak.java
      This happened in recent Mach5 job jdk-jdk.7822

      Please refer to following test output:
      ----------System.err:(19/1753)----------
      java.io.IOException: well-known file /var/folders/xm/5dz4041x0_77y53y0nwsqhmh0000mv/T/.java_pid58551 is not secure: file's group should be the current group (which is -1) but the group is 0
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.checkPermissions(Native Method)
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:108)
      at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
      at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
      at TestLoggerWeakRefLeak.getInstanceCountFromHeapHisto(TestLoggerWeakRefLeak.java:132)
      at TestLoggerWeakRefLeak.testIfLeaking(TestLoggerWeakRefLeak.java:82)
      at TestLoggerWeakRefLeak.main(TestLoggerWeakRefLeak.java:59)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:841)

      JavaTest Message: Test threw exception: java.io.IOException: well-known file /var/folders/xm/5dz4041x0_77y53y0nwsqhmh0000mv/T/.java_pid58551 is not secure: file's group should be the current group (which is -1) but the group is 0
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.io.IOException: well-known file /var/folders/xm/5dz4041x0_77y53y0nwsqhmh0000mv/T/.java_pid58551 is not secure: file's group should be the current group (which is -1) but the group is 0

        Attachments

          Activity

            People

            • Assignee:
              cjplummer Chris Plummer
              Reporter:
              wenjyang Crystal Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: