[#104307] Float truncate — Eustáquio Rangel <eustaquiorangel@...>
Hi!
4 messages
2021/06/16
[ruby-core:104165] [Ruby master Bug#17937] Segmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2
From:
ktimothy@...
Date:
2021-06-04 15:16:05 UTC
List:
ruby-core #104165
Issue #17937 has been reported by tim.kovalev (Tim Kovalev).
----------------------------------------
Bug #17937: Segmentation fault in Enumerator#next on Apple M1, Mac OS Big Sur 11.2.2
https://bugs.ruby-lang.org/issues/17937
* Author: tim.kovalev (Tim Kovalev)
* Status: Open
* 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>