From: Gavin Kistner Date: 2006-10-28T01:07:30+09:00 Subject: Re: Bug segmentation fault From: list-bounce@example.com > 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] I have no idea if it will make a different, but do you realize that by calling collect you are creating an array whose entries are the return value of puts (which is always nil). An array of over 1000 nil entries. I think you probably want either: arrayName.each{ |x| puts x.inspect } or puts arrayName.collect{ |x| x.inspect }