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-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=no 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 A9A3F1F5AE for ; Thu, 30 Jul 2020 22:14:09 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8DD99120B45; Fri, 31 Jul 2020 07:13:35 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id BD740120A17 for ; Fri, 31 Jul 2020 07:13:32 +0900 (JST) Received: by filterdrecv-p3las1-559bd7b968-682tx with SMTP id filterdrecv-p3las1-559bd7b968-682tx-19-5F234623-42 2020-07-30 22:13:55.87689808 +0000 UTC m=+100674.854699895 Received: from herokuapp.com (unknown) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id pLg2WWXqTcuDt6ElQH1MbA for ; Thu, 30 Jul 2020 22:13:55.740 +0000 (UTC) Date: Thu, 30 Jul 2020 22:13:55 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75233 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 10959 X-Redmine-Issue-Author: alvoskov X-Redmine-Issue-Assignee: ko1 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?BIOp5LCJXHfW1UyUtzUNDzjgHa9E0qdj++JlgHj?= =?us-ascii?Q?4PRP0ILZ6t9QbNkPO95uOoP8t1NsDXdN9XuciJf?= =?us-ascii?Q?4tfwG8BbrFnK4fXmokDSSf8p7k0JXYnJjq6lTrK?= =?us-ascii?Q?KJVtifbJ2oLeu1iU5dOb3vUKZHgcNXufy6u=2Fkhu?= =?us-ascii?Q?RgL4G1Uo54l0iWLRg=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99407 Subject: [ruby-core:99407] [Ruby master Bug#10959] rb_iseq_load: problems with hash containing symbolic keys 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 #10959 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed I get `OK` for all three test files uploaded. I tested Ruby 2.0, 2.2, and 2.7 and got the same result with each. So if this was a problem, it appears to have been fixed. ---------------------------------------- Bug #10959: rb_iseq_load: problems with hash containing symbolic keys https://bugs.ruby-lang.org/issues/10959#change-86855 * Author: alvoskov (Alexey Voskov) * Status: Closed * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: ruby 2.2.1p85 (2015-02-26 revision 49769) [x64-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Hello! I've found a bug in the rb_iseq_load function. When I'm trying to load the next code: `def func @basis << {:a => 1} end` compiled by `RubyVM::InstructionSequence.compile_file(filename).to_a` call it throws an exception "wrong argument type false (expected Symbol). If :a is replaced to "a" the precompiled code loads correctly. All files required for reproducing this bug is attached to the report. ---Files-------------------------------- start.rb (453 Bytes) test2.rb (78 Bytes) test1.rb (61 Bytes) test3.rb (72 Bytes) runner.c (295 Bytes) extconf.rb (111 Bytes) -- https://bugs.ruby-lang.org/