From: alvoskov@... Date: 2015-03-10T15:45:41+00:00 Subject: [ruby-core:68487] [Ruby trunk - Bug #10959] [Open] rb_iseq_load: problems with hash containing symbolic keys Issue #10959 has been reported by Alexey Voskov. ---------------------------------------- Bug #10959: rb_iseq_load: problems with hash containing symbolic keys https://bugs.ruby-lang.org/issues/10959 * Author: Alexey Voskov * Status: Open * Priority: Normal * Assignee: 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) test1.rb (61 Bytes) test2.rb (78 Bytes) test3.rb (72 Bytes) runner.c (295 Bytes) extconf.rb (111 Bytes) -- https://bugs.ruby-lang.org/