[PUP-2587] circular inheritance causes stack too deep error Created: 2014/05/16  Updated: 2019/04/04

Status: Accepted
Project: Puppet
Component/s: Language
Affects Version/s: PUP 3.8.2, PUP 4.2.1
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Henrik Lindberg Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: 5.y Validation
Team: Server
QA Contact: Kurt Wall


if a node or a class inherits in such a way that the result is circular, the result is a "stack too deep" error without any additional information.

This is caused by by "instantiate_resource" because it does not check if it is already processing a parent entity.

class foo inherits foo { }

This occurs in both 3x parser and in future parser.

This can not be statically validated.

Generated at Sat Dec 07 20:50:22 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.