[ https://issues.apache.org/jira/browse/THRIFT-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-5367. -------------------------------- Fix Version/s: 0.15.0 Assignee: Stan Hu Resolution: Fixed > 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 > Assignee: Stan Hu > Priority: Major > Fix For: 0.15.0 > > Attachments: thrift-ruby-gc-v2.patch, thrift-ruby-gc.patch > > Time Spent: 1.5h > 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)