Bug segmentation fault

I am trying to display the contents of large array (over 1000 rows)
using arrayName.collect {|x| puts x.inspect}
However the following occurs:

[Bug] Segmentation fault
ruby 1.8.5 (20006-08-25) [i386-mswin32]

The same statement works fine with smaller size arrays.

···

--
Posted via http://www.ruby-forum.com/.

ruby --version
ruby 1.8.5 (2006-08-25) [i386-cygwin]

c = 0
ary =
1500.times do
  ary << (c..(c+10)).to_a
  c += 1
end

ary.collect {|x| puts x.inspect}

This seems to work just fine. Could you please post some sample code
that prodcues the segmentation fault?

Blessings,
TwP

···

On 10/27/06, WKC CCC <wai-kee.chung@uk.bnpparibas.com> wrote:

I am trying to display the contents of large array (over 1000 rows)
using arrayName.collect {|x| puts x.inspect}
However the following occurs:

[Bug] Segmentation fault
ruby 1.8.5 (20006-08-25) [i386-mswin32]

The same statement works fine with smaller size arrays.

Hi,

···

In message "Re: Bug segmentation fault" on Sat, 28 Oct 2006 00:49:13 +0900, WKC CCC <wai-kee.chung@uk.bnpparibas.com> writes:

I am trying to display the contents of large array (over 1000 rows)
using arrayName.collect {|x| puts x.inspect}
However the following occurs:

[Bug] Segmentation fault
ruby 1.8.5 (20006-08-25) [i386-mswin32]

The same statement works fine with smaller size arrays.

This kind of bug is often too difficult to track without error
reproducing code.

              matz.