JDK-8151862 : java/nio/channels/FileChannel/InterruptDeadlock.java timed out intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-03-15
  • Updated: 2017-05-13
  • Resolved: 2017-05-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Relates :  
Description
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
Comments
I'm closing this as dup of JDK-8054039
13-05-2017

It's duplicate with JDK-8054039
11-05-2017

See http://mail.openjdk.java.net/pipermail/nio-dev/2017-February/004149.html for a request for comment on a possible error in the test which might or might not be related to this issue. Suite: http://mail.openjdk.java.net/pipermail/nio-dev/2017-March/004152.html
01-03-2017

From the JDK 9 build 149 jtr: Found one Java-level deadlock: ============================= "Thread-14": waiting to lock monitor 0x00000000036f4d00 (object 0x00000000e7a05f00, a java.lang.Object), which is held by "SameVMThread" "SameVMThread": waiting to lock monitor 0x00000000036f2d00 (object 0x00000000e7a04d20, a java.lang.Object), which is held by "Thread-14" Java stack information for the threads listed above: =================================================== "Thread-14": at java.lang.Thread.interrupt(java.base@9-ea/Thread.java:1016) - waiting to lock <0x00000000e7a05f00> (a java.lang.Object) at sun.nio.ch.NativeThreadSet.signalAndWait(java.base@9-ea/NativeThreadSet.java:109) - locked <0x00000000e7a04d30> (a sun.nio.ch.NativeThreadSet) at sun.nio.ch.FileChannelImpl.implCloseChannel(java.base@9-ea/FileChannelImpl.java:136) at java.nio.channels.spi.AbstractInterruptibleChannel$1.interrupt(java.base@9-ea/AbstractInterruptibleChannel.java:162) - locked <0x00000000e7a04d20> (a java.lang.Object) at java.nio.channels.spi.AbstractInterruptibleChannel.begin(java.base@9-ea/AbstractInterruptibleChannel.java:170) at sun.nio.ch.FileChannelImpl.readInternal(java.base@9-ea/FileChannelImpl.java:745) at sun.nio.ch.FileChannelImpl.read(java.base@9-ea/FileChannelImpl.java:734) at InterruptDeadlock$Reader.run(InterruptDeadlock.java:57) "SameVMThread": at java.nio.channels.spi.AbstractInterruptibleChannel$1.interrupt(java.base@9-ea/AbstractInterruptibleChannel.java:157) - waiting to lock <0x00000000e7a04d20> (a java.lang.Object) at java.lang.Thread.interrupt(java.base@9-ea/Thread.java:1019) - locked <0x00000000e7a05f00> (a java.lang.Object) at InterruptDeadlock.main(InterruptDeadlock.java:110) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:538) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230) at java.lang.Thread.run(java.base@9-ea/Thread.java:844) Found 1 deadlock.
01-03-2017