=begin Here's even more simplified example how to reproduce this bug. (First one didnt work on linux). === s1 = String.new() 10.times { s1 << "abc" } p s1 s2 = s1.dup p s2 s1.replace("xxx"); p s1 p s2 === Run with ...quetzal (Quet Zal)
=begin I have a problem building HEAD of Ruby 1.9 on windows if linking to debug libraries (/MDd). After some debugging I've been able to reduce problem to this piece of code: === s1 = String.new() # make empty string 10....quetzal (Quet Zal)