From: Eric Wong Date: 2018-09-09T10:08:25+00:00 Subject: [ruby-core:88919] Re: [Ruby trunk Bug#15050] GC after forking with fibers crashes Koichi Sasada wrote: > Ok. We need to avoid this kind of crash. > > https://bugs.ruby-lang.org/issues/15050 OK, I think I fixed the issue (also including [Feature #15095]) Greg, there's a small win32-specific change in this series which seems low risk, but I figured I'd Cc you anyways for testing. Thanks. Pull request: The following changes since commit 64b326c2204e562aa3d6025ca097a82bcf4de303: spec/ruby/library/socket/addrinfo: require for SocketSpecs (2018-09-09 08:50:53 +0000) are available in the Git repository at: https://80x24.org/ruby.git fiber-fork for you to fetch changes up to ce0a6005fbf78203b3bcaa4b90bf94b8b5c44782: fiber: fix crash on GC after forking (2018-09-09 09:49:55 +0000) Or broken out patches: * [PATCH 1/4] share VM stack between threads and fibers if identical https://80x24.org/spew/20180909095347.30757-2-e@80x24.org/raw * [PATCH 2/4] cont.c (ec_set_vm_stack): avoid needless casting https://80x24.org/spew/20180909095347.30757-3-e@80x24.org/raw * [PATCH 3/4] cont.c (fiber_memsize): do not rely on ROOT_FIBER_CONTEXT https://80x24.org/spew/20180909095347.30757-4-e@80x24.org/raw * [PATCH 4/4] fiber: fix crash on GC after forking https://80x24.org/spew/20180909095347.30757-5-e@80x24.org/raw Or full diff against current trunk (r64663): https://80x24.org/spew/20180909100319.ild2rlncrmmm2lwp@whir/raw Unsubscribe: