Project

General

Profile

Actions

Bug #3557

closed

Marshal.dump fails for large Arrays of Arrays

Bug #3557: Marshal.dump fails for large Arrays of Arrays

Added by ajankevics (Andrew Jankevics) over 15 years ago. Updated almost 15 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-05-31) [x64-mswin64_80]
Backport:
[ruby-core:31178]

Description

=begin
def test
n1 = 10
n2 = 34000
b = Array.new n1
for i in 0 ... n1 do
a = Array.new n2
for j in 0 ... n2 do a[j] = j end
b[i] = a
end

 Marshal.dump b

end

dump_arg_data in marshal.c gets prematurely freed by GC run_final()
Enclosing the Marshal.dump with GC.disable and GC.enable fixes the problem
=end

Actions

Also available in: PDF Atom