General

Profile

quetzal (Quet Zal)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

06/08/2009

10:04 PM Ruby Bug #1587: Problem with string sharing
=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)
09:07 PM Ruby Bug #1587 (Closed): Problem with string sharing
=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)

Also available in: Atom