From: merch-redmine@... Date: 2020-07-30T22:13:55+00:00 Subject: [ruby-core:99407] [Ruby master Bug#10959] rb_iseq_load: problems with hash containing symbolic keys 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/ Unsubscribe: