Actions
Bug #17937
closedSegmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2
Description
A simple code in the irb console fails:
irb(main):003:0> [1,2,3].to_enum.next
[BUG] Segmentation fault at 0x0000000004809020
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [-darwin20]
...
-- Control frame information -----------------------------------------------
c:0001 p:---- s:0003 e:000002 (none) [FINISH]
-- Other runtime information -----------------------------------------------
* Loaded script: irb
* Loaded features:
0 enumerator.so
1 thread.rb
...
please see an attached irb_output.txt for full output
Expected behaviour:
irb(main):001:0> [1,2,3].to_enum.next
=> 1
irb(main):002:0>
This does not happen in 2.7.3 and 3.0.1 though, so upgrading a version of ruby solves the issue.
Files
Updated by jeremyevans0 (Jeremy Evans) over 3 years ago
- Status changed from Open to Closed
If this is already fixed in 2.7.3, I think we can close this. We cannot change 2.7.1.
Actions
Like0
Like0