Project

General

Profile

Actions

Bug #17937

closed

Segmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2

Added by tim.kovalev (Tim Kovalev) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:104165]

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

irb_output.txt (31.6 KB) irb_output.txt output for IRB tim.kovalev (Tim Kovalev), 06/04/2021 03:10 PM
ruby_2021-06-04-180849_RLX-TLL-MC001.crash (31.2 KB) ruby_2021-06-04-180849_RLX-TLL-MC001.crash a crash report, generated by mac os tim.kovalev (Tim Kovalev), 06/04/2021 03:10 PM

Updated by jeremyevans0 (Jeremy Evans) about 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

Also available in: Atom PDF

Like0
Like0