Project

General

Profile

Actions

Bug #11576

closed

Inifnite recursion with inheritance provokes core dump

Added by ivo.bloechliger (Ivo Blöchliger) over 8 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu]
[ruby-core:<unknown>]

Description

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) bug.rb Script causing the core dump ivo.bloechliger (Ivo Blöchliger), 10/09/2015 06:08 AM
err.txt (11.1 KB) err.txt Error messages (with many repeated lines removed) ivo.bloechliger (Ivo Blöchliger), 10/09/2015 06:12 AM
Actions

Also available in: Atom PDF

Like0
Like0