[ https://issues.apache.org/jira/browse/THRIFT-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17299164#comment-17299164 ]
Jens Geyer edited comment on THRIFT-5367 at 3/10/21, 10:18 PM: --------------------------------------------------------------- If you send it directly via Github as a pull request it saves a lot of work :-) ... both of us. was (Author: jensg): If you send it directly via Github as a pull request it saves a lot of work :-) > Ruby library crashes when using GC.compact > ------------------------------------------ > > Key: THRIFT-5367 > URL: https://issues.apache.org/jira/browse/THRIFT-5367 > Project: Thrift > Issue Type: Bug > Affects Versions: 0.14.1 > Reporter: Stan Hu > Priority: Major > Attachments: thrift-ruby-gc-v2.patch, thrift-ruby-gc.patch > > Time Spent: 1h 10m > Remaining Estimate: 0h > > Ruby v2.7 introduced support for a compacting garbage collector > ([https://bugs.ruby-lang.org/issues/15626)] that can be invoked via > `GC.compact`. > > The Thrift library does not mark its global constants, so seg faults appear > when using `GC.compact`. > > The attached patch appears to fix the problem and makes tests pass in Ruby > v2.7 and v3.0. -- This message was sent by Atlassian Jira (v8.3.4#803005)