mperham/sidekiq — Issue #26: c-level backtrace and error when creating new Processors
Author: bnorton
Created: 2012-02-15 02:02:00+00:00
State: open

ruby 1.9.3-p0
rails 3.2.1

Interesting is that changing the line from manager.rb:34
`@ready = @count.times.map { Processor.new_link(current_actor) }`
To:

```@ready = []
@count.times.each { @ready << Processor.new_link(current_actor) }
```

makes the error go away completely

The back-trace is:

```
sidekiq -v
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/bundler/gems/sidekiq-1393f99dc16a/lib/sidekiq/version.rb:2: warning: already initialized constant VERSION
You did not specify how you would like Rails to report deprecation notices for your developemnt environment, please set config.active_support.deprecation to :log, :notify or :stderr at config/environments/developemnt.rb
I, [2012-02-14T17:48:45.350551 #18528] INFO -- : Booting sidekiq 0.6.0 with Redis at localhost:6379
D, [2012-02-14T17:48:45.350709 #18528] DEBUG -- : {:queues=>["default"], :processor_count=>25, :require=>".", :environment=>nil}
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34: [BUG] cfp consistency error - call0
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.1.0]

-- Control frame information -----------------------------------------------
c:0009 p:---- s:0025 b:0025 l:000024 d:000024 CFUNC :times
c:0008 p:---- s:0023 b:0023 l:000022 d:000022 CFUNC :each
c:0007 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :map
c:0006 p:0139 s:0018 b:0018 l:0005e0 d:0005e0 METHOD /Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34
c:0005 p:0038 s:0014 b:0014 l:000013 d:000013 METHOD /Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/calls.rb:47
c:0004 p:0014 s:0007 b:0007 l:000fb0 d:000006 BLOCK /Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/actor.rb:181
c:0003 p:0106 s:0005 b:0005 l:001970 d:000004 BLOCK /Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/task.rb:45
c:0002 p:---- s:0003 b:0003 l:000002 d:000002 FINISH
c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

-- Ruby level backtrace information ----------------------------------------
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/task.rb:45:in `block in initialize'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/actor.rb:181:in `block in handle_message'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/celluloid-0.8.0/lib/celluloid/calls.rb:47:in `dispatch'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34:in `initialize'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34:in `map'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34:in `each'
/Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/gems/sidekiq-0.6.0/lib/sidekiq/manager.rb:34:in `times'

-- C level backtrace information -------------------------------------------

See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.

-- Other runtime information -----------------------------------------------

* Loaded script: /Users/briannorton/.rvm/gems/ruby-1.9.3-p0@super-node/bin/sidekiq

* Loaded features:

0 enumerator.so
1 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.1.0/enc/encdb.bundle
2 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.1.0/enc/trans/transdb.bundle
3 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
4 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.1.0/rbconfig.rb
5 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
6 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
7 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
8 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb
9 /Users/briannorton/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/version.rb

```
.......................... it just keeps going