Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14792

[GSS](7.1.z) XNIO000017: Buffer was already freed

    XMLWordPrintable

Details

    • Hide

      See attached reproducer.zip.
      Setup JBoss/Wildfly with SSL enabled on remoting/http connector
      Add a test user to ApplicationRealm
      Run multiple client threads that use remoting API to connect/disconnect repeatedly

      Show
      See attached reproducer.zip. Setup JBoss/Wildfly with SSL enabled on remoting/http connector Add a test user to ApplicationRealm Run multiple client threads that use remoting API to connect/disconnect repeatedly

    Description

      Issue reproduced with EAP 7.1 CP2 remoting client talking to EAP 7.1 CP2, trace-logs.zip attached.

      01:16:17,649 ERROR (Remoting "TestRemotingConnection-6endpoint-12" I/O-1) [org.xnio.listener] XNIO001007: A channel event listener threw an exception: java.lang.IllegalStateException: XNIO000017: Buffer was already freed
        at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:214) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:184) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.ssl.JsseSslConduitEngine.unwrap(JsseSslConduitEngine.java:601) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.ssl.JsseSslStreamSourceConduit.read(JsseSslStreamSourceConduit.java:126) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:123) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.jboss.remoting3.remote.MessageReader.getMessage(MessageReader.java:132) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:72) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:46) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.nio.NioHandle$1.run(NioHandle.java:50) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612) [jboss-client.jar:7.1.2.GA-redhat-1]
        at org.xnio.nio.WorkerThread.run(WorkerThread.java:479) [jboss-client.jar:7.1.2.GA-redhat-1]
      

      Also reproduced with Client application using EAP 7.1 client jars and legacy EJB jar calling EAP 7.0 randomly hits this.
      I've tried to replicate with EAP 7.1 client jars talking to EAP 7.1, but the EJB enhancement there do not close the connection each time, so it makes it harder to replicate.

      17:25:59,167 ERROR (Remoting "76052@ovpn-120-203.rdu2.redhat.com-ClientThread-187" I/O-1) [org.xnio.listener] XNIO001007: A channel event listener threw an exception: java.lang.IllegalStateException: XNIO000017: Buffer was already freed
      	at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:214) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.ByteBufferSlicePool$PooledByteBuffer.getResource(ByteBufferSlicePool.java:184) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.ssl.JsseSslConduitEngine.unwrap(JsseSslConduitEngine.java:601) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.ssl.JsseSslStreamSourceConduit.read(JsseSslStreamSourceConduit.java:126) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:123) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.jboss.remoting3.remote.MessageReader.getMessage(MessageReader.java:132) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:72) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:46) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) [jboss-client-legacy.jar:7.1.2.GA-redhat-1]
      

      Attachments

        1. reproducer.zip
          20 kB
        2. trace-logs.zip
          908 kB

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-bmaxwell Brad Maxwell
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: