Uploaded image for project: 'JBoss Remoting'
  1. JBoss Remoting
  2. JBREM-845

Infinite loop in BisocketClientInvoker.createSocket

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.2.2.GA_CP01, 2.2.2.SP2, 2.4.0.Beta1 (Pinto)
    • Fix Version/s: 2.2.2.SP4
    • Component/s: None
    • Labels:
      None

      Description

      The following piece of code constitutes an infinite loop when timeout = 0:

      while (timeout == 0 || wait > 0)
      {
      try

      { sockets.wait(wait); break; }

      catch (InterruptedException e)

      { log.debug("unexpected interrupt"); if (timeout > 0) wait = timeout - (System.currentTimeMillis() - start); }

      }

      "Thread-41" prio=1 tid=0x00002aaaac3cd0b0 nid=0x2e87 in Object.wait() [0x0000000048fe3000..0x0000000048fe3d80]
      at java.lang.Object.wait(Native Method)

      • waiting on <0x00002b7156e2f410> (a java.util.HashSet)
        at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:458)
      • locked <0x00002b7156e2f410> (a java.util.HashSet)
        at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:815)
        at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
        at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:413)
        at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
        at org.jboss.remoting.Client.invoke(Client.java:1634)
        at org.jboss.remoting.Client.invoke(Client.java:548)
        at org.jboss.remoting.Client.invokeOneway(Client.java:598)
        at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:815)
        at org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:686)
        at org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1490)
      • locked <0x00002b71569e25e8> (a org.jboss.remoting.transport.bisocket.BisocketClientInvoker)
        at org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1375)
      • locked <0x00002b71569dfd40> (a org.jboss.jms.server.endpoint.ServerSessionEndpoint)
        at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:307)
      • locked <0x00002b71569ed6b0> (a java.lang.Object)
        at org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
        at org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:582)
        at org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
        at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:476)
        at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:505)
        at org.jboss.messaging.core.impl.ChannelSupport.deliver(ChannelSupport.java:226)
      • locked <0x00002b71565d3d50> (a java.lang.Object)
        at org.jboss.jms.server.endpoint.ServerSessionEndpoint$2.run(ServerSessionEndpoint.java:1598)
        at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
        at java.lang.Thread.run(Thread.java:595)

        Gliffy Diagrams

          Attachments

          1. console.log-4.txt
            25 kB
          2. jboss-remoting.jar
            836 kB
          3. jboss-remoting.jar
            836 kB
          4. JBREM-845-3.txt
            140 kB
          5. JBREM-845-4.txt
            145 kB
          6. JBREM-845-5.txt
            171 kB
          7. server-5.log
            2.95 MB
          8. strictpool-shutdown-EAP-4.3.hang.txt
            92 kB

            Issue Links

              Activity

                People

                • Assignee:
                  ron_sigal Ronald Sigal
                  Reporter:
                  wolfc Carlo de Wolf
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: