Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2587

circular inheritance causes stack too deep error

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.8.2, PUP 4.2.1
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                henrik.lindberg Henrik Lindberg
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: