[ruby-core:88919] Re: [Ruby trunk Bug#15050] GC after forking with fibers crashes

From: Eric Wong <normalperson@...>
Date: 2018-09-09 10:08:25 UTC
List: ruby-core #88919
Koichi Sasada <[email protected]> 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/[email protected]/raw

  * [PATCH 2/4] cont.c (ec_set_vm_stack): avoid needless casting
    https://80x24.org/spew/[email protected]/raw

  * [PATCH 3/4] cont.c (fiber_memsize): do not rely on ROOT_FIBER_CONTEXT
    https://80x24.org/spew/[email protected]/raw

  * [PATCH 4/4] fiber: fix crash on GC after forking
    https://80x24.org/spew/[email protected]/raw

Or full diff against current trunk (r64663):

  https://80x24.org/spew/20180909100319.ild2rlncrmmm2lwp@whir/raw

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next