Uploaded image for project: 'JBoss Remoting (3+)'
  1. JBoss Remoting (3+)
  2. REM3-186

Spin loop on freed buffer

    XMLWordPrintable

Details

    Description

      Sometimes when a connection gets closed in the wrong moment XNIO seems to be stuck in a spin loop. In that case your logs are full with the following error messages:

      24.03.2014 09:15:52 ERROR [org.xnio.listener] (Remoting "e_q113_onl" I/O-1) XNIO001007: A channel event listener threw an exception: java.lang.IllegalStateExc
      eption: XNIO000017: Buffer was already freed
              at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:206) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:176) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.handleEvent(RemoteConnection.java:230) [jboss-remoting-4.0.2.Final.jar:4.0.2.Final]
              at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.handleEvent(RemoteConnection.java:214) [jboss-remoting-4.0.2.Final.jar:4.0.2.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.channels.TranslatingSuspendableChannel.handleWritable(TranslatingSuspendableChannel.java:250) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:120) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:91)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
      
      24.03.2014 09:15:52 ERROR [org.xnio.listener] (Remoting "e_q113_onl" I/O-1) XNIO001007: A channel event listener threw an exception: java.lang.IllegalStateExc
      eption: XNIO000017: Buffer was already freed
              at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:206) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:176) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.handleEvent(RemoteConnection.java:230) [jboss-remoting-4.0.2.Final.jar:4.0.2.Final]
              at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.handleEvent(RemoteConnection.java:214) [jboss-remoting-4.0.2.Final.jar:4.0.2.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.channels.TranslatingSuspendableChannel.handleWritable(TranslatingSuspendableChannel.java:250) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:120) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
              at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:91)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)
      

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            pmarscha Philippe Marschall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: