Bug segmentation fault

W

WKC CCC

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.
 
T

Tim Pease

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.

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
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: 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.

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

matz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top