From cd5f49d0942e19a5854a325941918fca02fdb409 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Tue, 3 Oct 2017 17:28:49 -0700 Subject: Fix ruby segment fault (#3708) * Fix ruby segment fault 1) rb_ary_new cannot be called during allocate function. During allocate fucntion, the containing object hasn't been marked and rb_ary_new may invoke gc to collect containing object. 2) The global map should be marked before allocating it. Otherwise it may be garbage collected. * Add test * Remove commented code * Fix grammer error --- ruby/travis-test.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'ruby/travis-test.sh') diff --git a/ruby/travis-test.sh b/ruby/travis-test.sh index 52ea81b6..cbe7cd98 100755 --- a/ruby/travis-test.sh +++ b/ruby/travis-test.sh @@ -20,6 +20,7 @@ test_version() { git clean -f && \ gem install bundler && bundle && \ rake test && + rake gc_test && cd ../conformance && make test_ruby && cd ../ruby/compatibility_tests/v3.0.0 && ./test.sh" fi -- cgit v1.2.3