You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "himotoyoshi (via GitHub)" <gi...@apache.org> on 2026/10/20 09:45:39 UTC
[I] [Ruby] Memory behind Arrow::Buffer#data is freed by GC while the Bytes still refer to it [arrow]
himotoyoshi opened a new issue, #54687:
URL: https://github.com/apache/arrow/issues/54687
### Describe the bug, including details regarding any error messages, version, and platform.
The GLib::Bytes returned by Arrow::Buffer#data reads freed memory once the array is garbage collected, although the Bytes object is still referenced.
```
require "arrow"
bytes = Arrow::StringArray.new(["hello world, a long-ish string"]).data_buffer.data
GC.start
p bytes.to_s
# => "\x80\x00_AN\x02\x00\x00rld, a long-ish string"
```
Environment: red-arrow 25.0.1, apache-arrow-glib 25.0.1 (Homebrew), Ruby 3.4.1, macOS 15.4.1 (arm64)
### 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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Memory behind Arrow::Buffer#data is freed by GC while the Bytes still refer to it [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #54687: [Ruby] Memory behind Arrow::Buffer#data is freed by GC while the Bytes still refer to it
URL: https://github.com/apache/arrow/issues/54687
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Memory behind Arrow::Buffer#data is freed by GC while the Bytes still refer to it [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #54687:
URL: https://github.com/apache/arrow/issues/54687#issuecomment-6309509099
Issue resolved by pull request 54883
https://github.com/apache/arrow/pull/54883
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org