Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13529

Too many releases in IPC writer when writing slices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.0
    • 6.0.0
    • Go

    Description

      https://github.com/apache/arrow/blob/master/go/arrow/ipc/writer.go#L441

      In the *arrow.StringType case, in the needTruncate code path (happens when writing a record.NewSlice), a reference to data.buffers[2] is appended to the payload body. It gets Release'd here without any Retain.

      The code for the FixedWidthType and BinaryType cases is similar.

      The attached code reproduces the issue.

      Attachments

        1. main.go
          1 kB
          Curt Hash

        Issue Links

          Activity

            People

              zeroshade Matthew Topol
              chash Curt Hash
              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 - 40m
                  40m