From: abc def Date: 2009-07-11T01:16:02+09:00 Subject: [ruby-core:24254] [Bug #1758] YAML fails to dump->load small specific string Bug #1758: YAML fails to dump->load small specific string http://redmine.ruby-lang.org/issues/show/1758 Author: abc def Status: Open, Priority: High Category: build ruby -v: 1.8.7, 1.9.1 YAML fails on this testcase: require 'yaml' YAML::load(YAML::dump("\n a\n\"")) with: /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 3, col 0: `"' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load' from test.rb:2 I tested this with ruby 1.8.7 and ruby 1.9.1, both failed. The testcase is very specific, change one thing and it doesn't crash anymore. I have yaml dumps with large strings and this bug was triggered 3 times. ---------------------------------------- http://redmine.ruby-lang.org