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.2 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,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 9FCDC1F4B4 for ; Fri, 9 Apr 2021 12:34:04 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 721BC120BE3; Fri, 9 Apr 2021 21:32:57 +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 EAA64120BE2 for ; Fri, 9 Apr 2021 21:32:53 +0900 (JST) Received: by filterdrecv-59db977c98-l8n8b with SMTP id filterdrecv-59db977c98-l8n8b-14-607049AF-75 2021-04-09 12:33:51.746767559 +0000 UTC m=+1279786.942992825 Received: from herokuapp.com (unknown) by ismtpd0153p1iad2.sendgrid.net (SG) with ESMTP id N3LOZ3THR4GgML7_6-hgRg for ; Fri, 09 Apr 2021 12:33:51.602 +0000 (UTC) Date: Fri, 09 Apr 2021 12:33:51 +0000 (UTC) From: 908709778@qq.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79391 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17791 X-Redmine-Issue-Author: tomanderson X-Redmine-Sender: tomanderson 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?oEeMbXBBKu0M3YArPIrb60N+nhKjq0f2kvv0KkrqXp41UipNR7wv4iPz=2FSU5cu?= =?us-ascii?Q?6cSUQVDvN3CqHMdur9fQyQkcji6Lkqw1qJwa4Dz?= =?us-ascii?Q?aQKoy36A+L47jyTmyG0euNlByE1zq1jEYNxOH7H?= =?us-ascii?Q?0l8RGS=2FUBleid9MaDo4p2cUXRJoaCLmr+bu4eYs?= =?us-ascii?Q?5CnbAeMRyPRhMqHWohjOKhgQjuxUUWRKRzg=3D=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103345 Subject: [ruby-core:103345] [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 reported by tomanderson (Thomas Ender). ---------------------------------------- Bug #17791: Ractor exception when using Nokogiri https://bugs.ruby-lang.org/issues/17791 * Author: tomanderson (Thomas Ender) * Status: Open * 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/