This project is closed and read-only.
Actions
Backport #11328
closedMemory leak in str_buf_cat?
Backport #11328:
Memory leak in str_buf_cat?
Status:
Closed
Assignee:
-
Description
There may be a memory leak in str_buf_cat that showed up in 2.2 but was 'fixed' in 2.3. The main reason I'm filing this issue is it looks like the 'fix' in 2.3 is actually a byproduct of another bug. So I wanted to file a ticket to bring this up and see about a test case to prevent a regression in the future.
Details:
- the underlying issue was discovered running google/protobuf gem within ruby 2.2: https://github.com/google/protobuf/issues/474
- the issue seems to crop up between v2_2_0_preview1 and v2_2_0_preview2, but is gone in 2.3.0-dev
- this looks like the patch that resolved this behavior, but again, I think it was trying to fix a different issue: https://github.com/ruby/ruby/commit/2b0a6f47ac9ea1ac81c9d438ac9bc8d38b46cb04
- as josh noted, a pure ruby version worked just fine
all the usual caveats apply about a newbie to this issue tracker :) If you need additional information or a more formal writeup here rather than linking back to github, just ask.
thank you for your help!
Adam
Actions