On Mon, 1 Dec 2003, Chad Fowler wrote:

# There is a new syck bug that appears to be caused by the recent fix for 
# Rich's bug report (Tue Nov 25 19:51:38 2003 UTC).  If I check out 
# pre-Tuesday, I can't reproduce the error.
# 
# Here's a way to reproduce it:
# 
# $ ruby -e '1.upto(1029) do |num|; print "-\n  x:z\n  y:#{num}\n"; end' >big.yaml 
# 
# $ ruby -ryaml -e 'YAML.load(File.read("big.yaml"))' 
# /usr/local/lib/ruby/1.8/yaml.rb:39:in `load': parse error on line 3088, 
# col -1: `' (ArgumentError)
#         from /usr/local/lib/ruby/1.8/yaml.rb:39:in `load'
#         from -e:1
# 
# I made a small attempt to track down the problem, but it's getting late 
# and I'm getting "stupider" with each passing minute. 
# 
# I noticed that we have gram.c, which is a bison-generated file, but we 
# don't have gram.y.  Is that desirable?
# 

I forgot to mention last night that this problem appears to appear when 
the size of the yaml document hits 16384(ish) bytes.  Also, the error 
message usually shows the parse error as occurring exactly 2 lines after 
the last actual line of YAML (i.e. a YAML document with 3086 lines will 
show a parse error on line 3088).

Chad