Project

General

Profile

Actions

Bug #1711

closed

Marshal Failing to Round-Trip Certain Recurisve Data Structures

Added by runpaint (Run Paint Run Run) almost 15 years ago. Updated about 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-07-01 trunk 23924) [i686-linux]
Backport:
[ruby-core:24105]

Description

=begin
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

=end


Files

marshal.rb (1.27 KB) marshal.rb runpaint (Run Paint Run Run), 07/02/2009 02:30 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0