[jboss-jira] [JBoss JIRA] (WFLY-4113) 8.2.0.Final build hangs
James Perkins (JIRA)
issues at jboss.org
Fri Nov 21 11:10:39 EST 2014
[ https://issues.jboss.org/browse/WFLY-4113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021991#comment-13021991 ]
James Perkins commented on WFLY-4113:
-------------------------------------
Thread dump from a local hang
{code}
"Remoting "endpoint" task-10":
at org.jboss.remoting3.remote.OutboundMessage.cancel(OutboundMessage.java:289)
- waiting to lock <0x00000007aed930d8> (a org.xnio.streams.BufferPipeOutputStream)
at org.jboss.remoting3.remote.RemoteConnectionChannel.closeMessages(RemoteConnectionChannel.java:560)
at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:542)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:423)
- locked <0x00000007aec0f708> (a java.util.ArrayDeque)
at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequest(
RemoteConnectionHandler.java:232)
at org.jboss.remoting3.remote.RemoteConnectionHandler.handleConnectionClose(RemoteConnectionHandler.java:112)
at org.jboss.remoting3.remote.RemoteReadListener$1$1.run(RemoteReadListener.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
"Remoting 3 thread 1":
at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.send(RemoteConnection.java:295)
- waiting to lock <0x00000007aec0f708> (a java.util.ArrayDeque)
at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:122)
at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:154)
at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:122)
at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:115)
at org.xnio.streams.BufferPipeOutputStream.flush(BufferPipeOutputStream.java:139)
- locked <0x00000007aed930d8> (a org.xnio.streams.BufferPipeOutputStream)
at org.xnio.streams.BufferPipeOutputStream.close(BufferPipeOutputStream.java:157)
- locked <0x00000007aed930d8> (a org.xnio.streams.BufferPipeOutputStream)
at org.jboss.remoting3.remote.OutboundMessage.close(OutboundMessage.java:283)
- locked <0x00000007aed930d8> (a org.xnio.streams.BufferPipeOutputStream)
at java.io.FilterOutputStream.close(FilterOutputStream.java:160)
at org.jboss.as.protocol.mgmt.FlushableDataOutputImpl.close(FlushableDataOutputImpl.java:123)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$CancelAsyncRequestHandler$1.execute(ModelControllerClientOperationHandler.java:296)
at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:283)
at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:504)
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
{code}
The deadlock seems to be happening on https://github.com/jamezp/wildfly/blob/8.x/controller/src/test/java/org/jboss/as/controller/support/RemoteChannelPairSetup.java#L128-128 for me.
> 8.2.0.Final build hangs
> -----------------------
>
> Key: WFLY-4113
> URL: https://issues.jboss.org/browse/WFLY-4113
> Project: WildFly
> Issue Type: Feature Request
> Components: Test Suite
> Affects Versions: 8.2.0.Final
> Reporter: Peter Major
> Assignee: David Lloyd
> Attachments: jstack.txt
>
>
> When trying to build 8.2.0.Final locally, my build just hangs indefinitely while executing a unit test in the controller module:
> {noformat}
> Running org.jboss.as.controller.ModelControllerClientTestCase
> {noformat}
> Running jstack against the build suggests that there is a deadlock between
> {noformat}
> - waiting to lock <0x00000007bc3f96c8> (a org.xnio.streams.BufferPipeOutputStream)
> at org.jboss.remoting3.remote.RemoteConnectionChannel.closeMessages(RemoteConnectionChannel.java:560)
> at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:542)
> at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
> at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:423)
> - locked <0x00000007b8d8e6f8> (a java.util.ArrayDeque)
> at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequest(RemoteConnectionHandler.java:232)
> {noformat}
> and
> {noformat}
> - waiting to lock <0x00000007b8d8e6f8> (a java.util.ArrayDeque)
> at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:122)
> at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:154)
> at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:122)
> at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:115)
> at org.xnio.streams.BufferPipeOutputStream.flush(BufferPipeOutputStream.java:139)
> - locked <0x00000007bc3f96c8> (a org.xnio.streams.BufferPipeOutputStream)
> at org.xnio.streams.BufferPipeOutputStream.close(BufferPipeOutputStream.java:157)
> - locked <0x00000007bc3f96c8> (a org.xnio.streams.BufferPipeOutputStream)
> at org.jboss.remoting3.remote.OutboundMessage.close(OutboundMessage.java:283)
> - locked <0x00000007bc3f96c8> (a org.xnio.streams.BufferPipeOutputStream)
> at java.io.FilterOutputStream.close(FilterOutputStream.java:160)
> {noformat}
> Preferably locks should be obtained in the same order across the different code paths to prevent deadlocks.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list