Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2472

TCPConnection allocates 1.5G after reading incorrect header in the connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.6.13
    • None

      We are using FILE_PING JGroups functionality with Artemis servers.

      Periodically (very rate) we see that TCPConnection allocates 1650814049 bytes in the receiving buffer.

      This is similar to the https://issues.redhat.com/browse/JGRP-1117 issue.

      This issue is happening periodically and it's clearly visible in the memory dumps from Artemis servers.

      Screen-shots of the dumps are attached.

      Can TCPConnection be protected from the incorrect input?

      https://github.com/belaban/JGroups/blob/JGroups-3.6.13.Final/src/org/jgroups/blocks/cs/TcpConnection.java

      Something like this:

      int len=in.readInt();  
      if(len==1650814049) throw InvalidStateException(); 
      

        1. 2020-04-21_12h58_50.png
          80 kB
          Pavel Molchanov
        2. 2020-04-21_15h38_37.png
          99 kB
          Pavel Molchanov

              rhn-engineering-bban Bela Ban
              pavelmolchanov Pavel Molchanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: