Project

General

Profile

ActionsLike0

Bug #19841

closed

Marshal.dump stack overflow with recursive Time

Added by segiddins (Samuel Giddins) over 1 year ago. Updated 4 days ago.

Status:
Closed
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

Updated by byroot (Jean Boussier) over 1 year ago

  • Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN to 3.0: WONTFIX, 3.1: REQUIRED, 3.2: REQUIRED

Updated by hsbt (Hiroshi SHIBATA) 21 days ago

  • Backport changed from 3.0: WONTFIX, 3.1: REQUIRED, 3.2: REQUIRED to 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
#7

Updated by nobu (Nobuyoshi Nakada) 21 days ago

  • Status changed from Open to Closed

Updated by tenderlovemaking (Aaron Patterson) 14 days ago

  • Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE

Updated by nagachika (Tomoyuki Chikanaga) 4 days ago

  • Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE to 3.1: REQUIRED, 3.2: REQUIRED, 3.3: DONE, 3.4: DONE
ActionsLike0

Also available in: Atom PDF