Issue #5031 has been reported by Lucas Florio. ---------------------------------------- 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: Open Priority: Normal 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: <code> ruby -e '(0..255).zip(0..255)' </code> I get this: <pre> -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 `<main>' -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)' </pre> But if I do: <code> ruby -e '((0..255).to_a).zip(0..255)' </code> it works ok.
on 2011-07-15 20:07
on 2011-07-21 02:20
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: <code> ruby -e '(0..255).zip(0..255)' </code> I get this: <pre> -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 `<main>' -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)' </pre> But if I do: <code> ruby -e '((0..255).to_a).zip(0..255)' </code> it works ok.
on 2011-07-22 07:47
Issue #5031 has been updated by Motohiro KOSAKI. Status changed from Feedback to Closed Priority changed from Low to Normal Applying r32201 fixes this issue too. ---------------------------------------- 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: Closed Priority: Normal 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: <code> ruby -e '(0..255).zip(0..255)' </code> I get this: <pre> -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 `<main>' -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)' </pre> But if I do: <code> ruby -e '((0..255).to_a).zip(0..255)' </code> it works ok.
on 2011-07-22 13:22
Issue #5031 has been updated by Yui NARUSE. Parent task set to #5076 ---------------------------------------- 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: Closed Priority: Normal 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: <code> ruby -e '(0..255).zip(0..255)' </code> I get this: <pre> -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 `<main>' -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)' </pre> But if I do: <code> ruby -e '((0..255).to_a).zip(0..255)' </code> it works ok.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.