Forum: Ruby-core [Ruby 1.9 - Bug #5031][Open] Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION)

1156b6ec7075396cf55fcc7425b79b37?d=identicon&s=25 Lucas Florio (Guest)
on 2011-07-15 20:07
(Received via mailing list)
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.
02da662c083396641da96c1d32fc86ed?d=identicon&s=25 Motohiro KOSAKI (Guest)
on 2011-07-21 02:20
(Received via mailing list)
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.
02da662c083396641da96c1d32fc86ed?d=identicon&s=25 Motohiro KOSAKI (Guest)
on 2011-07-22 07:47
(Received via mailing list)
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.
9361878d459f1709feec780518946ee5?d=identicon&s=25 Yui NARUSE (Guest)
on 2011-07-22 13:22
(Received via mailing list)
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.
This topic is locked and can not be replied to.