Jira (PUP-2587) circular inheritance causes stack too deep error

6 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Jan 15, 2015, 4:07:19 PM1/15/15
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Puppet / Bug PUP-2587
circular inheritance causes stack too deep error
Change By: Henrik Lindberg
Scrum Team: Language
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Charlie Sharpsteen (JIRA)

unread,
Sep 2, 2015, 2:58:03 PM9/2/15
to puppe...@googlegroups.com
Charlie Sharpsteen updated an issue
Change By: Charlie Sharpsteen
Affects Version/s: PUP 4.2.1
This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4)
Atlassian logo

Charlie Sharpsteen (JIRA)

unread,
Sep 2, 2015, 2:58:46 PM9/2/15
to puppe...@googlegroups.com
Charlie Sharpsteen updated an issue
Change By: Charlie Sharpsteen
Affects Version/s: PUP 3.8.2

Henrik Lindberg (JIRA)

unread,
Feb 11, 2016, 9:16:03 PM2/11/16
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Unassigned
Change By: Henrik Lindberg
Assignee: Andrew Parker
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Sep 7, 2016, 6:15:17 PM9/7/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Team: Puppet Developer Support
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
May 15, 2017, 3:33:02 PM5/15/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Component/s: DSL
Component/s: Language

Henrik Lindberg (JIRA)

unread,
May 15, 2017, 3:33:02 PM5/15/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 15, 2017, 7:00:07 PM5/15/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 15, 2017, 7:00:07 PM5/15/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Team: Puppet Developer Experience Agent

Branan Riley (JIRA)

unread,
May 15, 2017, 7:01:03 PM5/15/17
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:55:17 PM5/18/17
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jan 23, 2020, 2:34:05 PM1/23/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-2587
 
Re: circular inheritance causes stack too deep error

This is no longer reproducible using 6.12.0:

[root@softer-dearth ~]# cat /etc/puppetlabs/code/environments/production/manifests/site.pp
class foo inherits foo { }
[root@softer-dearth ~]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for softer-dearth.delivery.puppetlabs.net
Info: Applying configuration version '1579807952'
Notice: Applied catalog in 0.01 seconds

This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Jan 23, 2020, 7:06:04 PM1/23/20
to puppe...@googlegroups.com

If it did not error out then that is a problem. Maybe combine fixing that with the ticket about validating that a class does not require itself.

Josh Cooper (JIRA)

unread,
Jan 23, 2020, 8:02:04 PM1/23/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-2587

Dang.. yeah it's still a problem. I think the code was ignored due to the class not being included. Given:

[root@softer-dearth ~]# cat /etc/puppetlabs/code/environments/production/manifests/site.pp
include foo
[root@softer-dearth ~]# cat /etc/puppetlabs/code/environments/production/modules/foo/manifests/init.pp
class foo inherits foo { }

An agent run cause the server to stackoverflow.
 

2020-01-24T01:00:11.128Z WARN  [qtp1400473817-35] [o.e.j.s.HttpChannel] /puppet/v3/catalog/softer-dearth.delivery.puppetlabs.net2020-01-24T01:00:11.128Z WARN  [qtp1400473817-35] [o.e.j.s.HttpChannel] /puppet/v3/catalog/softer-dearth.delivery.puppetlabs.netjava.lang.StackOverflowError: null at opt.puppetlabs.puppet.lib.ruby.vendor_ruby.puppet.resource.invokeOther12:known_resource_types(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:378) at opt.puppetlabs.puppet.lib.ruby.vendor_ruby.puppet.resource.RUBY$method$resource_type$0(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:378) at org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:143) at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:221) at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:216) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:234) 

David McTavish (Jira)

unread,
Dec 1, 2021, 11:13:03 AM12/1/21
to puppe...@googlegroups.com
David McTavish updated an issue
 
Change By: David McTavish
Labels: final_triage
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 3, 2021, 11:30:03 AM12/3/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages