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

java/nio/channels/FileChannel/InterruptDeadlock.java timed out intermittently

XMLWordPrintable

      java/nio/channels/FileChannel/InterruptDeadlock.java timed out intermittently.

      Found one Java-level deadlock:
      =============================
      "Thread-13":
        waiting to lock monitor 0x00007fe1058b8200 (object 0x00000007ab596768, a java.lang.Object),
        which is held by "SameVMThread"
      "SameVMThread":
        waiting to lock monitor 0x00007fe107013c00 (object 0x00000007ab596050, a java.lang.Object),
        which is held by "Thread-13"

      Java stack information for the threads listed above:
      ===================================================
      "Thread-13":
      at java.lang.Thread.interrupt(Thread.java:975)
      - waiting to lock <0x00000007ab596768> (a java.lang.Object)
      at sun.nio.ch.NativeThreadSet.signalAndWait(NativeThreadSet.java:109)
      - locked <0x00000007ab596060> (a sun.nio.ch.NativeThreadSet)
      at sun.nio.ch.FileChannelImpl.implCloseChannel(FileChannelImpl.java:130)
      at java.nio.channels.spi.AbstractInterruptibleChannel$1.interrupt(AbstractInterruptibleChannel.java:162)
      - locked <0x00000007ab596050> (a java.lang.Object)
      at java.nio.channels.spi.AbstractInterruptibleChannel.begin(AbstractInterruptibleChannel.java:170)
      at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:306)
      - locked <0x00000007ab596098> (a java.lang.Object)
      at InterruptDeadlock$Reader.run(InterruptDeadlock.java:61)
      "SameVMThread":
      at java.nio.channels.spi.AbstractInterruptibleChannel$1.interrupt(AbstractInterruptibleChannel.java:157)
      - waiting to lock <0x00000007ab596050> (a java.lang.Object)
      at java.lang.Thread.interrupt(Thread.java:978)
      - locked <0x00000007ab596768> (a java.lang.Object)
      at InterruptDeadlock.main(InterruptDeadlock.java:110)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:804)

      Found 1 deadlock.

      --- Timeout information end.
      elapsed time (seconds): 480.567

            bpb Brian Burkhalter
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: