Project

General

Profile

Actions

Bug #19841

open

Marshal.dump stack overflow with recursive Time

Added by segiddins (Samuel Giddins) 9 months ago. Updated 9 months ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:114410]

Description

#!/usr/bin/env ruby

puts RUBY_VERSION

t = Time.at(0, 1, :nanosecond)
t.instance_variable_set :@itself, t

Marshal.dump(t)

Yields a stack overflow error from the Marshal.dump call, even though Marshal is explicitly able to handle cyclical references

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0