Thread(0x100190360): deadlock (fatal)
Reported by Arun Thampi | October 30th, 2009 @ 04:20 AM
I get this error when I try to crawl URLs from a site. What can cause this? I'm running ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] on Mac OS X 10.6.1 with Anemone 0.2.2 The entire stack trace is like so:
I'm digging deeper, but any pointers will be much appreciated!
deadlock 0x101a84a38: sleep:- - /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/tentacle.rb:21
deadlock 0x101a84bf0: sleep:- - /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/tentacle.rb:21
deadlock 0x101a84da8: sleep:- - /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/tentacle.rb:21
deadlock 0x100190360: sleep:- (main) - /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:114
/opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:114:in `deq': Thread(0x100190360): deadlock (fatal)
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:114:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:113:in `loop'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:113:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:40:in `crawl'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:31:in `initialize'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:38:in `new'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/core.rb:38:in `crawl'
from /opt/local/lib/ruby/gems/1.8/gems/anemone-0.2.2/lib/anemone/anemone.rb:52:in `crawl'
from ./lib/country_spider.rb:9:in `crawl_country'
Comments and changes to this ticket
-
hayato October 30th, 2009 @ 11:31 PM
I have a similar experience of this ticket.
Throwing exception from my code in result.
Please add following flag to your code and retry.
If error in your code, Ruby will throw stacktrace more easy to fix.Thread.abort_on_exception = true
<< -
chris (at chriskite) November 2nd, 2009 @ 11:47 AM
- State changed from new to resolved
- Assigned user set to chris (at chriskite)
0.2.3 includes a bugfix for this issue. Give it a try, feel free to reopen the ticket if you are still experiencing issues.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Anemone is a Ruby library that makes it quick and painless to write programs that spider a website. It provides a simple DSL for performing actions on every page of a site, skipping certain URLs, and calculating the shortest path to a given page on a site.