[ruby-core:82708] Re: [Ruby trunk Bug#13875] segfault in Enumerable#zip after GC

From: Eric Wong <normalperson@...>
Date: 2017-09-07 19:41:17 UTC
List: ruby-core #82708
Thanks, I can reproduce the bug on GNU/Linux with:

--- a/cont.c
+++ b/cont.c
@@ -57,6 +57,7 @@
 #  define FIBER_USE_NATIVE 1
 # endif
 #endif
+#undef FIBER_USE_NATIVE
 #if !defined(FIBER_USE_NATIVE)
 #define FIBER_USE_NATIVE 0
 #endif

Now, I'm testing the following patch:

   https://80x24.org/spew/20170907193559.27639-1-e@80x24.org/raw

And I no longer get segfaults with the new test

However, test/ruby/test_io.rb seems stuck when FIBER_USE_NATIVE is 0
on my system...

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next