ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:99407] [Ruby master Bug#10959] rb_iseq_load: problems with hash containing symbolic keys
       [not found] <redmine.issue-10959.20150310154540.7224@ruby-lang.org>
@ 2020-07-30 22:13 ` merch-redmine
  0 siblings, 0 replies; only message in thread
From: merch-redmine @ 2020-07-30 22:13 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-30 22:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-10959.20150310154540.7224@ruby-lang.org>
2020-07-30 22:13 ` [ruby-core:99407] [Ruby master Bug#10959] rb_iseq_load: problems with hash containing symbolic keys merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).