Hello, I have recently run across the following error: /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault This has happened after adding a particularly large template file with ruby 1.8.1. Thank you, -- Rob -- ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Feb 13, 2007, at 12:30 PM, Robert Mombro wrote:> Hello, > > I have recently run across the following error: > > /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault > > This has happened after adding a particularly large template file > with ruby 1.8.1.That shouldn''t be the cause, but with segfaults it''s always very difficult to say. -- There is only one success - to be able to spend your life in your own way. -- Christopher Morley --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On 2/13/07, Robert Mombro <j8irfm@yahoo.com> wrote:> > Hello, > > I have recently run across the following error: > > /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation > fault > > This has happened after adding a particularly large template file with ruby > 1.8.1.Not that it helps any but I was getting segfaults running puppetd with version 0.22.1 on Ubuntu Edgy. What distro are you running? My Ruby version was 1.8.2. 0.20.1 worked fine for me. Kent -- "It may be true that the law cannot make a man love me, but it can stop him from lynching me, and I think that''s pretty important." - Martin Luther King Jr.
Mr. Kanies, After some experimentation, it appears that there is a 4k size limit for any template and if you exceed this tremendously, the server will crash. Alternately, if you are only slightly over the limit, the client parser will fail. Do you know if there is a way to change this limit? Thank you, -- Rob -- ----- Original Message ---- From: Luke Kanies <luke@madstop.com> To: Puppet User Discussion <puppet-users@madstop.com> Sent: Tuesday, February 13, 2007 1:45:37 PM Subject: Re: [Puppet-users] Is there a limit on the size of a template? On Feb 13, 2007, at 12:30 PM, Robert Mombro wrote:> Hello, > > I have recently run across the following error: > > /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault > > This has happened after adding a particularly large template file > with ruby 1.8.1.That shouldn''t be the cause, but with segfaults it''s always very difficult to say. -- There is only one success - to be able to spend your life in your own way. -- Christopher Morley --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Feb 13, 2007, at 1:13 PM, Robert Mombro wrote:> Mr. Kanies, > > After some experimentation, it appears that there is a 4k size > limit for any template and if you exceed this tremendously, the > server will crash. Alternately, if you are only slightly over the > limit, the client parser will fail. > > Do you know if there is a way to change this limit?I didn''t set the limit, so I don''t know what kind of limit it is. Seems like it''s a functional limit somewhere in the ERb system; it''s certainly nothing that Puppet is intentionally doing. If you file it as a bug, I''ll see about tracking it down. If you''re willing to spend some time trying to figure out what the problem is, that would make things much easier, as it''s already been a long week and it''s only Tuesday. -- One of the keys to happiness is a bad memory. -- Rita Mae Brown --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Tue, Feb 13, 2007 at 10:30:37AM -0800, Robert Mombro wrote:> I have recently run across the following error: > > /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation faultThere is no explicit size limit on templates (otherwise you''d get a much more helpful bug report than this). I''ve just added a FAQ entry for segfaults: http://reductivelabs.com/cgi-bin/puppet.cgi/wiki/FrequentlyAskedQuestions#what-s-with-these-damned-segfaults - Matt -- Talk about unlucky. D''you know, if I fell in a barrel of tits I''d come out sucking me thumb. -- Seen on the ''net: http://thelawwestofealingbroadway.blogspot.com/2006/01/bang-to-rights.html
On Tue, Feb 13, 2007 at 11:13:47AM -0800, Robert Mombro wrote:> After some experimentation, it appears that there is a 4k size limit for > any template and if you exceed this tremendously, the server will crash. > Alternately, if you are only slightly over the limit, the client parser > will fail.In what way will the client parser "fail"? With a segfault? Some other error? What is that error? - Matt -- To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work on it.
> After some experimentation, it appears that there is a 4k size limitNot that it''s much help - especially after Matthew''s comments - but we have templates ~40K in size and are not seeing any issues. We''re on Centos 4.4 and ruby 1.8.5. Just another "I''m pretty sure it''s not puppet" comment. Can you try it against the 1.8.5 interpreter and see if it throws the same error? --mac
I can also confirm that this occurs on ubuntu edgy with puppet-0.22.1 but no issues with 0.20.1 Has there been any light on this issue? I get pretty random segfaults /usr/lib/ruby/1.8/puppet/type.rb:1616: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i486-linux] /usr/local/lib/site_ruby/1.8/puppet/provider/package/darwinport.rb:40: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i486-linux] /usr/local/lib/site_ruby/1.8/puppet/metatype/providers.rb:236: [BUG] rb_gc_mark(): unknown data type 0x1d(0x8082170) non object ruby 1.8.4 (2005-12-24) [i486-linux] /usr/local/lib/site_ruby/1.8/puppet/metatype/providers.rb:235: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i486-linux] ________________________________ From: puppet-users-bounces@madstop.com on behalf of Matthew Palmer Sent: Wed 14/02/2007 9:03 AM To: puppet-users@madstop.com Subject: Re: [Puppet-users] Is there a limit on the size of a template? On Tue, Feb 13, 2007 at 10:30:37AM -0800, Robert Mombro wrote:> I have recently run across the following error: > > /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation faultThere is no explicit size limit on templates (otherwise you''d get a much more helpful bug report than this). I''ve just added a FAQ entry for segfaults: http://reductivelabs.com/cgi-bin/puppet.cgi/wiki/FrequentlyAskedQuestions#what-s-with-these-damned-segfaults - Matt -- Talk about unlucky. D''you know, if I fell in a barrel of tits I''d come out sucking me thumb. -- Seen on the ''net: http://thelawwestofealingbroadway.blogspot.com/2006/01/bang-to-rights.html _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Feb 28, 2007, at 8:08 PM, Brendan Beveridge wrote:> I can also confirm that this occurs on ubuntu edgy with > puppet-0.22.1 but no issues with 0.20.1 > Has there been any light on this issue? > > I get pretty random segfaults > > /usr/lib/ruby/1.8/puppet/type.rb:1616: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i486-linux] > /usr/local/lib/site_ruby/1.8/puppet/provider/package/darwinport.rb: > 40: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i486-linux] > /usr/local/lib/site_ruby/1.8/puppet/metatype/providers.rb:236: > [BUG] rb_gc_mark(): unknown data type 0x1d(0x8082170) non object > ruby 1.8.4 (2005-12-24) [i486-linux] > /usr/local/lib/site_ruby/1.8/puppet/metatype/providers.rb:235: > [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i486-linux]The segfaults are a ruby problem and there''s nothing I can do about them. You''re not guaranteed to get them, and there sometimes seems to be something that can be done to get rid of them in certain releases and with certain segaults, but it''s always inconsistent and always annoying. Please make sure you''re not running the broken version of ruby, as that''s likely the problem. -- To succeed in the world it is not enough to be stupid, you must also be well-mannered. -- Voltaire --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
> On Feb 28, 2007, at 8:08 PM, Brendan Beveridge wrote: > > > I can also confirm that this occurs on ubuntu edgy with > > puppet-0.22.1 but no issues with 0.20.1 > > Has there been any light on this issue?FWIW, we ended up installing the fiesty rubygems package on all our boxes, then gem install''d puppet. It (0.22.1) hasn''t segfaulted since. -Charlie