1.8.1 YAML emit bug? (Win32)

Discussion in 'Ruby' started by Austin Ziegler, May 17, 2004.

  1. 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, May 17, 2004
    #1
    1. Advertising

  2. 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
    why the lucky stiff, May 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RubyQuestions
    Replies:
    0
    Views:
    220
    RubyQuestions
    Dec 3, 2003
  2. Paul Battley

    YAML.dump/YAML.load bug

    Paul Battley, Aug 3, 2005, in forum: Ruby
    Replies:
    0
    Views:
    176
    Paul Battley
    Aug 3, 2005
  3. Eric Promislow
    Replies:
    4
    Views:
    205
    Eric Promislow
    Oct 31, 2006
  4. Joshua Choi

    yaml.rb and YAML "%" directives

    Joshua Choi, Jan 14, 2007, in forum: Ruby
    Replies:
    1
    Views:
    160
  5. bwv549
    Replies:
    8
    Views:
    146
    Simon Chiang
    Apr 10, 2009
Loading...

Share This Page