From: Yehuda Katz Date: 2009-02-04T07:58:52+09:00 Subject: [ruby-core:21812] 1.9 Bug Report --001636e90f6cbef06604620b9e02 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit When going through the RubySpecs for 1.9, I found that the following code will hang the 1.9 VM: hsh = {1 => 2, 3 => 4, 5 => 6} hsh.merge!(hsh) {|x, y, z| p [x, y, z]; hsh.shift; true } p hsh The output in 1.8: [5, 6, 6] [1, 2, 2] [3, 4, 4] {3=>true} -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --001636e90f6cbef06604620b9e02 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit When going through the RubySpecs for 1.9, I found that the following code will hang the 1.9 VM:

hsh = {1 => 2, 3 => 4, 5 => 6}
hsh.merge!(hsh) {|x, y, z| p [x, y, z]; hsh.shift; true }
p hsh

The output in 1.8:
[5, 6, 6]
[1, 2, 2]
[3, 4, 4]
{3=>true}


--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
--001636e90f6cbef06604620b9e02--