From: Motohiro KOSAKI Date: 2011-07-21T09:18:19+09:00 Subject: [ruby-core:38285] [Ruby 1.9 - Bug #5031][Feedback] Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION) Issue #5031 has been updated by Motohiro KOSAKI. Status changed from Open to Feedback We haven't try the Lion beta release, but We've try the Lion production release. (yeah, the Lion has been released yesterday) And I'd report we confirmed your testcase work for me on Lion production release. Can you please try latest Lion release? Thanks. ---------------------------------------- Bug #5031: Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION) http://redmine.ruby-lang.org/issues/5031 Author: Lucas Florio Status: Feedback Priority: Low Assignee: Category: Target version: 1.9.2 ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin11.0.0] Tested on 1.9.2-head, 1.9.2-p0 and 1.9.2-p180. If I run this: ruby -e '(0..255).zip(0..255)' I get this:
-e:1: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32478) [x86_64-darwin11.0.0]

-- control frame ----------
c:0007 p:---- s:0016 b:0016 l:000010 d:000010 CFUNC  :next
c:0006 p:---- s:0014 b:0014 l:000009 d:000013 IFUNC 
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :each
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :zip
c:0003 p:0014 s:0006 b:0006 l:000548 d:0025c8 EVAL   -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000548 d:000548 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
-e:1:in `
' -e:1:in `zip' -e:1:in `each' -e:1:in `next' -- C level backtrace information ------------------------------------------- [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html [2] 16898 abort ruby -e '(0..255).zip(0..255)'
But if I do: ruby -e '((0..255).to_a).zip(0..255)' it works ok. -- http://redmine.ruby-lang.org