himotoyoshi opened a new issue, #54688:
URL: https://github.com/apache/arrow/issues/54688

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   An array built on an Arrow::Buffer created from a String reads freed memory 
once the Buffer object is garbage collected, although the array is still 
referenced.
   
   ```
   require "arrow"
   
   chunked = Arrow::ChunkedArray.new([Arrow::Int32Array.new(3, 
Arrow::Buffer.new([1, 2, 3].pack("l*")), nil, 0)])
   GC.start
   Array.new(10000) { [7, 7, 7].pack("l*") }
   p chunked.to_a
   # => [10860, 0, 0]
   ```
   
   Environment: red-arrow 25.0.1, apache-arrow-glib 25.0.1 (Homebrew), Ruby 
3.4.1, macOS 15.4.1 (arm64)
   
   Possibly related to #54687 
   
   ### Component(s)
   
   Ruby


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to