Bug #1000: Segmentation fault in Hash#[]
http://redmine.ruby-lang.org/issues/show/1000

Author: Morgan Christiansson
Status: Open, Priority: Normal

Ruby crashes when creating a Hash using the [] public method.
For some reason it works the first time but segfaults the second time.

$ irb
irb(main):001:0> Hash[*{:k=>["empty"]}]
=> {"empty"=>false}
irb(main):002:0> Hash[*{:k=>["empty"]}]
/usr/lib/ruby/1.8/irb.rb:302: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

Aborted


----------------------------------------
http://redmine.ruby-lang.org