From: Martin Hart Date: 2004-02-22T01:18:31+09:00 Subject: YAML Aborting with large data set? Hi all, I have a large document in yaml which I can't load or dump using YAML in ruby because it segfaults. I have searched the archives and I wonder if this error is similar to that described in the ruby-talk thread "Syck 0.35 + YAML.rb 0.60 -- the 1st stable release". However in that thread I believe that multi-threaded scripts were the main cause for concern... This bugs out on all of my development machines: [martin@dorfl dev]$ ruby -v ruby 1.8.1 (2003-12-25) [i686-linux] [martin@dorfl dev]$ irb irb(main):001:0> require "yaml" => true irb(main):002:0> string = "hello world" * 2000 => "hello worldhello worldhello worldhello worldhello wo...... etc" irb(main):003:0> data = string.to_yaml /usr/local/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault ruby 1.8.1 (2003-12-25) [i686-linux] Aborted [martin@dorfl dev]$ Can somebody else confirm that this is reproducable? As I mentioned above - the document that I want to convert to/from YAML is large. Is there a size limitation that I am unaware of with the current yaml implementation? Cheers, Martin -- Martin Hart Arnclan Limited 53 Union Street Dunstable, Beds LU6 1EX http://www.arnclanit.com