1.8.1 YAML emit bug? (Win32)

Apologies if this has been noted before; I am currently using the 1.8.1
installer released on 2004.04.26, so this may well be fixed.

irb(main):004:0> a = “”; (0…8191).each { |i| a << “%c” % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8191
=> nil
irb(main):005:0> a = “”; (0…8192).each { |i| a << “%c” % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8192

The former line works. The latter locks up tighter than the Bush
Administration’s lips to the American public. I think that if it’s any
larger than 8192, it causes an access violation/segfault.

-austin

···


austin ziegler * austin.ziegler@evault.com

Austin Ziegler wrote:

irb(main):005:0> a = “”; (0…8192).each { |i| a << “%c” % [65 + i % 25]
}; puts a.size; a.to_yaml; nil
8192

Yeah, this is healed in the latest. Ran tests up to (0…8191313) and
still worked good. Anyone who can test a stable snapshot on Windows?

_why