Project

General

Profile

Actions

Bug #19589

closed

Expecting system stack error but crashing

Added by alpaca-tc (Hiroyuki Ishii) about 1 year ago. Updated 10 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-04-11T00:54:20Z master 65e276096f) [arm64-darwin22]
[ruby-core:113182]

Description

The following code expects stack overflow but crashes.
The version it occurs in is newer than 3.2.0.

def expect_system_stack_error(h)
  h.each_key {}
  h.each_value { expect_system_stack_error(h) }
end

expect_system_stack_error(a: nil)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0