Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

big hash literal with array keys dumps core #3133

Closed
mame opened this issue Mar 8, 2016 · 0 comments
Closed

big hash literal with array keys dumps core #3133

mame opened this issue Mar 8, 2016 · 0 comments

Comments

@mame
Copy link
Contributor

mame commented Mar 8, 2016

Hello,

The following code dumps core.

{
  [0] => 0,
  [1] => 0,
  [2] => 0,
  ...
  [255] => 0,
}
$ ruby -e 'puts "{"; 256.times {|n| puts "  [#{ n }] => 0," }; puts "}"' > t.rb && ./bin/mruby t.rb
trace:
        [0] t.rb:253
t.rb:253: can't convert Array into Proc (TypeError)
*** Error in `./bin/mruby': corrupted double-linked list: 0x00000000016cab00 ***

Thank you,

@matz matz closed this as completed in ae5b5ce Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant