Ruby/Hpricot – stack level too deep (SystemStackError)

November 29, 2009

Busted my stack!

> /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:667:in `traverse_some_element’: stack level too deep (SystemStackError)
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `traverse_some_element’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `each’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `traverse_some_element’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `traverse_some_element’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `each’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `traverse_some_element’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `traverse_some_element’
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/traverse.rb:668:in `each’
         … 3844 levels…

Dalibor Nasevic had the fix…

my settings: stack size (kbytes, -s) 10240

> ulimit -s 51200

my settings: stack size (kbytes, -s) 51200

And all my stack busting issues are resolved šŸ™‚

 

Posted via web from ChrisDrit’s Ruby Rambler

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: