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=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 5B3C41F4B4 for ; Sat, 10 Apr 2021 03:51:26 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 400B6120988; Sat, 10 Apr 2021 12:50:24 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id A49A3120CC7 for ; Sat, 10 Apr 2021 12:50:22 +0900 (JST) Received: by filterdrecv-c5749c756-vv7nm with SMTP id filterdrecv-c5749c756-vv7nm-14-607120B2-26 2021-04-10 03:51:14.6462864 +0000 UTC m=+1334847.430725506 Received: from herokuapp.com (unknown) by ismtpd0162p1iad2.sendgrid.net (SG) with ESMTP id 20Sx5B3uS6eYwwyjLgftHw for ; Sat, 10 Apr 2021 03:51:14.607 +0000 (UTC) Date: Sat, 10 Apr 2021 03:51:14 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79410 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17791 X-Redmine-Issue-Author: tomanderson X-Redmine-Sender: jeremyevans0 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: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIbs3d2WMUjYCfU4HqtayNE7HBd=2Fhj9orJOGuUR?= =?us-ascii?Q?GHBch1uSjK5svvQi4tYuCTFUE4btM5y6W1DRsRT?= =?us-ascii?Q?wEqiA+eSMRWa2lAwwu9DA+ZwKVQmPi5OoXBUGoq?= =?us-ascii?Q?nsHK+1yl1x0LbpZ+2TfwqPAqwDGcn48ZohvB3UL?= =?us-ascii?Q?mDy0JH49blt5KIHI8=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103363 Subject: [ruby-core:103363] [Ruby master Bug#17791] Ractor exception when using Nokogiri 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 #17791 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Rejected Based on @xtkoba's analysis, closing as this doesn't appear to be a bug in Ruby. ---------------------------------------- Bug #17791: Ractor exception when using Nokogiri https://bugs.ruby-lang.org/issues/17791#change-91454 * Author: tomanderson (Thomas Ender) * Status: Rejected * Priority: Normal * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Parsing xml using nokogiri: ``` r doc = Nokogiri.XML('', nil, 'EUC-JP') ``` Suppose I want to parse 4 xmls with 4 ractors, it will raise an unsafe exception: Ractor::UnsafeError: ractor unsafe method called from not main ractor the ruby version is 3.0.1. I wonder if there is any way to avoid this. -- https://bugs.ruby-lang.org/