From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C17321F453 for ; Thu, 31 Jan 2019 11:03:03 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 20F8F121F8C; Thu, 31 Jan 2019 20:03:01 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id D354D121F72 for ; Thu, 31 Jan 2019 20:02:58 +0900 (JST) Received: by filter0062p3mdw1.sendgrid.net with SMTP id filter0062p3mdw1-29229-5C52D5E0-11 2019-01-31 11:02:56.186968241 +0000 UTC m=+224225.346626295 Received: from herokuapp.com (ec2-54-85-221-199.compute-1.amazonaws.com [54.85.221.199]) by ismtpd0036p1iad1.sendgrid.net (SG) with ESMTP id v_XEie-7SL2y5fUnQvGu0w for ; Thu, 31 Jan 2019 11:02:56.158 +0000 (UTC) Date: Thu, 31 Jan 2019 11:02:57 +0000 (UTC) From: usa@garbagecollect.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 66814 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15041 X-Redmine-Issue-Author: normalperson X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS73hOE54FqiNgZrlk8ZjfGM321wjCnQQOKy8b Bo3DBQtSKAAOqZLCP6GZMOw8ImhUcK+kb3jhGF3U+8U+ukPxhVcy5x8N8VbKqkpfKP9WPX9djy2IIr LGB/rNmjIMompsepyc0mDHpxN8Meuj+4JGaLhovzDGdfbxwmH2sj4AlfHw== X-ML-Name: ruby-core X-Mail-Count: 91360 Subject: [ruby-core:91360] [Ruby trunk Bug#15041] [PATCH] cont.c: set th->root_fiber to current fiber at fork X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15041 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: DONE to 2.3: REQUIRED, 2.4: DONE, 2.5: DONE ruby_2_4 r66968 merged revision(s) 64589,64593. ---------------------------------------- Bug #15041: [PATCH] cont.c: set th->root_fiber to current fiber at fork https://bugs.ruby-lang.org/issues/15041#change-76613 * Author: normalperson (Eric Wong) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: REQUIRED, 2.4: DONE, 2.5: DONE ---------------------------------------- cont.c: set th->root_fiber to current fiber at fork Otherwise, th->root_fiber can point to an invalid Fiber, because Fibers do not live across fork. So consider whatever Fiber is running the root fiber. ---Files-------------------------------- 0001-cont.c-set-th-root_fiber-to-current-fiber-at-fork.patch (2.13 KB) -- https://bugs.ruby-lang.org/