[ruby-core:71027] [Ruby trunk - Bug #11576] [Open] Inifnite recursion with inheritance provokes core dump

From: ivo@...
Date: 2015-10-09 06:14:21 UTC
List: ruby-core #71027
Issue #11576 has been reported by Ivo Bl旦chliger.

----------------------------------------
Bug #11576: Inifnite recursion with inheritance provokes core dump
https://bugs.ruby-lang.org/issues/11576

* Author: Ivo Bl旦chliger
* Status: Open
* Priority: Normal
* Assignee: 
* 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/

In This Thread

Prev Next