Bug #1711: Marshal Failing to Round-Trip Certain Recurisve Data Structures
http://redmine.ruby-lang.org/issues/show/1711

Author: Run Paint Run Run
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.9.2dev (2009-07-01 trunk 23924) [i686-linux]

I have attached a script that fails to round-trip a recursive data structure on 1.9, but succeeds on 1.8. IOW, it prints true on 1.8; false on 1.9. I haven't been able to reduce it further because I'm unfamiliar with Marshal.

    $ ruby86 -vw /tmp/marshal.rb 
    ruby 1.8.6 (2009-06-08 patchlevel 369) [i686-linux]
    true

    $ ruby87 -vw /tmp/marshal.rb 
    ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
    true

    $ ruby8 -vw /tmp/marshal.rb 
    ruby 1.8.8dev (2009-06-28) [i686-linux]
    true

    $ ruby -vw /tmp/marshal.rb 
    ruby 1.9.2dev (2009-07-01 trunk 23924) [i686-linux]
    false


----------------------------------------
http://redmine.ruby-lang.org