Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14687

BinaryHeapOutputStream BinaryOffheapOutputStream corrupt memory in case of overflow and cause JVM crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10
    • 2.11
    • binary
    • None
    • Fixed potential JVM crash due to integer overflow in binary streams.
    • Release Notes Required

    Description

      Reproducer is easy:

      while (true) out.writeByteArray(bytes);


      #

      1. A fatal error has been detected by the Java Runtime Environment:
        #
      2. EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000002742b26, pid=17128, tid=0x00000000000024e4
        #

       

      Actually It happened to me occassionally when by mistake a compute job tried to return too many results. JVM crashed on the job result serialization.

      See link to full reproducers below.

       

      Attachments

        Activity

          People

            macrergate Sergey Kosarev
            macrergate Sergey Kosarev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m