You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Stan Hu (Jira)" <ji...@apache.org> on 2021/03/10 02:19:00 UTC

[jira] [Created] (THRIFT-5367) Ruby library crashes when using GC.compact

Stan Hu created THRIFT-5367:
-------------------------------

             Summary: 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
         Attachments: thrift-ruby-gc.patch

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)