From: merch-redmine@... Date: 2021-06-04T15:31:57+00:00 Subject: [ruby-core:104166] [Ruby master Bug#17937] Segmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2 Issue #17937 has been updated by jeremyevans0 (Jeremy Evans). 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. ---------------------------------------- Bug #17937: Segmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2 https://bugs.ruby-lang.org/issues/17937#change-92340 * Author: tim.kovalev (Tim Kovalev) * Status: Closed * Priority: Normal * ruby -v: 2.7.1 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- 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) ruby_2021-06-04-180849_RLX-TLL-MC001.crash (31.2 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: