[ruby-core:93461] [Ruby master Bug#11576] Inifnite recursion with inheritance provokes core dump
From:
merch-redmine@...
Date:
2019-07-01 20:54:28 UTC
List:
ruby-core #93461
Issue #11576 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed I did some testing with Ruby versions 1.8-2.7, and 2.0, 2.3, and 2.4 crash, while the other Ruby versions do raise SystemStackError. So I think this has been addressed. All Ruby versions that are in normal maintenance mode do not crash, so I think it is safe to close this. ---------------------------------------- Bug #11576: Inifnite recursion with inheritance provokes core dump https://bugs.ruby-lang.org/issues/11576#change-79010 * Author: ivo.bloechliger (Ivo Blhliger) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Infinite recursion mixed with heritance (in the attached example with an inherited constructor) provokes a core dump. I discovered this behavior with inherited method_missing constructs, but it also happens with inherited constructors. I believe the example should simply raise a "Stack level too deep" exception and not a core dump. ---Files-------------------------------- bug.rb (71 Bytes) err.txt (11.1 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>